% % TIFF-specific syntaxes % - % = IMREAD(.,IDX) reads in one image from a % multi-image TIFF file. For 12-bit JPEG and 16-bit JPEG, PNG, and TIFF % image files, the c lass o f the output (A or X) is uint16 and % for 16-bit BMP image files, the class of the output is uint8. IMREAD also supports reading 16-bit-per-pixel % data from BMP, PNG, JPEG, and TIFF files, as well as 12-bit % JPEG files. When reading other files with % 8 or fewer bits per color plane, the class of the output % is uint8. % If the file contains only 1 bi t per pixel, the c lass o f the % output (A or X) is logical. The % URL must include the protocol type (e.g., " % % Data types % - % In most of the image file formats supported by IMREAD, % pixels are stored using 8 or fewer bits per color plane. % % = IMREAD(URL.) reads the image from an Internet URL.
% % = IMREAD(FILENAME) attempts to infer the format of the file % from its content. Colormap values in the % image file are automatically rescaled into the range. % % = IMREAD(FILENAME,FMT) reads the indexed image in FILENAME % into X and its associated colormap into MAP. % See the reference page for more information about reading TIFF files % that use these color spaces. If the % color image uses the CMYK color space, A is an M-by-N-by-4 array. For TIFF files, however, IMREAD can return color data % that uses the RGB, CIELAB, ICCLAB, or CMYK color spaces. % % For most file formats, the color image data returned uses the RGB % color space. The class of the returned array depends on the data type used % by the file format. If the file % contains a color image, A is a three-dimensional (M-by-N-by-3) % array. If the file contains a % grayscale image, A is a two-dimensional (M-by-N) array. % % IMREAD returns the image data in the array A. If IMREAD % cannot find a file named FILENAME, it looks for a file named % FILENAME.FMT.
#SEPARATION STUDIO VS QUIKSEPS FULL#
If the file is % not in the c urrent directory or in a directory in the MATLAB path, % specify the full pathname of the location on your system. See the reference page, or the output of the % function IMFORMATS, for a list of supported formats. % A = IMREAD(FILENAME,FMT) reads a grayscale or color image from the % file specified by the string FILENAME, where the string FMT specifies % the format of the file. m 1 o f 8 function = imread(varargi n) %IMREAD Read image from graphics file. 1 / 9 / 1 2 1 2 : 2 0 P M C : \ M A T L A B 7 \ t o o l b o x \ m a t l a b \ i m a g e s c i \ i m r e a d.