0% found this document useful (0 votes)
4 views6 pages

Week 3-45-50

MATLAB is a powerful data analysis and visualization tool with strong support for matrix operations and an extensive range of toolboxes, including those for image and signal processing. It provides various functions for image processing, such as reading, displaying, and enhancing images, as well as performing operations like histogram equalization and image segmentation. The document outlines specific syntax and examples for using these functions effectively.

Uploaded by

Avinash Rana
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)
4 views6 pages

Week 3-45-50

MATLAB is a powerful data analysis and visualization tool with strong support for matrix operations and an extensive range of toolboxes, including those for image and signal processing. It provides various functions for image processing, such as reading, displaying, and enhancing images, as well as performing operations like histogram equalization and image segmentation. The document outlines specific syntax and examples for using these functions effectively.

Uploaded by

Avinash Rana
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/ 6

ABOUT MATLAB

• MATLAB is a data analysis and visualization


tool which has been designed with powerful
support for matrices and matrix operations
has excellent graphics capabilities, and own
powerful programming language.
• Consist of many tool boxes with numerous
inbuilt functions
• (Eg.) tool Boxes – Image Processing
Signal Processing
MATLAB FUNCTIONS FOR IMAGE
PROCESSING
READ AN IMAGE
SYNTAX:
Variable= imread(‘Image.Extension’) SIZE OF AN IMAGE
Example:
Syntax
c=imread('cameraman.tif');
[row col] = size(variable where image is stored)
DISPLAY AN IMAGE Example
SYNTAX [row col] = size(c)
Figure (number)
imshow(variable where the image is stored)
Example
Figure(1)
imshow(c);
DATA TYPES IN MATLAB
DISPLAYING AN IMAGE

• Imshow(a) • Double
– Displays the image • changes the data type but does not
change the numeric values
• Imshow(a/255)
– Darkens the image ( all the matrix
values between 0 and 0.5) • Im2double
• changes both the numeric data type and
• Imshow(a/128) the values
– Lighten the image ( all the matrix • If image itself is double then im2double
values between 0 and 2) does not have any effect
Image Enhancement –Histogram
equalization
• hist(image_variable) • bar(xaxis, yaxis)
– To find the histogram of an image – To plot output Using bargraph
- The Image variable should be in
single column
Cumsum(image_variable)
Find the cumulative sum of the
image variables
./ Division operator for array
Image Segmentation

C = conv2(A,B) computes the two-dimensional convolution of matrices A and B.

You might also like