MATLAB VIDEO AND IMAGE PROCESSING BLOCKSET 3 Podręcznik Użytkownika Strona 132

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 252
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 131
5 Geometri c Transformation
Cropping an Image
You can use the Selector block to cro p your image or video stream. In this
examp le, you learn how to use th e S elector block to trim an image down to a
particular region of interest:
1 Define an intensity image in the MATLAB workspace. At the MATLAB
command prompt, type
I = imread('coins.png ');
I
is a 246-by-300 m atrix of 8-bit unsigned integer values.
2 To view the image this matrix represents, at the MATLAB command
prompt, type
imshow(I)
3 Create a new Simulink model, and add to it the blocks shown in the
following table.
5-20
Przeglądanie stron 131
1 2 ... 127 128 129 130 131 132 133 134 135 136 137 ... 251 252

Komentarze do niniejszej Instrukcji

Brak uwag