Рет қаралды 1,811
Display and plotting
Figure
Dividing the figure
Plot and plot3
Axis on ,off,equal,…
Help ….
Arithmetic operations
Do your operation to each pixel value :
1 -Converting to double
2 - Do your operations.
3 -If new pixel value more than 255 then set pv =255
4 -If pixel value less than 0 then set pv =0
Arithmetic operations
Add - imadd(img,v)
Subtract - imsubtract(img,v)
Multiply - immultiply(img,v)
Division - imdivide(img,v)
Arithmetic operations
Complements
The complement of a greyscale image is its photographic negative.
Using - imcomplement(img)
Histogram
Histogram : for gray level image histogram is a graph indicating the number of times each gray level occurs in the image .
In a dark image, the gray levels (and hence the histogram) would be clustered at the lower end
In a uniformly bright image, the gray levels would be clustered at the upper end
In a well contrasted image, the gray levels would be well spread out over much of the range
Technique to make histogram
Using for loop
Easily Using :imhist(gray)
Histogram equalization
The idea is to change the histogram to one which is uniform.
Using histeq(gray)