1. First the image, which you wont to process put it into current directory folder or you can change current directory folder.
2. now you can proceed to coding for image processing.
....................................................................................................................................................
Code:
....................................................................................................................................................
m=imread('filename.jpg');
i=rgb2gray(m);
figure, imshow(m), figure, imshow(i);
--------------------------------------------------------------------------------------------------------------
Experiment using imadjust()
--------------------------------------------------------------------------------------------------------------
Code
--------------------------------------------------------------------------------------------------------------
f=imread('filename.jpg');
g=imadjust(f,[0 1], [0 1]);
figure, imshow(f), figure, imshow(g);
-------------------------------------------------------------------------------------------------------------
2. now you can proceed to coding for image processing.
....................................................................................................................................................
Code:
....................................................................................................................................................
m=imread('filename.jpg');
i=rgb2gray(m);
figure, imshow(m), figure, imshow(i);
--------------------------------------------------------------------------------------------------------------
Experiment using imadjust()
--------------------------------------------------------------------------------------------------------------
Code
--------------------------------------------------------------------------------------------------------------
f=imread('filename.jpg');
g=imadjust(f,[0 1], [0 1]);
figure, imshow(f), figure, imshow(g);
-------------------------------------------------------------------------------------------------------------
No comments:
Post a Comment
Note: only a member of this blog may post a comment.