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

Home » Public Forums » archive » Re: Very complicated visualization problem
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
Re: Very complicated visualization problem [message #60026] Fri, 25 April 2008 21:53 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
khaldanr@gmail.com writes:

> Please give me more details, I did not understand how to do that.
> Actually I am beginner in IDL and I do not know yet so much. Please I
> need more details.

Well, then why are starting with heart surgery? I'd learn
to suture a cut first.

But, anyway, you have a handful of "regions", right?
They don't overlap. So make a 500x500 byte array.
Assign each of your regions a number (1 to 7, if you
like). In turn, take the the pixels that make up a region
and assign them a number in the byte array. You will get
a 2D array that has the regions all identified by a different
number. Load a color table with that many colors, and just
display it.

display = Bytarr(500, 500)
display[region_1] = 1
display[region_2] = 2
etc.
Loadct, 13, NCOLORS=nregions, BOTTOM=1
TV, display

It turns your "complicated" visualization problem into
something a whole lot simpler.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Very complicated visualization problem [message #60027 is a reply to message #60026] Fri, 25 April 2008 19:16 Go to previous messageGo to next message
khaldanr is currently offline  khaldanr
Messages: 3
Registered: April 2008
Junior Member
On Apr 25, 7:43 pm, David Fanning <n...@dfanning.com> wrote:
> khald...@gmail.com writes:
>> Please any help in this complicated problem.
>
> If there is no overlap, just assign a different
> number to each segment, collapse the three channel
> image into a single 2D image, and display that with
> any color table you like.
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Dear David,

Please give me more details, I did not understand how to do that.
Actually I am beginner in IDL and I do not know yet so much. Please I
need more details.

Thank you very much,

Khaldan
Re: Very complicated visualization problem [message #60028 is a reply to message #60027] Fri, 25 April 2008 18:43 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
khaldanr@gmail.com writes:

> Please any help in this complicated problem.

If there is no overlap, just assign a different
number to each segment, collapse the three channel
image into a single 2D image, and display that with
any color table you like.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Very complicated visualization problem [message #60161 is a reply to message #60026] Sun, 27 April 2008 17:09 Go to previous message
khaldanr is currently offline  khaldanr
Messages: 3
Registered: April 2008
Junior Member
On Apr 25, 10:53 pm, David Fanning <n...@dfanning.com> wrote:
> khald...@gmail.com writes:
>> Please give me more details, I did not understand how to do that.
>> Actually I am beginner in IDL and I do not know yet so much. Please I
>> need more details.
>
> Well, then why are starting with heart surgery? I'd learn
> to suture a cut first.
>
> But, anyway, you have a handful of "regions", right?
> They don't overlap. So make a 500x500 byte array.
> Assign each of your regions a number (1 to 7, if you
> like). In turn, take the the pixels that make up a region
> and assign them a number in the byte array. You will get
> a 2D array that has the regions all identified by a different
> number. Load a color table with that many colors, and just
> display it.
>
> display = Bytarr(500, 500)
> display[region_1] = 1
> display[region_2] = 2
> etc.
> Loadct, 13, NCOLORS=nregions, BOTTOM=1
> TV, display
>
> It turns your "complicated" visualization problem into
> something a whole lot simpler.
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

Thank you very much David. I really appreciate your help!.

Khaldan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Documenting IDL routines
Next Topic: Re: Documenting IDL routines

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

Current Time: Wed Oct 08 19:22:10 PDT 2025

Total time taken to generate the page: 0.00585 seconds