Thread Subject: saving displayed image from imagesc

Subject: saving displayed image from imagesc

From: Hassan Mahmoud

Date: 24 Nov, 2009 08:41:03

Message: 1 of 3

i would like to save the resultant gradual image displayed from imagesec command into file or variable for later processing so that it holds image displayed.

this is my chunk code, i want to save (K) in file or make imshow for it later
_________________________
img=im2double(imread('c:\1.tif'));
[x,y] = gradient(img);
 mag = sqrt(x.*x+y.*y);
th = atan2(y,x);
figure ; K=imagesc(th.*mag);
____________________________
how can i save and process image stored in K?

regards.

Subject: saving displayed image from imagesc

From: Clare

Date: 24 Nov, 2009 08:53:05

Message: 2 of 3

Hi Hassan,

look into "imwrite" and "imread".

-Clare

"Hassan Mahmoud" <fcis2005@hotmail.com> wrote in message <heg66v$mgn$1@fred.mathworks.com>...
> i would like to save the resultant gradual image displayed from imagesec command into file or variable for later processing so that it holds image displayed.
>
> this is my chunk code, i want to save (K) in file or make imshow for it later
> _________________________
> img=im2double(imread('c:\1.tif'));
> [x,y] = gradient(img);
> mag = sqrt(x.*x+y.*y);
> th = atan2(y,x);
> figure ; K=imagesc(th.*mag);
> ____________________________
> how can i save and process image stored in K?
>
> regards.

Subject: saving displayed image from imagesc

From: Oliver Woodford

Date: 24 Nov, 2009 09:36:03

Message: 3 of 3

Take a look at SC on the file exchange:
http://www.mathworks.com/matlabcentral/fileexchange/16233

Oliver

"Hassan Mahmoud" wrote:
> i would like to save the resultant gradual image displayed from imagesec command into file or variable for later processing so that it holds image displayed.
>
> this is my chunk code, i want to save (K) in file or make imshow for it later
> _________________________
> img=im2double(imread('c:\1.tif'));
> [x,y] = gradient(img);
> mag = sqrt(x.*x+y.*y);
> th = atan2(y,x);
> figure ; K=imagesc(th.*mag);
> ____________________________
> how can i save and process image stored in K?
>
> regards.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com