Getting Started with Image Processing Tool Box MatLab | Digital Image Processing

Опубликовано: 01 Октябрь 2024
на канале: Programming For Fun
339
10

Step 1: Read and Display an Image
Read an image into the workspace, using the imread command. The example reads one of the sample images included with the toolbox, an image of a young girl in a file named pout.tif , and stores it in an array named I . imread infers from the file that the graphics file format is Tagged Image File Format (TIFF).

Display the image, using the imshow function. You can also view an image in the Image Viewer app. The imtool function opens the Image Viewer app which presents an integrated environment for displaying images and performing some common image processing tasks. The Image Viewer app provides all the image display capabilities of imshow but also provides access to several other tools for navigating and exploring images, such as scroll bars, the Pixel Region tool, Image Information tool, and the Contrast Adjustment tool.

Step 2: Check How the Image Appears in the Workspace
Check how the imread function stores the image data in the workspace, using the whos command. You can also check the variable in the Workspace Browser. The imread function returns the image data in the variable I , which is a 291-by-240 element array of uint8 data.

Step 3: Improve Image Contrast
View the distribution of image pixel intensities. The image pout.tif is a somewhat low contrast image. To see the distribution of intensities in the image, create a histogram by calling the imhist function. (Precede the call to imhist with the figure command so that the histogram does not overwrite the display of the image I in the current figure window.) Notice how the histogram indicates that the intensity range of the image is rather narrow. The range does not cover the potential range of [0, 255], and is missing the high and low values that would result in good contrast.

Improve the contrast in an image, using the histeq function. Histogram equalization spreads the intensity values over the full range of the image. Display the image. (The toolbox includes several other functions that perform contrast adjustment, including imadjust and adapthisteq, and interactive tools such as the Adjust Contrast tool, available in the Image Viewer.)


Subscribe and stay tuned for updates!!

Video Editor : Wondershare, Ae

Mic for Recording : JBL

Voice Recorder : MI Voice

Lets Connect!
Instagram:  / programming.  .
Facebook:  / programmingf.  .
Subscribe:https://www.youtube.com/channel/UCc1m...


Get your Ad in our Channel contact [email protected]

#Matlab #DIP #digitalImageProcessing