MATLAB VIDEO AND IMAGE PROCESSING BLOCKSET 3 Guia do Utilizador Página 118

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 252
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 117
5 Geometri c Transformation
Rotating an Image
YoucanusetheRotateblocktorotateyourimageorvideostreambya
specified angle. In this exampl e, you le arn how to use the R otate block to
continuously rotate an image:
1 Define an R GB image in the MATLAB workspace. At the MATLAB
command prompt, type
I = checker_board;
I
is a 100-by-100-by-3 array of double-precision values. Each plane of the
array represents the reg, green, or blue color values of the image.
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.
Block Librar y Quantity
Image From
Workspace
Video and Image Processing
Blockset > Source s
1
5-6
Vista de página 117
1 2 ... 113 114 115 116 117 118 119 120 121 122 123 ... 251 252

Comentários a estes Manuais

Sem comentários