save from .jpg to .txt

Asked by Tulips on 6 Jul 2012
Latest activity Answered by Walter Roberson on 7 Jul 2012

hi,can I know how to save .jpg file that contains pixels value to a .txt file. fyi, i'm not sure why my .txt file is empty after I save as .txt file and also use ascii syntax.thanks!

Tulips

Products

No products are associated with this question.

1 Answer

Answer by Walter Roberson on 7 Jul 2012
MyImage = imread('MyJPEG.jpg');
save( 'MyTextJPEG.txt', 'MyImage', -ascii );

0 Comments

Walter Roberson

Contact us