DSPRelated.com
Forums

Converting JPEG images into MAT format images

Started by naveen_anne August 27, 2004
Hi all,
Does anybody know how to convert a JPG image of size 1024X1024 to an
image of MAT format in matlab?
Anyhelp in this regard will be appreciated.
Thanks
Naveen



Naveen,

This should help

x = imread('filename.jpg','jpg'); % read the file.I assume file is
in current directory
save file1 x; % variable x will b stored in mat format to disk and if
it is in workspace then it means that it is in mat format.

Hope this helps.

Tarang ----- Original Message -----
From: naveen_anne <>
Date: Fri, 27 Aug 2004 22:56:23 -0000
Subject: [matlab] Converting JPEG images into MAT format images
To:

Hi all,
Does anybody know how to convert a JPG image of size 1024X1024 to an
image of MAT format in matlab?
Anyhelp in this regard will be appreciated.
Thanks
Naveen

_____________________________________
Note: If you do a simple "reply" with your email client, only the
author of this message will receive your answer. You need to do a
"reply all" if you want your answer to be distributed to the entire
group.

_____________________________________
About this discussion group:

To Join:

To Post:

To Leave:

Archives: http://www.yahoogroups.com/group/matlab

More DSP-Related Groups: http://www.dsprelated.com/groups.php3
________________________________
Yahoo! Groups Links

To