0% found this document useful (0 votes)
16 views

Matlab Commands

This document lists over 40 image processing commands in Matlab, grouped into sections for image operations, feature detection, and frequency domain operations. Commands allow reading, writing, displaying, resizing and adjusting images as well as filtering, edge detection, morphological operations and more.

Uploaded by

wardahabid03
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views

Matlab Commands

This document lists over 40 image processing commands in Matlab, grouped into sections for image operations, feature detection, and frequency domain operations. Commands allow reading, writing, displaying, resizing and adjusting images as well as filtering, edge detection, morphological operations and more.

Uploaded by

wardahabid03
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Matlab Commands:

1. imread: Reads an image from a file.

2. imwrite: Writes an image to a file.

3. imshow: Displays an image.

4. imresize: Resizes an image.

5. imrotate: Rotates an image.

6. imcrop: Crops a region from an image.

7. imadjust: Adjusts the contrast of an image.

8. imfilter: Applies a filter to an image.

9. rgb2gray: Converts an RGB image to grayscale.

10. graythresh: Computes a threshold for binarizing a grayscale image.

11. bwlabel: Labels connected components in a binary image.

12. regionprops: Computes properties of labeled regions in a binary image.

13. bwareaopen: Removes small objects from a binary image.

14. medfilt2: Applies median filtering to an image.

15. edge: Detects edges in an image using various methods.

16. histeq: Performs histogram equalization on a grayscale image.

17. im2bw: Converts a grayscale or RGB image to binary.

18. imhist: Computes the histogram of an image.

19. strel: Creates a structuring element for morphological operations.

20. imerode: Erodes objects in a binary image.

21. imdilate: Dilates objects in a binary image.

22. imnoise: Adds noise to an image.

23. fspecial: Creates a predefined filter or kernel, such as Gaussian or average filter.

24. conv2: Performs 2-D convolution between an image and a filter/kernel.

25. imgradient: Computes the gradient magnitude and direction of an image.

26. imfill: Fills holes in objects in a binary image.

27. bwmorph: Performs morphological operations like thinning, thickening, skeletonization, etc.
28. corner: Detects corner features in an image.

29. vision.PeopleDetector: Detects people in an image using a trained machine learning model.

30. vision.CascadeObjectDetector: Detects objects like faces, eyes, or cars in an image using a
trained cascade classifier.

31. vision.BinaryFileReader: Reads binary files typically used in computer vision applications.

32. vision.VideoFileReader: Reads video files frame by frame.

33. vision.VideoPlayer: Displays video frames.

34. detectSURFFeatures: Detects SURF (Speeded Up Robust Features) keypoints in an image.

35. extractFeatures: Extracts features from image regions for object recognition.

36. matchFeatures: Matches extracted features between two images.

37. estimateGeometricTransform: Estimates geometric transformation between two sets of


matched points.

38. warpAffine: Applies an affine transformation to an image.

39. imwarp: Warps an image according to a specified geometric transformation.

40. vision.SIFTDetector: Detects Scale-Invariant Feature Transform (SIFT) keypoints in an image.

Frequency Domain:

1. fft2: Computes the 2-D discrete Fourier transform (DFT) of an image.

2. ifft2: Computes the 2-D inverse discrete Fourier transform (IDFT) of an image.

3. fftshift: Shifts zero frequency component to the center of the spectrum.

4. ifftshift: Undoes the effect of fftshift.

5. abs: Computes the absolute value of complex numbers.

6. angle: Computes the phase angle of complex numbers.

7. fftshift: Shifts zero frequency component to the center of the spectrum.

8. ifftshift: Undoes the effect of fftshift.

9. filter2: Applies a spatial filter to an image in the frequency domain.

10. dct2: Computes the 2-D discrete cosine transform (DCT) of an image.

11. idct2: Computes the 2-D inverse discrete cosine transform (IDCT) of an image.
12. blkproc: Applies a function to each block of an image.

13. fspecial: Creates predefined filters for spatial domain operations, which can be transformed to
the frequency domain.

14. freqz2: Computes the frequency response of a 2-D filter.

You might also like