28.12.2012 Views

Figure Properties - SERC

Figure Properties - SERC

Figure Properties - SERC

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

[...] = imread(...,'Back','none');<br />

imread<br />

Note If you specify a background color, you cannot output the alpha channel.<br />

Case 3. You ask to get the alpha channel as an output variable. For example,<br />

[A,map,alpha] = imread(filename);<br />

[A,map,alpha] = imread(filename,fmt);<br />

No compositing is performed; the alpha channel is stored separately from the<br />

image (not merged into the image as in cases 1 and 2). This form of imread<br />

returns the alpha channel if one is present, and also returns the image and any<br />

associated colormap. If there is no alpha channel, alpha returns []. If there is<br />

no colormap, or the image is grayscale or true color, map may be empty.<br />

TIFF-Specific Syntax<br />

[...] = imread(...,idx) reads in one image from a multi-image TIFF file.<br />

idx is an integer value that specifies the order in which the image appears in<br />

the file. For example, if idx is 3, imread reads the third image in the file. If you<br />

omit this argument, imread reads the first image in the file.<br />

For TIFF files, imread can read color data represented in the RGB, CIELAB or<br />

ICCLAB color spaces. To determine which color space is used, look at the value<br />

of the PhotometricInterpretation field returned by imfinfo. Note, however,<br />

that if a file contains CIELAB color data, imread converts it to ICCLAB before<br />

bringing it into the MATLAB workspace. 8- or 16-bit TIFF CIELAB-encoded<br />

values use a mixture of signed and unsigned data types that cannot be<br />

represented as a single MATLAB array.<br />

[...] = imread(...,'PixelRegion',{ROWS, COLS}) returns the sub-image<br />

specified by the boundaries in ROWS and COLS. For tiled TIFF images, imread<br />

reads only the tiles that encompass the region specified by ROWS and COLS,<br />

improving memory efficiency and performance. ROWS and COLS must be either<br />

two or three element vectors. If two elements are provided, they denote the<br />

1-based indices [START STOP]. If three elements are provided, the indices<br />

[START INCREMENT STOP] allow image downsampling.<br />

2-1153

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

Saved successfully!

Ooh no, something went wrong!