Documente Academic
Documente Profesional
Documente Cultură
>> f= imread('C:\Users\Bhavya\Desktop\index.jpeg');
Example-
>> whos f
RESULT-
RESULT-
imwrite(filename)
with this syntax, the string contained in filename must include
recognized file format extension. Alternatively, we can assign
another file format extension explicitly according to our need.
EXAMPLE-
A more general syntax that can be used only for JPEG/JPG format
images-
Imwrite(f, 'C:\Users\Bhavya\Desktop\test2.jpg,quality,q)
Suppose that A is an array of class double and some of its value lie
outside the range [0, 255]. Now , if we convert the data type into
uint8 class, then, MATLAB converts pixels value to 0 for all values
less than zero , and converts it to 255 for all values greater than 255.
FOR EXAMPLE
f=
-0.5 0.5
0.75 1.5
g = im2uint8(f)
g=
0 128
191 255
The histogram for the above can be plotted from the following
syntax:
Imhist(f)
Now, we can observe the from the histogram that the tonal
distribution is concentrated to the left hand side which represent the
dark and grey areas which is evident from the given photo.
I = histeq(f);
>> imhist(I)