I have shown the example that demonstrates the imwrite command. Here this command mainly changes the file extension. Here I have changed the .tif file into .jpg extension.
- code:
I=imread('cameraman.tif'); %imwrite command
imwrite(I, 'C:\Users\a1\Desktop\MS
PRACTICAL\cameraman.jpg','jpg');
// you have to just change the path from this code and give the location of the directory where you wish to save your image.
- output:
No comments:
Post a Comment