You are on page 1of 11

# 1. adapthisteq Perform contrast-limited adaptive histogram equalization (CLAHE) Syntax J = adapthisteq(I) J = adapthisteq(I,param1,val1,param2,val2...

) J = adapthisteq(I) enhances the contrast of the intensity image I by transforming the values using contrast-limited adaptive histogram equalization (CLAHE). 2. applycform: Apply color space transformation Syntax out = applycform(I,C) Descriptionout = applycform(I,C) converts the color values in I to the color space specified in the color transformation structure C 3. applylut :Perform neighborhood operations on binary images using lookup tables Syntax A = applylut(BW,LUT) DescriptionA = applylut(BW,LUT) performs a 2-by-2 or 3-by-3 neighborhood operation on binary image BW by using a lookup table (LUT 4. bestblk: Determine block size for block processing Syntax siz = bestblk([m n],k) [mb,nb] = bestblk([m n],k) Descriptionsiz = bestblk([m n],k) returns, for an m-by-n image, the optimal block size for block processing. k is a scalar specifying the maximum row and column dimensions for the block; if the argument is omitted, it defaults to 100. The return value siz is a 1-by-2 vector containing the row and column dimensions for the block. 5. blkproc: Implement distinct block processing for an image Syntax B = blkproc(A,[m n],fun) B = blkproc(A,[m n],fun,P1,P2,...) B = blkproc(A,[m n],[mborder nborder],fun,...) B = blkproc(A,'indexed',...) Description B = blkproc(A,[m n],fun) processes the image A by applying the function fun to each distinct m-by-n block of A, padding A with 0's if necessary. fun is a function that accepts an m-by-n matrix, x, and returns a matrix, vector, or scalar y. y = fun(x) 11. bweuler :Compute the Euler number of a binary image Syntax eul = bweuler(BW,n) Description eul = bweuler(BW,n) returns the Euler number for the binary image BW. The return value eul is a scalar whose value is the total number of objects in the image minus the total number of holes in those objects.

12. bwhitmiss: Binary hit-and-miss operation Syntax BW2 = bwhitmiss(BW1,SE1,SE2) BW2 = bwhitmiss(BW1,INTERVAL) Description :BW2 = bwhitmiss(BW1,SE1,SE2) performs the hit-and-miss operation defined by the structuring elements SE1 and SE2. The hit-and-miss operation preserves pixels whose neighborhoods match the shape of SE1 and don't match the shape of SE2. SE1 and SE2 can be flat structuring element objects, created by strel, or neighborhood arrays. 13. bwlabel: Label connected components in a binary image Syntax L = bwlabel(BW,n) [L,num] = bwlabel(BW,n) Description L = bwlabel(BW,n) returns a matrix L, of the same size as BW, containing labels for the connected objects in BW. n can have a value of either 4 or 8, where 4 specifies 4-connected objects and 8 specifies 8-connected objects; if the argument is omitted, it defaults to 8. 14. bwlabeln: Label connected components in N-D binary image Syntax L = bwlabeln(BW) [L,NUM] = bwlabeln(BW) [L,NUM] = bwlabeln(BW,CONN) Description L = bwlabeln(BW) returns a label matrix L containing labels for the connected components in BW. BW can have any dimension; L is the same size as BW. The elements of L are integer values greater than or equal to 0. The pixels labeled 0 are the background. The pixels labeled 1 make up one object, the pixels labeled 2 make up a second object, and so on. The default connectivity is 8 for two dimensions, 26 for three dimensions, and conndef(ndims(BW), 'maximal') for higher dimensions. 15. bwmorph: Perform morphological operations on binary images Syntax BW2 = bwmorph(BW,operation) BW2 = bwmorph(BW,operation,n) Description BW2 = bwmorph(BW,operation) applies a specific morphological operation to the binary image BW. BW2 = bwmorph(BW,operation,n) applies the operation n times. n can be Inf, in which case the operation is repeated until the image no longer changes. 16.bwpack :Pack binary image Syntax BWP = bwpack(BW) DescriptionBWP = bwpack(BW) packs the uint8 binary image BW into the uint32 array BWP, which is known as a packed binary image. Because each 8-bit pixel value in the binary image has only two possible values, 1 and 0, bwpack can map each pixel to a single bit in the packed output image.

17.bwperim : Find perimeter pixels in binary image Syntax BW2 = bwperim(BW1) BW2 = bwperim(BW1,CONN) DescriptionBW2 = bwperim(BW1) returns a binary image containing only the perimeter pixels of objects in the input image BW1. A pixel is part of the perimeter if it is nonzero and it is connected to at least one zero-valued pixel. The default connectivity is 4 for two dimensions, 6 for three dimensions, and conndef(ndims(BW), 'minimal') for higher dimensions. 18. bwselect: Select objects in a binary image Syntax BW2 = bwselect(BW,c,r,n) BW2 = bwselect(BW,n) [BW2,idx] = bwselect(...) BW2 = bwselect(x,y,BW,xi,yi,n) [x,y,BW2,idx,xi,yi] = bwselect(...) DescriptionBW2 = bwselect(BW,c,r,n) returns a binary image containing the objects that overlap the pixel (r,c). r and c can be scalars or equal-length vectors. If r and c are vectors, BW2 contains the sets of objects overlapping with any of the pixels (r(k),c(k)). n can have a value of either 4 or 8 (the default), where 4 specifies 4-connected objects and 8 specifies 8-connected objects. Objects are connected sets of on pixels (i.e., pixels having a value of 1) 19. bwtraceboundary: Trace object in a binary image Syntax B = bwtraceboundary(BW,P,fstep) B = bwtraceboundary(BW,P,fstep,CONN) B = bwtraceboundary(...,N,dir) Description B = bwtraceboundary(BW,P,fstep) traces the outline of an object in binary image bw. 20. bwulterode :Ultimate erosion Syntax BW2 = bwulterode(BW) BW2 = bwulterode(BW,METHOD,CONN) Description BW2 = bwulterode(BW) computes the ultimate erosion of the binary image BW. The ultimate erosion of BW consists of the regional maxima of the Euclidean distance transform of the complement of BW. The default connectivity for computing the regional maxima is 8 for two dimensions, 26 for three dimensions, and conndef(ndims(BW), 'maximal') for higher dimensions.

31. convn :N-dimensional convolution Syntax C = convn(A,B) C = convn(A,B,'shape') 32. corr2 Compute the two-dimensional correlation coefficient between two matrices Syntax r = corr2(A,B) 33. cp2tform :Infer geometric transformation from control point pairs Syntax TFORM = cp2tform(input_points,base_points,transformtype) TFORM = cp2tform(CPSTRUCT,transformtype) TFORM = cp2tform(input_points,base_points,transformtype,parameter) 34. cpcorr: Tune control-point locations using cross correlation Syntax input_points = cpcorr(input_points_in,base_points_in,input,base) 35. cpselect :Control Point Selection Tool Syntax cpselect(input,base) cpselect(input,base,CPSTRUCT_IN ) 36. cpstruct2pairs: Convert CPSTRUCT to valid pairs of control points Syntax [input_points, base_points] = cpstruct2pairs(CPSTRUCT) 37. dct2 Compute two-dimensional discrete cosine transform Syntax B = dct2(A) B = dct2(A,m,n) B = dct2(A,[m n]) 38. dctmtx Compute discrete cosine transform matrix Syntax D = dctmtx(n) 39. deconvblind :Restore image using the blind deconvolution algorithm Syntax [J,PSF] = deconvblind(I,INITPSF) [J,PSF] = deconvblind(I,INITPSF,NUMIT) [J,PSF] = deconvblind(I,INITPSF,NUMIT,DAMPAR)

40. deconvlucy: Restore image using the Lucy-Richardson algorithm SyntaxJ = deconvlucy(I,PSF) J = deconvlucy(I,PSF,NUMIT) J = deconvlucy(I,PSF,NUMIT,DAMPAR) 41. deconvreg :Restore image using a regularized filter Syntax J = deconvreg(I,PSF) J = deconvreg(I,PSF,NOISEPOWER) J = deconvreg(I,PSF,NOISEPOWER,LRANGE) J = deconvreg(I,PSF,NOISEPOWER,LRANGE,REGOP) 42. deconvwnr: Restore image using the Wiener filter Syntax J = deconvwnr(I,PSF) J = deconvwnr(I,PSF,NSR) J = deconvwnr(I,PSF,NCORR,ICORR) 43. decorrstretch: Apply a decorrelation stretch to a multichannel image Syntax S = decorrstretch(I) S = decorrstretch(I,TOL) 44. dicomdict: Get or set the active DICOM data dictionary Syntax dicomdict('set', dictionary) dictionary = dicomdict('get') 45. dicominfo : Read metadata from a DICOM message Syntax info = dicominfo(filename) info = dicominfo(filename,'dictionary', D) 46. dicomread: Read a DICOM image Syntax X = dicomread(filename) X = dicomread(info) [X,map] = dicomread(...) 47. dicomuid: Generate a DICOM unique identifier Syntax UID = dicomuid

48. dicomwrite :Write images as DICOM files Syntax dicomwrite(X, filename) dicomwrite(X, map, filename) dicomwrite(...,param1,value1,param2,value2,...) dicomwrite(...,'ObjectType',IOD,...) dicomwrite(...,'SOPClassUID',UID,...) dicomwrite(...,meta_struct,...) dicomwrite(...,info,...) status = dicomwrite(...) 49. dither :Convert an image, increasing apparent color resolution by dithering Syntax X = dither(RGB,map) BW = dither(I) 50. double: Convert to double precision Syntax double(X) 51 .iccread :Read ICC profile Syntax P = iccread(filename) 52. idct2 :Compute two-dimensional inverse discrete cosine transform Syntax B = idct2(A) B = idct2(A,m,n) B = idct2(A,[m n]) 53. ifanbeam Compute inverse fan-beam transform Syntax I = ifanbeam(F,D) I = ifambeam(...,param1,val1,param2,val2,...) [I,H] = ifanbeam(...) 54. ifft2 Two-dimensional inverse discrete Fourier transform Syntax Y = ifft2(X) 55. ifftn Multidimensional inverse discrete Fourier transform Syntax Y = ifftn(X) Y = ifftn(X,siz)

56. im2bw Convert an image to a binary image, based on threshold Syntax BW = im2bw(I,level) BW = im2bw(X,map,level) BW = im2bw(RGB,level) 57. im2col :Rearrange image blocks into columns Syntax B = im2col(A,[m n],block_type) B = im2col(A,[m n]) B = im2col(A,'indexed',...) 58. im2double :Convert image array to double precision Syntax I2 = im2double(I) RGB2 = im2double(RGB) I = im2double(BW) X2 = im2double(X,'indexed') 59. im2java2d Convert image to Java buffered image Syntax jimage = im2java2d(I) jimage = im2java2d(X,MAP) 60. im2uint16 Convert image array to 16-bit unsigned integers Syntax I2 = im2uint16(I) RGB2 = im2uint16(RGB) I = im2uint16(BW) X2 = im2uint16(X,'indexed') 61. im2uint8 Convert image array to 8-bit unsigned integers Syntax I2 = im2uint8(I) RGB2 = im2uint8(RGB) I = im2uint8(BW) X2 = im2uint8(X,'indexed') 62. imabsdiff Compute absolute difference of two images Syntax Z = imabsdiff(X,Y) 63. imadd Add two images, or add a constant to an image Syntax Z = imadd(X,Y)

64. imadjust Adjust image intensity values or colormap Syntax J = imadjust(I) J = imadjust(I,[low_in; high_in],[low_out; high_out]) 65. imapprox :Approximate indexed image by one with fewer colors Syntax [Y,newmap] = imapprox(X,map,n) [Y,newmap] = imapprox(X,map,tol) 66. imbothat: Perform bottom-hat filtering Syntax IM2 = imbothat(IM,SE) IM2 = imbothat(IM,NHOOD) 67. imclearborder: Suppress light structures connected to image border Syntax IM2 = imclearborder(IM) IM2 = imclearborder(IM,CONN) 68. imclose Close an image Syntax IM2 = imclose(IM,SE) IM2 = imclose(IM,NHOOD) 69. imcomplement Complement image SyntaxIM2 = imcomplement(IM) 70. imcontour Create a contour plot of image data Syntaxim contour(I) imcontour(I,n) imcontour(I,v) imcontour(x,y,...) imcontour(...,LineSpec) [C,h] = imcontour(...) 71.imcrop Crop an image SyntaxI2 = imcrop(I) X2 = imcrop(X,map) RGB2 = imcrop(RGB) 72. imdilate Dilate image Syntax IM2 = imdilate(IM,SE) IM2 = imdilate(IM,NHOOD) IM2 = imdilate(IM,SE,PACKOPT) IM2 = imdilate(...,PADOPT)

73. imdivide Divide one image into another, or divide an image by a constant SyntaxZ = imdivide(X,Y) 74. imerode Erode image Syntax IM2 = imerode(IM,SE) IM2 = imerode(IM,NHOOD) IM2 = imerode(IM,SE,PACKOPT,M) IM2 = imerode(...,PADOPT) 75 imextendedmax Extended-maxima transform Syntax BW = imextendedmax(I,H) BW = imextendedmax(I,H,CONN) 76. imextendedmin Extended-minima transform Syntax BW = imextendedmin(I,h) BW = imextendedmin(I,h,CONN) 77 imfill Fill image regions SyntaxBW2 = imfill(BW,locations) BW2 = imfill(BW,'holes') I2 = imfill(I) 78. imfilter Multidimensional image filtering SyntaxB = imfilter(A,H) B = imfilter(A,H,option1,option2,...) 79. imfinfo Information about graphics file Syntaxinfo = imfinfo(filename,fmt) info = imfinfo(filename) 80. imhist :Display a histogram of image data Syntaximhist(I,n) imhist(X,map) [counts,x] = imhist(...) 81. imhmax :H-maxima transform SyntaxI2 = imhmax(I,h) I2 = imhmax(I,h,CONN) 82: imhmin: H-minima transform SyntaxI2 = imhmin(I,h) I2 = imhmin(I,h,CONN) 83. imimposemin :Impose minima SyntaxI2 = imimposemin(I,BW) I2 = imimposemin(I,H,CONN) 84. xyz2uint16 Convert color data from xyz representation to uint16 Syntaxxyz16 = xyz2uint16(xyz)

watershed Find image watershed regions SyntaxL = watershed(A) L = watershed(A,CONN) warp Display an image as a texture-mapped surface Syntaxwarp(X,map) warp(I,n) warp(BW) warp(RGB) warp(z,...) warp(x,y,z,...) h = warp(...)

truesize Adjust display size of an image Syntaxtruesize(fig,[mrows mcols]) truesize(fig) translate Translate structuring element SyntaxSE2 = translate(SE,V) subimage Display multiple images in the same figure Syntaxsubimage(X,map) subimage(I) subimage(BW) subimage(RGB) stretchlim Find limits to contrast stretch an image SyntaxLOW_HIGH = stretchlim(I,TOL) LOW_HIGH = stretchlim(RGB,TOL) strel Create morphological structuring element SyntaxSE = strel(shape,parameters) roifill Smoothly interpolate within an arbitrary image region SyntaxJ = roifill(I,c,r) J = roifill(I) roicolor Select region of interest, based on color SyntaxBW = roicolor(A,low,high) BW = roicolor(A,v) rgb2gray Convert an RGB image or colormap to grayscale rgb2hsv Convert RGB values to hue-saturation-value (HSV) color space rgb2ind Convert an RGB image to an indexed image Syntax[X,map] = rgb2ind(RGB,tol) [X,map] = rgb2ind(RGB,n)

rgb2ntsc Convert RGB values to NTSC color space Syntaxyiqmap = rgb2ntsc(rgbmap) YIQ = rgb2ntsc(RGB) regionprops Measure properties of image regions SyntaxSTATS = regionprops(L,properties) reflect Reflect structuring element SyntaxSE2 = reflect(SE) pixval Display information about image pixels Syntaxpixval on pixval off pixval ordfilt2 Perform two-dimensional order-statistic filtering SyntaxB = ordfilt2(A,order,domain) mat2gray Convert a matrix to a grayscale intensity image SyntaxI = mat2gray(A,[amin amax]) I = mat2gray(A) medfilt2 Perform two-dimensional median filtering SyntaxB = medfilt2(A,[m n]) B = medfilt2(A) B = medfilt2(A,'indexed',...) makecform Create a color transformation structure SyntaxC = makecform(type) C = makecform(type, 'whitepoint', WP) C = makecform('icc', src_profile, dest_profile) qtgetblk Get block values in quadtree decomposition Syntax[vals,r,c] = qtgetblk(I,S,dim) [vals,idx] = qtgetblk(I,S,dim)