how to my indexed imgage as png file

[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

[cdata cmap]=imread('pc.gif');
imshow(cdata,cmap)%display your image
imwrite(cdata,cmap,'pc.png')

2 Comments

Error using imwrite (line 459) Can't open file "pc" for writing. You may not have write permission.
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

Asked:

on 30 Oct 2013

Commented:

on 31 Oct 2013

Community Treasure Hunt

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

Start Hunting!