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

Home » Public Forums » archive » Help in Image Analysis
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Help in Image Analysis [message #47744 is a reply to message #47615] Thu, 02 March 2006 10:30 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Any 2D array, which is what you have in front of you,
> can be considered an "image". All you need do to is
> pull out of the data the rows you are interested in
> for further analysis:
>
> interestingStuff = data[*, 280:320]
>
> To display it as an image, you need to byte scale
> it (and perhaps take the absolute value, since your
> data is complex).
>
> TV, BytScl(Abs(interestingStuff))
>
> Now you are ready to perform any analysis that seems
> appropriate.

I'd try to find the row that had the maximum
value in the interesting stuff:

dims = Size(interestingStuff, /Dimension)
s = Scale_Vector(Abs(interestingStuff), 0, 1)
maxVal = Max(s, location)
row = location / dims[0]
Plot, s[*,row]

Now, you can easily find the peak values in this row, etc.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: idl array operations
Next Topic: Re: Problems compiling shared libraries

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

Current Time: Tue Oct 14 12:04:00 PDT 2025

Total time taken to generate the page: 3.27990 seconds