comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » scientific image
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
scientific image [message #92488] Wed, 30 December 2015 04:25 Go to next message
Ali Gamal is currently offline  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 #92489 is a reply to message #92488] Wed, 30 December 2015 04:56 Go to previous messageGo to next message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Wednesday, December 30, 2015 at 12:25:25 PM UTC, 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 guess you're looking for these procedures:
http://www.exelisvis.com/docs/PROFILE.html
http://www.exelisvis.com/docs/PROFILES_Procedure.html

Cheers,
Helder
Re: scientific image [message #92490 is a reply to message #92488] Wed, 30 December 2015 05:27 Go to previous messageGo to next message
Ali Gamal is currently offline  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?

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.
Re: scientific image [message #92491 is a reply to message #92490] Wed, 30 December 2015 05:32 Go to previous messageGo to next message
Helder Marchetto is currently offline  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 #92494 is a reply to message #92488] Wed, 30 December 2015 10:24 Go to previous messageGo to next message
Ali Gamal is currently offline  Ali Gamal
Messages: 98
Registered: June 2013
Member
thanks, I will try it and back again
Re: scientific image [message #92515 is a reply to message #92488] Sun, 03 January 2016 12:14 Go to previous messageGo to next message
Ali Gamal is currently offline  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 #92549 is a reply to message #92488] Mon, 11 January 2016 08:30 Go to previous messageGo to next message
Ali Gamal is currently offline  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
Re: scientific image [message #92552 is a reply to message #92488] Mon, 11 January 2016 12:24 Go to previous messageGo to next message
Ali Gamal is currently offline  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 Go to previous messageGo to next message
David Fanning is currently offline  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 Go to previous message
Ali Gamal is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: help using IMAGE.pro and COLORBAR in IDL
Next Topic: regarding IDL implementation of Gabor Filter based Image Feature Extraction and Image Classification

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:39:21 PDT 2025

Total time taken to generate the page: 0.00662 seconds