help imread IMREAD Read image from graphics file. A = IMREAD(FILENAME,FMT) reads the image in FILENAME into A. If the file contains a grayscale intensity image, A is a two-dimensional array. If the file contains a truecolor (RGB) image, A is a three-dimensional (M-by-N-by-3) array. FILENAME is a string that specifies the name of the graphics file, and FMT is a string that specifies the format of the file. The file must be in the current directory or in a directory on the MATLAB path. If IMREAD cannot find a file named FILENAME, it looks for a file named FILENAME.FMT. The possible values for FMT are found in the image file format registry, IMFORMATS. [X,MAP] = IMREAD(FILENAME,FMT) reads the indexed image in FILENAME into X and its associated colormap into MAP. Colormap values in the image file are automatically rescaled into the range [0,1]. [...] = IMREAD(FILENAME) attempts to infer the format of the file from its content. [...] = IMREAD(URL,...) reads the image from an Internet URL. The URL must include the protocol type (e.g., "http://"). Data types ---------- In most of the image file formats supported by IMREAD, pixels are stored using 8 or fewer bits per color plane. If the file contains only 1 bit per pixel, the class of the output (A or X) is logical. When reading other files with 8 or fewer bits per color plane, the class of the output is uint8. IMREAD also supports reading 16-bit-per-pixel data from BMP, TIFF and PNG files. For 16-bit TIFF and PNG image files, the class of the output (A or X) is uint16 and for 16-bit BMP image files, the class of the output is uint8. TIFF-specific syntaxes ---------------------- [...] = IMREAD(...,IDX) reads in one image from a multi-image TIFF file. IDX is an integer value that specifies the order that the image appears in the file. For example, if IDX is 3, IMREAD reads the third image in the file. If you omit this argument, IMREAD reads the first image in the file. PNG-specific syntaxes --------------------- [...] = IMREAD(...,'BackgroundColor',BG) composites any transparent pixels in the input image against the color specified in BG. If BG is 'none', then no compositing is performed. Otherwise, if the input image is indexed, BG should be an integer in the range [1,P] where P is the colormap length. If the input image is grayscale, BG should be an integer in the range [0,1]. If the input image is RGB, BG should be a three-element vector whose values are in the range [0,1]. The string 'BackgroundColor' may be abbreviated. If the ALPHA output argument is used (see below), then BG defaults to 'none' if not specified by the user. Otherwise, if the PNG file contains a background color chunk, that color is used as the default value for BG. If ALPHA is not used and the file does not contain a background color chunk, then the default value for BG is 1 for indexed images; 0 for grayscale images; and [0 0 0] for RGB images. [A,MAP,ALPHA] = IMREAD(...) returns the alpha channel if one is present; otherwise ALPHA is []. Note that MAP may be empty if the file contains a grayscale or truecolor image. HDF-specific syntaxes --------------------- [...] = IMREAD(...,REF) reads in one image from a multi-image HDF file. REF is an integer value that specifies the reference number used to identify the image. For example, if REF is 12, IMREAD reads the image whose reference number is 12. (Note that in an HDF file the reference numbers do not necessarily correspond with the order of the images in the file. You can use IMFINFO to match up image order with reference number.) If you omit this argument, IMREAD reads the first image in the file. ICO- and CUR-specific syntaxes ------------------------------ [...] = IMREAD(...,IDX) reads in one image from a multi-image icon or cursor file. IDX is an integer value that specifies the order that the image appears in the file. For example, if IDX is 3, IMREAD reads the third image in the file. If you omit this argument, IMREAD reads the first image in the file. [A,MAP,ALPHA] = IMREAD(...) returns the AND mask for the resource, which can be used to determine the transparency information. For cursor files, this mask may contain the only useful data. GIF-specific syntaxes --------------------- [...] = IMREAD(...,IDX) reads in one or more frames from a multiframe (i.e., animated) GIF file. IDX must be an integer scalar or vector of integer values. For example, if IDX is 3, IMREAD reads the third image in the file. If IDX is 1:5, only the first five frames will be returned. [...] = IMREAD(...,'Frames',IDX) is the same as the syntax above except that IDX can be 'all'. In this case, all of the frames are read and returned in the order that they appear in the file. Note: Because of the way that GIF files are structured, all of the frames must be read when a particular frame is requested. Consequently, it is much faster to specify a vector of frames or 'all' for IDX than to call IMREAD in a loop when reading multiple frames from the same GIF file. Supported file types -------------------- JPEG Any baseline JPEG image; JPEG images with some commonly used extensions TIFF Any baseline TIFF image, including 1-bit, 8-bit, and 24-bit uncompressed images; 1-bit, 8-bit, and 24-bit images with packbits compression; 1-bit images with CCITT compression; also, 16-bit grayscale, 16-bit indexed, and 48-bit RGB images GIF Any 1-bit to 8-bit GIF image BMP 1-bit, 4-bit, 8-bit, 16-bit, 24-bit, and 32-bit uncompressed images; 4-bit and 8-bit run-length encoded (RLE) images PNG Any PNG image, including 1-bit, 2-bit, 4-bit, 8-bit, and 16-bit grayscale images; 8-bit and 16-bit indexed images; 24-bit and 48-bit RGB images HDF 8-bit raster image datasets, with or without an associated colormap; 24-bit raster image datasets PCX 1-bit, 8-bit, and 24-bit images XWD 1-bit and 8-bit ZPixmaps; XYBitmaps; 1-bit XYPixmaps ICO 1-bit, 4-bit, and 8-bit uncompressed images CUR 1-bit, 4-bit, and 8-bit uncompressed images RAS Any RAS image, including 1-bit bitmap, 8-bit indexed, 24-bit truecolor and 32-bit truecolor with alpha. PBM Any 1-bit PBM image. Raw (binary) or ASCII (plain) encoded. PGM Any standard PGM image. ASCII (plain) encoded with arbitrary color depth. Raw (binary) encoded with up to 16 bits per gray value. PPM Any standard PPM image. ASCII (plain) encoded with arbitrary color depth. Raw (binary) encoded with up to 16 bits per color component. See also IMFINFO, IMWRITE, IMFORMATS, FREAD, IMAGE, DOUBLE, UINT8. imagesc(im) colormap(gray) imth = im>110; figure imagesc(imth) colormap(gray) sz = size(im); sz = size(im) sz = 300 400 for i=1:sz(1), for j=1:sz(2), result(i,j) = im(i,j) > 110; end end size(result) ans = 300 400 size(result) ans = 300 400 figure imagesc(result) colormap(gray) help imthresh imthresh.m not found. help graythresh GRAYTHRESH Compute global image threshold using Otsu's method. LEVEL = GRAYTHRESH(I) computes a global threshold (LEVEL) that can be used to convert an intensity image to a binary image with IM2BW. LEVEL is a normalized intensity value that lies in the range [0, 1]. GRAYTHRESH uses Otsu's method, which chooses the threshold to minimize the intraclass variance of the thresholded black and white pixels. Class Support ------------- The input image I can be of class uint8, uint16, or double and it must be nonsparse. LEVEL is a double scalar. Example ------- I = imread('blood1.tif'); level = graythresh(I); BW = im2bw(I,level); imshow(BW) See also IM2BW. level = graythresh(im) level = 0.4980 help im2bw IM2BW Convert image to binary image by thresholding. IM2BW produces binary images from indexed, intensity, or RGB images. To do this, it converts the input image to grayscale format (if it is not already an intensity image), and then converts this grayscale image to binary by thresholding. The output binary image BW has values of 0 (black) for all pixels in the input image with luminance less than LEVEL and 1 (white) for all other pixels. (Note that you specify LEVEL in the range [0,1], regardless of the class of the input image.) BW = IM2BW(I,LEVEL) converts the intensity image I to black and white. BW = IM2BW(X,MAP,LEVEL) converts the indexed image X with colormap MAP to black and white. BW = IM2BW(RGB,LEVEL) converts the RGB image RGB to black and white. Note that the function GRAYTHRESH can be used to compute LEVEL automatically. Class Support ------------- The input image can be of class uint8, uint16, or double and it must be nonsparse. The output image BW is of class logical. Example ------- load trees BW = im2bw(X,map,0.4); imshow(X,map), figure, imshow(BW) See also GRAYTHRESH, IND2GRAY, RGB2GRAY. bw = im2bw(im, level); figure image(bw) imagesc(bw) colormap(gray) class(a) ans = double b = 'astring' b = astring b(1) ans = a b + 'bbbbbbb' ans = 195 213 214 212 203 208 201 class(im) ans = uint8 im = double(im); class(im) ans = double figure imagesc(im) colormap(gray) a=[1 2;2 3;5 6]' a = 1 2 5 2 3 6 a=[1 2;2 3;5 6] a = 1 2 2 3 5 6 b = [6 1] b = 6 1 b = [6 1]' b = 6 1 x = A \ b ??? Undefined function or variable 'A'. x = a \ b ??? Error using ==> \ Matrix dimensions must agree. b = [6 1 6]' b = 6 1 6 x = a \ b x = -2.9231 3.3077 figure(2) plot(75,200,'r+') clf imagesc(imt) ??? Undefined function or variable 'imt'. imagesc(imth) hold on plot(75,200,'r+') a a = 1 2 2 3 5 6 a(:) ans = 1 2 5 2 3 6 a(1,1) ans = 1 a = rand(10,5) a = 0.9501 0.6154 0.0579 0.0153 0.8381 0.2311 0.7919 0.3529 0.7468 0.0196 0.6068 0.9218 0.8132 0.4451 0.6813 0.4860 0.7382 0.0099 0.9318 0.3795 0.8913 0.1763 0.1389 0.4660 0.8318 0.7621 0.4057 0.2028 0.4186 0.5028 0.4565 0.9355 0.1987 0.8462 0.7095 0.0185 0.9169 0.6038 0.5252 0.4289 0.8214 0.4103 0.2722 0.2026 0.3046 0.4447 0.8936 0.1988 0.6721 0.1897 a(1,2) ans = 0.6154 a(3,:) ans = 0.6068 0.9218 0.8132 0.4451 0.6813 a(3,1:2) ans = 0.6068 0.9218 1:7 ans = 1 2 3 4 5 6 7 b=[5 6 8] b = 5 6 8 a a = 0.9501 0.6154 0.0579 0.0153 0.8381 0.2311 0.7919 0.3529 0.7468 0.0196 0.6068 0.9218 0.8132 0.4451 0.6813 0.4860 0.7382 0.0099 0.9318 0.3795 0.8913 0.1763 0.1389 0.4660 0.8318 0.7621 0.4057 0.2028 0.4186 0.5028 0.4565 0.9355 0.1987 0.8462 0.7095 0.0185 0.9169 0.6038 0.5252 0.4289 0.8214 0.4103 0.2722 0.2026 0.3046 0.4447 0.8936 0.1988 0.6721 0.1897 a(b,:) ans = 0.8913 0.1763 0.1389 0.4660 0.8318 0.7621 0.4057 0.2028 0.4186 0.5028 0.0185 0.9169 0.6038 0.5252 0.4289 a(1,1:end) ans = 0.9501 0.6154 0.0579 0.0153 0.8381 a(1,1:end-1) ans = 0.9501 0.6154 0.0579 0.0153 a(1,1:2:end) ans = 0.9501 0.0579 0.8381 1:8 ans = 1 2 3 4 5 6 7 8 1:2:8 ans = 1 3 5 7 figure plot(rand(100,1)) hold on plot(rand(100,1),'go') h=rand(100,1); clf plot(h) hold on plot(h,'go') plot(h,'bo') plot(h,'ko') h2 = conv(h,[1 1 1 1 1]); figure plot(h2) h2 = conv(h2,[1 1 1 1 1]); plot(h2) ones(1,5) ans = 1 1 1 1 1 edit fschange('C:\stb\ece847\tmp.m'); clear tmp fschange('C:\stb\ece847\tmp.m'); clear tmp tmp ans = Columns 1 through 10 0 0.0159 0.0317 0.0476 0.0635 0.0794 0.0952 0.1111 0.1270 0.1429 0 0.0159 0.0317 0.0476 0.0635 0.0794 0.0952 0.1111 0.1270 0.1429 0 0.0159 0.0317 0.0476 0.0635 0.0794 0.0952 0.1111 0.1270 0.1429 Columns 11 through 20 0.1587 0.1746 0.1905 0.2063 0.2222 0.2381 0.2540 0.2698 0.2857 0.3016 0.1587 0.1746 0.1905 0.2063 0.2222 0.2381 0.2540 0.2698 0.2857 0.3016 0.1587 0.1746 0.1905 0.2063 0.2222 0.2381 0.2540 0.2698 0.2857 0.3016 Columns 21 through 30 0.3175 0.3333 0.3492 0.3651 0.3810 0.3968 0.4127 0.4286 0.4444 0.4603 0.3175 0.3333 0.3492 0.3651 0.3810 0.3968 0.4127 0.4286 0.4444 0.4603 0.3175 0.3333 0.3492 0.3651 0.3810 0.3968 0.4127 0.4286 0.4444 0.4603 Columns 31 through 40 0.4762 0.4921 0.5079 0.5238 0.5397 0.5556 0.5714 0.5873 0.6032 0.6190 0.4762 0.4921 0.5079 0.5238 0.5397 0.5556 0.5714 0.5873 0.6032 0.6190 0.4762 0.4921 0.5079 0.5238 0.5397 0.5556 0.5714 0.5873 0.6032 0.6190 Columns 41 through 50 0.6349 0.6508 0.6667 0.6825 0.6984 0.7143 0.7302 0.7460 0.7619 0.7778 0.6349 0.6508 0.6667 0.6825 0.6984 0.7143 0.7302 0.7460 0.7619 0.7778 0.6349 0.6508 0.6667 0.6825 0.6984 0.7143 0.7302 0.7460 0.7619 0.7778 Columns 51 through 60 0.7937 0.8095 0.8254 0.8413 0.8571 0.8730 0.8889 0.9048 0.9206 0.9365 0.7937 0.8095 0.8254 0.8413 0.8571 0.8730 0.8889 0.9048 0.9206 0.9365 0.7937 0.8095 0.8254 0.8413 0.8571 0.8730 0.8889 0.9048 0.9206 0.9365 Columns 61 through 64 0.9524 0.9683 0.9841 1.0000 0.9524 0.9683 0.9841 1.0000 0.9524 0.9683 0.9841 1.0000 which tmp c:\stb\ece847\tmp.m fschange('C:\stb\ece847\tmp.m'); clear tmp tmp close all tmp size(im) ans = 300 400 fschange('C:\stb\ece847\tmp.m'); clear tmp who Your variables are: a b h i imth level sz ans bw h2 im j result x clear who tmp close all tmp who size(im) ??? Undefined function or variable 'im'. tmp openvar('im', im); dbcont dbclear ('C:\stb\ece847\tmp.m', '4') fschange('C:\stb\ece847\tmp.m'); clear tmp tmp('oranges1.pgm') tmp ??? Input argument 'filename' is undefined. Error in ==> c:\stb\ece847\tmp.m On line 3 ==> im = imread(filename); fschange('C:\stb\ece847\tmp.m'); clear tmp a=5 a = 5 b=0 b = 0 a&b ans = 0 a|b ans = 1 ~a ans = 0 a == b ans = 0 a ~= b ans = 1 fschange('C:\stb\ece847\tmp.m'); clear tmp tmp ans = 0 ans = 0 ??? Error using ==> tmp need a filename a = tmp ??? Error using ==> tmp Too many output arguments. tmp(1,2) ??? Error using ==> tmp Too many input arguments. fschange('C:\stb\ece847\tmp.m'); clear tmp a = tmp ans = 0 ans = 1 ??? Error using ==> tmp need a filename fschange('C:\stb\ece847\tmp.m'); clear tmp [a b] = tmp ??? Error: File: c:\stb\ece847\tmp.m Line: 1 Column: 13 "]" expected, "identifier" found. fschange('C:\stb\ece847\tmp.m'); clear tmp [a b] = tmp ans = 0 ans = 2 ??? Error using ==> tmp need a filename printf('a') ??? Undefined function or variable 'printf'. sprintf('%d', a) ans = 5 a a = 5 imth = im>120; ??? Undefined function or variable 'im'. im=imread('oranges1.pgm'); imth = im>120; help imerode IMERODE Erode image. IM2 = IMERODE(IM,SE) erodes the grayscale, binary, or packed binary image IM, returning the eroded image, IM2. SE is a structuring element object, or array of structuring element objects, returned by the STREL function. If IM is logical and the structuring element is flat, IMERODE performs binary erosion; otherwise it performs grayscale erosion. If SE is an array of structuring element objects, IMERODE performs multiple erosions of the input image, using each structuring element in succession. IM2 = IMERODE(IM,NHOOD) erodes the image IM, where NHOOD is an array of 0s and 1s that specifies the structuring element. This is equivalent to the syntax IMERODE(IM,STREL(NHOOD)). IMERODE uses this calculation to determine the center element, or origin, of the neighborhood: FLOOR((SIZE(NHOOD) + 1)/2). IM2 = IMERODE(IM,SE,PACKOPT,M) or IMERODE(IM,NHOOD,PACKOPT,M) specifies whether IM is a packed binary image and, if it is, provides the row dimension, M, of the original unpacked image. PACKOPT can have either of these values: 'ispacked' IM is treated as a packed binary image as produced by BWPACK. IM must be a 2-D uint32 array and SE must be a flat 2-D structuring element. If the value of PACKOPT is 'ispacked', PADOPT must be 'same'. 'notpacked' IM is treated as a normal array. This is the default value. If PACKOPT is 'ispacked', you must specify a value for M. IM2 = IMERODE(...,PADOPT) determines the size of the output image. PADOPT can have either of these values: 'same' Make the output image the same size as the input image. This is the default value. If the value of PACKOPT is 'ispacked', PADOPT must be 'same'. 'full' Compute the full erosion. PADOPT is analogous to the optional SHAPE argument to the CONV2 and FILTER2 functions. Class Support ------------- IM can be numeric or logical and it can be of any dimension. If IM is logical and the structuring element is flat, then output will be logical; otherwise the output will have the same class as the input. If the input is packed binary, then the output is also packed binary. Examples -------- Erode the binary image in text.tif with a vertical line: bw = imread('text.tif'); se = strel('line',11,90); bw2 = imerode(bw,se); imshow(bw), title('Original') figure, imshow(bw2), title('Eroded') Erode the grayscale image in cameraman.tif with a rolling ball: I = imread('cameraman.tif'); se = strel('ball',5,5); I2 = imerode(I,se); imshow(I), title('Original') figure, imshow(I2), title('Eroded') See also BWPACK, BWUNPACK, CONV2, FILTER2, IMCLOSE, IMDILATE, IMOPEN, STREL. help image processing IMAGE Display image. IMAGE(C) displays matrix C as an image. Each element of C specifies the color of a rectilinear patch in the image. C can be a matrix of dimension MxN or MxNx3, and can contain double, uint8, or uint16 data. When C is a 2-dimensional MxN matrix, the elements of C are used as indices into the current COLORMAP to determine the color. The value of the image object's CDataMapping property determines the method used to select a colormap entry. For 'direct' CDataMapping (the default), values in C are treated as colormap indices (1-based if double, 0-based if uint8 or uint16). For 'scaled' CDataMapping, values in C are first scaled according to the axes CLim and then the result is treated as a colormap index. When C is a 3-dimensional MxNx3 matrix, the elements in C(:,:,1) are interpreted as red intensities, in C(:,:,2) as green intensities, and in C(:,:,3) as blue intensities, and the CDataMapping property of image is ignored. For matrices containing doubles, color intensities are on the range [0.0, 1.0]. For uint8 and uint16 matrices, color intensities are on the range [0, 255]. IMAGE(C) places the center of element C(1,1) at (1,1) in the axes, and the center of element (M,N) at (M,N) in the axes, and draws each rectilinear patch as 1 unit in width and height. As a result, the outer extent of the image occupies [0.5 N+0.5 0.5 M+0.5] of the axes, and each pixel center of the image lies at integer coordinates ranging between 1 and M or N. IMAGE(X,Y,C), where X and Y are vectors, specifies the locations of the pixel centers of C(1,1) and C(M,N). Element C(1,1) is centered over (X(1), Y(1)), element C(M,N) is centered over (X(end), Y(end)), and the pixel centers of the remaining elements of C are spread out evenly between those two points, so that the rectilinear patches are all of equal width and height. IMAGE returns a handle to an IMAGE object. C or the X,Y,C triple can be followed by parameter/value pairs to specify additional properties of the image. C or the X,Y,C triple can be omitted entirely, and all properties specified using parameter/value pairs. When called with C or X,Y,C, IMAGE sets the axes limits to tightly enclose the image, sets the axes YDir property to 'reverse', and sets the axes View property to [0 90]. The image object will not render at axes View angles other than [0 90]. To get a similar effect to rotating an image, use SURF with texture mapping or PCOLOR. Execute GET(H), where H is an image handle, to see a list of image object properties and their current values. Execute SET(H) to see a list of image object properties and legal property values. See also IMAGESC, COLORMAP, PCOLOR, SURF, IMREAD, IMWRITE. processing.m not found. help image_processing image_processing.m not found. help imageprocessing imageprocessing.m not found. help HELP topics: matlab\general - General purpose commands. matlab\ops - Operators and special characters. matlab\lang - Programming language constructs. matlab\elmat - Elementary matrices and matrix manipulation. matlab\elfun - Elementary math functions. matlab\specfun - Specialized math functions. matlab\matfun - Matrix functions - numerical linear algebra. matlab\datafun - Data analysis and Fourier transforms. matlab\audio - Audio support. matlab\polyfun - Interpolation and polynomials. matlab\funfun - Function functions and ODE solvers. matlab\sparfun - Sparse matrices. matlab\graph2d - Two dimensional graphs. matlab\graph3d - Three dimensional graphs. matlab\specgraph - Specialized graphs. matlab\graphics - Handle Graphics. matlab\uitools - Graphical user interface tools. matlab\strfun - Character strings. matlab\iofun - File input/output. matlab\timefun - Time and dates. matlab\datatypes - Data types and structures. matlab\verctrl - Version control. matlab\winfun - Windows Operating System Interface Files (DDE/COM) winfun\comcli - (No table of contents file) matlab\demos - Examples and demonstrations. toolbox\local - Preferences. simulink\simulink - Simulink simulink\blocks - Simulink block library. simulink\components - Simulink components. simulink\fixedandfloat - (No table of contents file) fixedandfloat\fxpdemos - Fixed-Point Blockset Demos fixedandfloat\obsolete - Obsolete Fixed-Point Blockset simulink\simdemos - Simulink 4 demonstrations and samples. simdemos\aerospace - Simulink: Aerospace model demonstrations and samples. simdemos\automotive - Simulink: Automotive model demonstrations and samples. simdemos\simfeatures - Simulink: Feature demonstrations and samples. simdemos\simgeneral - Simulink: General model demonstrations and samples. simdemos\simnew - Simulink: New features model demonstrations and samples. simulink\dee - Differential Equation Editor simulink\dastudio - (No table of contents file) stateflow\stateflow - Stateflow stateflow\sfdemos - Stateflow demonstrations and samples. stateflow\coder - Stateflow Coder rtw\rtw - Real-Time Workshop rtw\rtwdemos - Real-Time Workshop Demos rtwdemos\rsimdemos - (No table of contents file) asap2\asap2 - (No table of contents file) asap2\user - (No table of contents file) rtwin\rtwin - Real-Time Windows Target. aeroblks\aeroblks - Aerospace Blockset aeroblks\aerodemos - Aerospace Blockset demonstrations and examples. ccslink\ccslink - MATLAB Link for Code Composer Studio(tm) ccslink\ccsdemos - MATLAB Link for Code Composer Studio (tm) Demos ccslink\rtdxblks - RTDX (tm) Blocks cdma\cdma - CDMA Reference Blockset. cdma\cdmamasks - CDMA Reference Blockset mask helper functions. cdma\cdmamex - CDMA Reference Blockset S-Functions. cdma\cdmademos - CDMA Reference Blockset demonstrations and examples. combuilder\combuilder - MATLAB COM Builder. comm\comm - Communications Toolbox. comm\commdemos - Communications Toolbox Demonstrations. comm\commobsolete - Archived MATLAB Files from Communications Toolbox Version 1.5. commblks\commblks - Communications Blockset. commblks\commmasks - Communications Blockset mask helper functions. commblks\commmex - Communications Blockset S-functions. commblks\commblksdemos - Communications Blockset Demos. commblksobsolete\commblksobsolete - Archived Simulink Files from Communications Toolbox Version 1.5. toolbox\compiler - MATLAB Compiler control\control - Control System Toolbox. control\ctrlguis - Control System Toolbox -- GUI support functions. control\ctrlobsolete - Control System Toolbox -- obsolete commands. control\ctrlutil - (No table of contents file) control\ctrldemos - Control System Toolbox -- Demos. curvefit\curvefit - Curve Fitting Toolbox curvefit\cftoolgui - (No table of contents file) daq\daq - Data Acquisition Toolbox. daq\daqguis - Data Acquisition Toolbox - Data Acquisition Soft Instruments. daq\daqdemos - Data Acquisition Toolbox - Data Acquisition Demos. database\database - Database Toolbox. database\dbdemos - Database Toolbox Demonstration Functions. database\vqb - Visual Query Builder functions. datafeed\datafeed - Datafeed Toolbox. datafeed\dfgui - Datafeed Toolbox Graphical User Interface toolbox\dials - Dials & Gauges Blockset dspblks\dspblks - DSP Blockset dspblks\dspmasks - DSP Blockset mask helper functions. dspblks\dspmex - DSP Blockset S-Function MEX-files. dspblks\dspdemos - DSP Blockset demonstrations and examples. targets\ecoder - Real-Time Workshop Embedded Coder ecoder\ecoderdemos - (No table of contents file) toolbox\exlink - Excel Link. filterdesign\filterdesign - Filter Design Toolbox filterdesign\quantization - (No table of contents file) filterdesign\filtdesdemos - Filter Design Toolbox Demonstrations. finance\finance - Financial Toolbox. finance\calendar - Financial Toolbox calendar functions. finance\findemos - Financial Toolbox demonstration functions. finance\finsupport - (No table of contents file) finderiv\finderiv - Financial Derivatives Toolbox. toolbox\fixpoint - Fixed-Point Blockset ftseries\ftseries - Financial Time Series Toolbox ftseries\ftsdemos - (No table of contents file) ftseries\ftsdata - (No table of contents file) ftseries\ftstutorials - (No table of contents file) fuzzy\fuzzy - Fuzzy Logic Toolbox. fuzzy\fuzdemos - Fuzzy Logic Toolbox Demos. garch\garch - GARCH Toolbox. garch\garchdemos - (No table of contents file) ident\ident - System Identification Toolbox. ident\idobsolete - (No table of contents file) ident\idguis - (No table of contents file) ident\idutils - (No table of contents file) ident\iddemos - (No table of contents file) ident\idhelp - (No table of contents file) images\images - Image Processing Toolbox. images\imdemos - Image Processing Toolbox --- demos and sample images instrument\instrument - Instrument Control Toolbox. instrument\instrumentdemos - (No table of contents file) lmi\lmictrl - LMI Control Toolbox: Control Applications lmi\lmilab - LMI Control Toolbox map\map - Mapping Toolbox map\mapdisp - Mapping Toolbox Map Definition and Display. map\mapproj - Mapping Toolbox Projections. matlabxl\matlabxl - MATLAB Excel Builder. mbc\mbc - Model-Based Calibration Toolbox mbc\mbcdata - Model-Based Calibration Toolbox. mbc\mbcdesign - Model-Based Calibration Toolbox. mbc\mbcexpr - Model-Based Calibration Toolbox. mbc\mbcguitools - Model-Based Calibration Toolbox. mbc\mbclayouts - (No table of contents file) mbc\mbcmodels - Model-Based Calibration Toolbox. mbc\mbcsimulink - Model-Based Calibration Toolbox. mbc\mbctools - Model-Based Calibration Toolbox. mbc\mbcview - Model-Based Calibration Toolbox. mech\mech - SimMechanics mech\mechdemos - SimMechanics Demos. mpc\mpccmds - Model Predictive Control Toolbox. mpc\mpcdemos - Model Predictive Control Toolbox mpc555dk\mpc555dk - Embedded Target for Motorola MPC555 canlib\blockset - (No table of contents file) blockset\mfiles - (No table of contents file) vectorlib\blockset - (No table of contents file) blockset\mfiles - (No table of contents file) common\configuration - (No table of contents file) mpc555dk\pil - (No table of contents file) rt\blockset - (No table of contents file) blockset\mfiles - (No table of contents file) mfiles\SimulinkUtilities - (No table of contents file) mpc555dk\mpc555demos - (No table of contents file) mutools\commands - Mu-Analysis and Synthesis Toolbox. mutools\subs - Mu-Analysis and Synthesis Toolbox. toolbox\ncd - Nonlinear Control Design Blockset nnet\nnet - Neural Network Toolbox. nnet\nnutils - (No table of contents file) nnet\nncontrol - Neural Network Toolbox Control System Functions. nnet\nndemos - Neural Network Demonstrations. nnet\nnobsolete - (No table of contents file) toolbox\optim - Optimization Toolbox toolbox\pde - Partial Differential Equation Toolbox. simulink\perftools - Simulink Performance Tools simulink\mdldiff - Simulink Graphical Merge simulink\simcoverage - Simulink Model Coverage Tool rtw\accel - Simulink Accelerator powersys\powersys - SimPowerSystems powersys\powerdemo - SimPowerSystems Demos. toolbox\reqmgt - Requirements Management Interface. toolbox\robust - Robust Control Toolbox. toolbox\rptgen - MATLAB Report Generator toolbox\rptgenext - Simulink Report Generator toolbox\runtime - MATLAB Runtime Server Development Kit toolbox\sb2sl - SB2SL (converts SystemBuild to Simulink) signal\signal - Signal Processing Toolbox signal\sigtools - Filter Design & Analysis Tool (GUI) signal\sptoolgui - Signal Processing Toolbox GUI signal\sigdemos - Signal Processing Toolbox Demonstrations. toolbox\splines - Spline Toolbox. toolbox\stats - Statistics Toolbox toolbox\symbolic - Symbolic Math Toolbox. tic6000\tic6000 - Embedded Target for Texas Instruments TMS320C6000(tm) tic6000\blks - TI C6000 (tm) Blocks vr\vr - Virtual Reality Toolbox vr\vrdemos - Virtual Reality Toolbox examples. wavelet\wavelet - Wavelet Toolbox wavelet\wavedemo - Wavelet Toolbox Demonstrations. webserver\webserver - MATLAB Web Server. webserver\wsdemos - (No table of contents file) xpc\xpc - xPC Target build\xpcblocks - (No table of contents file) xpc\xpcdemos - xPC Target -- demos and sample script files. kernel\embedded - xPC Target Embedded Option MATLAB6p5ggg\work - (No table of contents file) For more help on directory/topic, type "help topic". For command syntax information, type "help syntax". help images/image images/image.m not found. help images/images Image Processing Toolbox. Version 3.2 (R13) 28-Jun-2002 Release information. images/Readme - Display information about current and previous versions. Image display. colorbar - Display colorbar (MATLAB Toolbox). getimage - Get image data from axes. image - Create and display image object (MATLAB Toolbox). imagesc - Scale data and display as image (MATLAB Toolbox). immovie - Make movie from multiframe image. imshow - Display image. montage - Display multiple image frames as rectangular montage. movie - Play recorded movie frames (MATLAB Toolbox). subimage - Display multiple images in single figure. truesize - Adjust display size of image. warp - Display image as texture-mapped surface. Image file I/O. dicominfo - Read metadata from a DICOM message. dicomread - Read a DICOM image. dicomwrite - Write a DICOM image. dicom-dict.txt - Text file containing DICOM data dictionary. imfinfo - Return information about image file (MATLAB Toolbox). imread - Read image file (MATLAB Toolbox). imwrite - Write image file (MATLAB Toolbox). Image arithmetic. imabsdiff - Compute absolute difference of two images. imadd - Add two images, or add constant to image. imcomplement - Complement image. imdivide - Divide two images, or divide image by constant. imlincomb - Compute linear combination of images. immultiply - Multiply two images, or multiply image by constant. imsubtract - Subtract two images, or subtract constant from image. Geometric transformations. checkerboard - Create checkerboard image. findbounds - Find output bounds for geometric transformation. fliptform - Flip the input and output roles of a TFORM struct. imcrop - Crop image. imresize - Resize image. imrotate - Rotate image. imtransform - Apply geometric transformation to image. makeresampler - Create resampler structure. maketform - Create geometric transformation structure (TFORM). tformarray - Apply geometric transformation to N-D array. tformfwd - Apply forward geometric transformation. tforminv - Apply inverse geometric transformation. Image registration. cpstruct2pairs - Convert CPSTRUCT to valid pairs of control points. cp2tform - Infer geometric transformation from control point pairs. cpcorr - Tune control point locations using cross-correlation. cpselect - Control point selection tool. normxcorr2 - Normalized two-dimensional cross-correlation. Pixel values and statistics. corr2 - Compute 2-D correlation coefficient. imcontour - Create contour plot of image data. imhist - Display histogram of image data. impixel - Determine pixel color values. improfile - Compute pixel-value cross-sections along line segments. mean2 - Compute mean of matrix elements. pixval - Display information about image pixels. regionprops - Measure properties of image regions. std2 - Compute standard deviation of matrix elements. Image analysis. edge - Find edges in intensity image. qtdecomp - Perform quadtree decomposition. qtgetblk - Get block values in quadtree decomposition. qtsetblk - Set block values in quadtree decomposition. Image enhancement. histeq - Enhance contrast using histogram equalization. imadjust - Adjust image intensity values or colormap. imnoise - Add noise to an image. medfilt2 - Perform 2-D median filtering. ordfilt2 - Perform 2-D order-statistic filtering. stretchlim - Find limits to contrast stretch an image. wiener2 - Perform 2-D adaptive noise-removal filtering. Linear filtering. convmtx2 - Compute 2-D convolution matrix. fspecial - Create predefined filters. imfilter - Filter 2-D and N-D images. Linear 2-D filter design. freqspace - Determine 2-D frequency response spacing (MATLAB Toolbox). freqz2 - Compute 2-D frequency response. fsamp2 - Design 2-D FIR filter using frequency sampling. ftrans2 - Design 2-D FIR filter using frequency transformation. fwind1 - Design 2-D FIR filter using 1-D window method. fwind2 - Design 2-D FIR filter using 2-D window method. Image deblurring. deconvblind - Deblur image using blind deconvolution. deconvlucy - Deblur image using Lucy-Richardson method. deconvreg - Deblur image using regularized filter. deconvwnr - Deblur image using Wiener filter. edgetaper - Taper edges using point-spread function. otf2psf - Optical transfer function to point-spread function. psf2otf - Point-spread function to optical transfer function. Image transforms. dct2 - 2-D discrete cosine transform. dctmtx - Discrete cosine transform matrix. fft2 - 2-D fast Fourier transform (MATLAB Toolbox). fftn - N-D fast Fourier transform (MATLAB Toolbox). fftshift - Reverse quadrants of output of FFT (MATLAB Toolbox). idct2 - 2-D inverse discrete cosine transform. ifft2 - 2-D inverse fast Fourier transform (MATLAB Toolbox). ifftn - N-D inverse fast Fourier transform (MATLAB Toolbox). iradon - Compute inverse Radon transform. phantom - Generate a head phantom image. radon - Compute Radon transform. Neighborhood and block processing. bestblk - Choose block size for block processing. blkproc - Implement distinct block processing for image. col2im - Rearrange matrix columns into blocks. colfilt - Columnwise neighborhood operations. im2col - Rearrange image blocks into columns. nlfilter - Perform general sliding-neighborhood operations. Morphological operations (intensity and binary images). conndef - Default connectivity. imbothat - Perform bottom-hat filtering. imclearborder - Suppress light structures connected to image border. imclose - Close image. imdilate - Dilate image. imerode - Erode image. imextendedmax - Extended-maxima transform. imextendedmin - Extended-minima transform. imfill - Fill image regions and holes. imhmax - H-maxima transform. imhmin - H-minima transform. imimposemin - Impose minima. imopen - Open image. imreconstruct - Morphological reconstruction. imregionalmax - Regional maxima. imregionalmin - Regional minima. imtophat - Perform tophat filtering. watershed - Watershed transform. Morphological operations (binary images) applylut - Perform neighborhood operations using lookup tables. bwarea - Compute area of objects in binary image. bwareaopen - Binary area open (remove small objects). bwdist - Compute distance transform of binary image. bweuler - Compute Euler number of binary image. bwhitmiss - Binary hit-miss operation. bwlabel - Label connected components in 2-D binary image. bwlabeln - Label connected components in N-D binary image. bwmorph - Perform morphological operations on binary image. bwpack - Pack binary image. bwperim - Determine perimeter of objects in binary image. bwselect - Select objects in binary image. bwulterode - Ultimate erosion. bwunpack - Unpack binary image. makelut - Construct lookup table for use with applylut. Structuring element (STREL) creation and manipulation. getheight - Get strel height. getneighbors - Get offset location and height of strel neighbors getnhood - Get strel neighborhood. getsequence - Get sequence of decomposed strels. isflat - Return true for flat strels. reflect - Reflect strel about its center. strel - Create morphological structuring element. translate - Translate strel. Region-based processing. roicolor - Select region of interest, based on color. roifill - Smoothly interpolate within arbitrary region. roifilt2 - Filter a region of interest. roipoly - Select polygonal region of interest. Colormap manipulation. brighten - Brighten or darken colormap (MATLAB Toolbox). cmpermute - Rearrange colors in colormap. cmunique - Find unique colormap colors and corresponding image. colormap - Set or get color lookup table (MATLAB Toolbox). imapprox - Approximate indexed image by one with fewer colors. rgbplot - Plot RGB colormap components (MATLAB Toolbox). Color space conversions. hsv2rgb - Convert HSV values to RGB color space (MATLAB Toolbox). ntsc2rgb - Convert NTSC values to RGB color space. rgb2hsv - Convert RGB values to HSV color space (MATLAB Toolbox). rgb2ntsc - Convert RGB values to NTSC color space. rgb2ycbcr - Convert RGB values to YCBCR color space. ycbcr2rgb - Convert YCBCR values to RGB color space. Array operations. circshift - Shift array circularly. (MATLAB Toolbox). padarray - Pad array. Image types and type conversions. dither - Convert image using dithering. gray2ind - Convert intensity image to indexed image. grayslice - Create indexed image from intensity image by thresholding. graythresh - Compute global image threshold using Otsu's method. im2bw - Convert image to binary image by thresholding. im2double - Convert image array to double precision. im2java - Convert image to Java image (MATLAB Toolbox). im2uint8 - Convert image array to 8-bit unsigned integers. im2uint16 - Convert image array to 16-bit unsigned integers. ind2gray - Convert indexed image to intensity image. ind2rgb - Convert indexed image to RGB image (MATLAB Toolbox). isbw - Return true for binary image. isgray - Return true for intensity image. isind - Return true for indexed image. isrgb - Return true for RGB image. label2rgb - Convert label matrix to RGB image. mat2gray - Convert matrix to intensity image. rgb2gray - Convert RGB image or colormap to grayscale. rgb2ind - Convert RGB image to indexed image. Toolbox preferences. iptgetpref - Get value of Image Processing Toolbox preference. iptsetpref - Set value of Image Processing Toolbox preference. Demos. dctdemo - 2-D DCT image compression demo. edgedemo - Edge detection demo. firdemo - 2-D FIR filtering and filter design demo. imadjdemo - Intensity adjustment and histogram equalization demo. landsatdemo - Landsat color composite demo. nrfiltdemo - Noise reduction filtering demo. qtdemo - Quadtree decomposition demo. roidemo - Region-of-interest processing demo. Slide shows. ipss001 - Region labeling of steel grains. ipss002 - Feature-based logic. ipss003 - Correction of nonuniform illumination. Extended-examples. ipexindex - Index of extended examples. ipexsegmicro - Segmentation to detect microstructures. ipexsegcell - Segmentation to detect cells. ipexsegwatershed - Watershed segmentation. ipexgranulometry - Granulometry of stars. ipexdeconvwnr - Wiener deblurring. ipexdeconvreg - Regularized deblurring. ipexdeconvlucy - Lucy-Richardson deblurring. ipexdeconvblind - Blind deblurring. ipextform - Image transform gallery. ipexshear - Image padding and shearing. ipexmri - 3-D MRI slices. ipexconformal - Conformal mapping. ipexnormxcorr2 - Normalized cross-correlation. ipexrotate - Rotation and scale recovery. ipexregaerial - Aerial photo registration. imth = im>120; foo = imerode(imth); ??? Error using ==> c:/matlab6p5ggg/toolbox/images/images/private/checknargin Function imerode expected at least 2 input arguments but was called instead with 1 input argument. Error in ==> C:\MATLAB6p5ggg\toolbox\images\images\imerode.m On line 125 ==> checknargin(2,5,nargin,mfilename); foo = imerode(imth,ones(3)); imagesc(foo) components = bwlabel(foo); figure imagesc(componentsA) ??? Undefined function or variable 'componentsA'. imagesc(components) colormap([0 0 0 ; 255 0 0 ; 0 255 0 ; 0 0 255]) ??? Error using ==> colormap Colormap must have values in [0,1]. colormap([0 0 0 ; 1 0 0 ; 0 1 0 ; 0 0 1]) image(components) imagesc(components) image(components) components(1,1) ans = 0 image(components+1) hold on diary off