Image processing in_matlab
-
Upload
esys-india-malegaon -
Category
Documents
-
view
986 -
download
0
Transcript of Image processing in_matlab
![Page 1: Image processing in_matlab](https://reader036.fdocuments.in/reader036/viewer/2022082921/5558114ad8b42a5e468b485a/html5/thumbnails/1.jpg)
Image Processing in MATLAB
04/12/2023
DOES - PC
![Page 2: Image processing in_matlab](https://reader036.fdocuments.in/reader036/viewer/2022082921/5558114ad8b42a5e468b485a/html5/thumbnails/2.jpg)
Sine Wave:
An image in MATLAB is treated as a matrixEvery pixel is a matrix element
• MATLAB can import/export several image formats– BMP (Microsoft Windows Bitmap)– GIF (Graphics Interchange Files)– HDF (Hierarchical Data Format)– JPEG (Joint Photographic Experts Group)– PCX (Paintbrush)– PNG (Portable Network Graphics)– TIFF (Tagged Image File Format)– XWD (X Window Dump)– MATLAB can also load raw-data or other
types of image data
![Page 3: Image processing in_matlab](https://reader036.fdocuments.in/reader036/viewer/2022082921/5558114ad8b42a5e468b485a/html5/thumbnails/3.jpg)
Image Processing Toolbox Functions:
•adjust the contrast•create contours •create histograms•manipulate regions of interest •degraded images•detect and measure features•analyze shapes and textures•adjust color balance
•image enhancement•image deblurring•feature detection•noise reduction•image segmentation•geometric transformations•image registration•explore an image•examine a region of pixels
![Page 4: Image processing in_matlab](https://reader036.fdocuments.in/reader036/viewer/2022082921/5558114ad8b42a5e468b485a/html5/thumbnails/4.jpg)
Basic Commands:
1) Read and Display an Image:
>> I= imread(‘A.png');
>> imshow(I)
>> whos Name Size Bytes Class
I 349x356x3 372732 uint8 array
![Page 5: Image processing in_matlab](https://reader036.fdocuments.in/reader036/viewer/2022082921/5558114ad8b42a5e468b485a/html5/thumbnails/5.jpg)
2) Basic Operations on a Rice Image:
>> I = imread('rice.png');>> imshow(I)
>> background = imopen(I,strel('disk',15));>> figure, imshow(background)
![Page 6: Image processing in_matlab](https://reader036.fdocuments.in/reader036/viewer/2022082921/5558114ad8b42a5e468b485a/html5/thumbnails/6.jpg)
>> I2 = imsubtract(I,background);>> figure, imshow(I2)
>> I3 = imadjust(I2);>> figure, imshow(I3