how to my indexed imgage as png file

3 views (last 30 days)
[cdata cmap]=imread("pc.gif");
How i save this image and view this?
Also i save this image as png file?
How it is possible?

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 30 Oct 2013
[cdata cmap]=imread('pc.gif');
imshow(cdata,cmap)%display your image
imwrite(cdata,cmap,'pc.png')
  2 Comments
Anusha
Anusha on 31 Oct 2013
Error using imwrite (line 459) Can't open file "pc" for writing. You may not have write permission.
Anusha
Anusha on 31 Oct 2013
i clear the error.. got output thank you

Sign in to comment.

More Answers (0)

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!