MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES Guide de l'utilisateur Page 86

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 172
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 85
5 Acquiring Image Data
5-8
Format Frame Types
Signed 16- and 32-bit formats; both little-endian and big-endian;
in regular and flip formats.
Floating-point and double formats; both little-endian and big-
endian formats; in regular and flip formats.
Color 8-, 24-, 32-, and 48-bit RGB formats; both little-endian and big-
endian; regular and flip; packed and planar (see “Understanding
Packed and Planar Formats” on page 5-8).
Frame types that specify the order of the bytes of color data (RGB
or GBR) and specify where the blank byte is located (XRGB or
XGBR).
Formats that represent colors in 4-bits (4444), 5-bits (555), 5- or 6-
bits (565), or 10-bits (101010).
Formats that use the YUV color space.
Suggested Algorithm
Your adaptor's getFrameType() function must return the appropriate frame type that
describes the data returned by your device for the specified format.
If your device supports multiple color formats, you do not need to expose all the formats
to toolbox users. You can simply provide one color format and handle the low-level details
in your adaptor with FRAMETYPE.
Example
The following example shows a skeletal implementation of the getFrameType()
function. An actual implementation might select the frame type based on the format the
user selected.
virtual imaqkit::frametypes::FRAMETYPE getFrameType() const {
return imaqkit::frametypes::FRAMETYPE:MONO8;
}
Understanding Packed and Planar Formats
The adaptor kit IAdaptorFrame class defines many FRAMETYPE enumerations that
cover the many possible types of image data devices can return. For example, some
devices can return color images in packed or nonpacked (planar) formats. These formats
Vue de la page 85
1 2 ... 81 82 83 84 85 86 87 88 89 90 91 ... 171 172

Commentaires sur ces manuels

Pas de commentaire