17.12.2018 Views

Image Acquisitionand Proces

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Image</strong> Types and File Management 3<br />

FIGURE 1.2 <strong>Image</strong> data represented as a surface plot.<br />

Increasing the bit depth of the image to 16 bits also increases the amount of memory<br />

required to store the image in a raw format:<br />

MemoryRequired = 1024 ¥ 768 ¥ 16<br />

= 12582912Bits<br />

= 1572864Bytes<br />

= 1.536MBytes<br />

You should therefore select an image depth that corresponds to the next-highest level<br />

above the level required, e.g., if you need to use a 7-bit image, select 8 bits, but not 16 bits.<br />

<strong>Image</strong>s with bit depths that do not correspond to those listed in the previous<br />

table (e.g., 1, 2 and 4-bit images) are converted to the next-highest acceptable bit<br />

depths when they are initially loaded.<br />

1.1.2 COLOR<br />

Color images are represented using either the Red-Green-Blue (RGB) or Hue-<br />

Saturation-Luminance (HSL) models. The Vision Toolkit accepts 32-bit color images<br />

that use either of these models, as four 8-bit channels:<br />

Color<br />

Model<br />

Pixel Depth<br />

Channel Intensity<br />

Extremities<br />

RGB a Red Green Blue 0 to 255<br />

HSL a Hue Saturation Luminance 0 to 255<br />

The alpha (a) component describes the opacity of an image, with zero representing<br />

a clear pixel and 255 representing a fully opaque pixel. This enables an<br />

image to be rendered over another image, with some of the underlying image<br />

showing through. When combining images, alpha-based pixel formats have several<br />

advantages over color-keyed formats, including support for shapes with soft or

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!