help images Image Processing Toolbox. Version 3.1 (R12.1) 18-May-2001 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. 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. 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. 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. 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. im2mis - Convert image to Java MemoryImageSource. 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. help imdemos Image Processing Toolbox --- demos and sample images 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. Extended-example helper M-files. ipex001 - Used by image padding and shearing example. ipex002 - Used by image padding and shearing example. ipex003 - Used by MRI slicing example. ipex004 - Used by conformal mapping example. ipex005 - Used by conformal mapping example. ipex006 - Used by conformal mapping example. Sample MAT-files. imdemos.mat - Images used in demos. trees.mat - Scanned painting. westconcordpoints.mat - Used by aerial photo registration example. Sample JPEG images. football.jpg greens.jpg Sample PNG images. concordorthophoto.png concordaerial.png westconcordorthophoto.png westconcordaerial.png Sample TIFF images. afmsurf.tif alumgrns.tif autumn.tif bacteria.tif blood1.tif board.tif bonemarr.tif cameraman.tif canoe.tif cell.tif circbw.tif circles.tif circlesm.tif debye1.tif eight.tif enamel.tif flowers.tif forest.tif ic.tif kids.tif lily.tif logo.tif m83.tif moon.tif mri.tif ngc4024l.tif ngc4024m.tif ngc4024s.tif paper1.tif pearlite.tif pout.tif rice.tif saturn.tif shadow.tif shot1.tif spine.tif testpat1.tif testpat2.tif text.tif tire.tif tissue1.tif trees.tif Sample Landsat images. littlecoriver.lan mississippi.lan montana.lan paris.lan rio.lan tokyo.lan Photo credits afmsurf, alumgrns, bacteria, blood1, bonemarr, circles, circlesm, debye1, enamel, flowers, ic, lily, ngc4024l, ngc4024m, ngc4024s, pearlite, rice, saturn, shot1, testpat1, testpat2, text, tire, tissue1: Copyright J. C. Russ, The Image Processing Handbook, Second Edition, 1994, CRC Press, Boca Raton, ISBN 0-8493-2516-1. Used with permission. moon: Copyright Michael Myers. Used with permission. cameraman: Copyright Massachusetts Institute of Technology. Used with permission. trees: Trees with a View, watercolor and ink on paper, copyright Susan Cohen. Used with permission. forest: Photograph of Carmanah Ancient Forest, British Columbia, Canada, courtesy of Susan Cohen. circuit: Micrograph of 16-bit A/D converter circuit, courtesy of Steve Decker and Shujaat Nadeem, MIT, 1993. m83: M83 spiral galaxy astronomical image courtesy of Anglo-Australian Observatory, photography by David Malin. cell: Cancer cell from a rat's prostate, courtesy of Alan W. Partin, M.D, Ph.D., Johns Hopkins University School of Medicine. board: Computer circuit board, courtesy of Alexander V. Panasyuk, Ph.D., Harvard-Smithsonian Center for Astrophysics. LAN files: Permission to use Landsat TM data sets provided by Space Imaging, LLC, Denver, Colorado. concordorthophoto and westconcordorthophoto: Orthoregistered photographs courtesy of Massachusetts Executive Office of Environmental Affairs, MassGIS. concordaerial and westconcordaerial: Visible color aerial photographs courtesy of mPower3/Emerge. I = imread('saturn.tif'); whos Name Size Bytes Class I 328x438 143664 uint8 array Grand total is 143664 elements using 143664 bytes imshow(I) I(1:10,1:10) ans = 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 I(201:210,201:210) ans = 242 238 244 254 250 242 234 229 211 178 241 239 242 249 244 234 222 193 158 128 238 239 239 239 232 211 176 143 114 93 237 235 234 226 198 159 128 102 86 80 233 228 211 175 143 113 92 82 77 71 217 190 157 125 100 85 79 75 64 52 169 140 113 91 80 77 70 58 47 40 121 97 84 79 73 64 51 43 38 39 90 81 77 69 57 46 40 40 42 51 79 74 63 51 42 38 39 46 58 73 imshow(I(201:210,201:210)) [1:10] ans = 1 2 3 4 5 6 7 8 9 10 [1:2:10] ans = 1 3 5 7 9 Isquash = I(:,1:2:end); imshow(Isquash) Idark = 0.1*I; ??? Error using ==> * Function '*' not defined for variables of class 'uint8'. IdoubleA = double(I)/255; IdoubleB = im2double(I); imshow(IdoubleB) Idark = 0.1*IdoubleA; imshow(Idark) imshow(Idark,[0 0.1]) imshow(Idark,[]) help images Image Processing Toolbox. Version 3.1 (R12.1) 18-May-2001 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. 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. 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. 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. 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. im2mis - Convert image to Java MemoryImageSource. 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. clear close all I = imread('cell.tif'); imshow(I) whos Name Size Bytes Class I 159x191 30369 uint8 array Grand total is 30369 elements using 30369 bytes mean2(I(150:end,:)) ans = 119.2204 Ithresh = (I > 130); imshow(Ithresh) figure; imshow(I) whos Name Size Bytes Class I 159x191 30369 uint8 array Ithresh 159x191 30369 uint8 array (logical) ans 1x1 8 double array Grand total is 60739 elements using 60746 bytes close all clear I = imread('football.jpg'); imshow(I) whos Name Size Bytes Class I 256x320x3 245760 uint8 array Grand total is 245760 elements using 245760 bytes R = I(:,:,1); figure imshow(R) B = I(:,:,3); figure imshow(B) Igray = rgb2gray(I); whos Name Size Bytes Class B 256x320 81920 uint8 array I 256x320x3 245760 uint8 array Igray 256x320 81920 uint8 array R 256x320 81920 uint8 array Grand total is 491520 elements using 491520 bytes imshow(Igray) close all clear I=imread('kids.tif'); whos Name Size Bytes Class I 400x318 127200 uint8 array Grand total is 127200 elements using 127200 bytes imshow(I) [I,map] = imread('kids.tif'); whos Name Size Bytes Class I 400x318 127200 uint8 array map 256x3 6144 double array Grand total is 127968 elements using 133344 bytes imshow(I,map) Igray = ind2gray(I,map); figure; imshow(Igray) figure; imshow(I) imfinfo('kids.tif') ans = Filename: [1x58 char] FileModDate: '25-Oct-1996 18:11:20' FileSize: 95162 Format: 'tif' FormatVersion: [] Width: 318 Height: 400 BitDepth: 8 ColorType: 'indexed' FormatSignature: [73 73 42 0] ByteOrder: 'little-endian' NewSubfileType: 0 BitsPerSample: 8 Compression: 'PackBits' PhotometricInterpretation: 'RGB Palette' StripOffsets: [16x1 double] SamplesPerPixel: 1 RowsPerStrip: 25 StripByteCounts: [16x1 double] XResolution: 72 YResolution: 72 ResolutionUnit: 'Inch' Colormap: [256x3 double] PlanarConfiguration: 'Chunky' TileWidth: [] TileLength: [] TileOffsets: [] TileByteCounts: [] Orientation: 1 FillOrder: 1 GrayResponseUnit: 0.0100 MaxSampleValue: 255 MinSampleValue: 0 Thresholding: 1 figure; plot(map(:,1)) close all diary off