scientific image [message #92488] |
Wed, 30 December 2015 04:25  |
Ali Gamal
Messages: 98 Registered: June 2013
|
Member |
|
|
Hi, I have scientific image as idl save file, I want to plot line on it then I want to plot the intensity of this line at every pixel, how can I do it?
|
|
|
|
|
Re: scientific image [message #92491 is a reply to message #92490] |
Wed, 30 December 2015 05:32   |
Helder Marchetto
Messages: 520 Registered: November 2011
|
Senior Member |
|
|
On Wednesday, December 30, 2015 at 1:27:08 PM UTC, Ali Gamal wrote:
> On Wednesday, December 30, 2015 at 2:25:25 PM UTC+2, Ali Gamal wrote:
>> Hi, I have scientific image as idl save file, I want to plot line on it then I want to plot the intensity of this line at every pixel, how can I do it?
>
> I want other thing, I will draw line on my image then I want to extract the intensity of every pixel at this line, then draw it.
Isn't this *exactly* what the example in
http://www.exelisvis.com/docs/PROFILE.html
shows?
I quote from the web page:
"This example displays an image, selects a profile, and plots that profile in a new window"
Did you try it at all?
Cheers,
Helder
|
|
|
|
Re: scientific image [message #92515 is a reply to message #92488] |
Sun, 03 January 2016 12:14   |
Ali Gamal
Messages: 98 Registered: June 2013
|
Member |
|
|
On Wednesday, December 30, 2015 at 2:25:25 PM UTC+2, Ali Gamal wrote:
> Hi, I have scientific image as idl save file, I want to plot line on it then I want to plot the intensity of this line at every pixel, how can I do it?
thanks, when I try to plot two lines,the first point of second line start from the point of first line as
Mark the two end points of the profile.
From: ( 113, 276)
To ( 452, 440)
Mark the two end points of the profile.
From: ( 452, 440)
I want to choose the start point of the second line, how?
|
|
|
|
Re: scientific image [message #92552 is a reply to message #92488] |
Mon, 11 January 2016 12:24   |
Ali Gamal
Messages: 98 Registered: June 2013
|
Member |
|
|
On Wednesday, December 30, 2015 at 2:25:25 PM UTC+2, Ali Gamal wrote:
> Hi, I have scientific image as idl save file, I want to plot line on it then I want to plot the intensity of this line at every pixel, how can I do it?
Now I want to draw normalized intensity
...........................
restore,file='image.sav'
map=stokesout[*,*,12,0]
cgIMAGE,congrid(map,500,1000),0,1
;make normalized intensity
x=mean(map)
nmap=map/x
...............
Now when I use
tvscl,congrid(nmap,500,1000),0,1
the picture appears but when I use
cgIMAGE,congrid(nmap,500,1000),0,1
appears dark screen why? How can I do it correctly?
|
|
|
Re: scientific image [message #92553 is a reply to message #92552] |
Mon, 11 January 2016 20:59   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Ali Gamal writes:
> Now when I use
> tvscl,congrid(nmap,500,1000),0,1
> the picture appears but when I use
> cgIMAGE,congrid(nmap,500,1000),0,1
> appears dark screen why? How can I do it correctly?
Add the keyword SCALE to your cgImage command.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: scientific image [message #92555 is a reply to message #92488] |
Tue, 12 January 2016 11:23  |
Ali Gamal
Messages: 98 Registered: June 2013
|
Member |
|
|
On Wednesday, December 30, 2015 at 2:25:25 PM UTC+2, Ali Gamal wrote:
> Hi, I have scientific image as idl save file, I want to plot line on it then I want to plot the intensity of this line at every pixel, how can I do it?
okay, thanks
|
|
|