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

Home » Public Forums » archive » Re: Displaying slices using same scaling
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: Displaying slices using same scaling [message #52734] Fri, 23 February 2007 06:23
Yikes is currently offline  Yikes
Messages: 8
Registered: January 2007
Junior Member
Beautiful!!!!!! Thank you :D

On Feb 23, 1:44 pm, David Fanning <n...@dfanning.com> wrote:
> Paolo Grigis writes:
>> You can use the function "bytscl" on the 3d array (as a whole)
>> and then display the single slices using "tv".
>
> Well, it is *slightly* more complicated than that.
> Find the minimum and maximum value of all the slices
> together, then use the MIN and MAX keywords to BYTSCL
> when you do the scaling. Then all your slices will
> be scaled to the same absolute scale.
>
> 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: Displaying slices using same scaling [message #52735 is a reply to message #52734] Fri, 23 February 2007 05:59 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> Paolo Grigis writes:
>
>> You can use the function "bytscl" on the 3d array (as a whole)
>> and then display the single slices using "tv".
>
> Well, it is *slightly* more complicated than that.
> Find the minimum and maximum value of all the slices
> together, then use the MIN and MAX keywords to BYTSCL
> when you do the scaling. Then all your slices will
> be scaled to the same absolute scale.

Uh, well, after re-reading Paolo's post, I guess this
amounts to the same thing. Next time, I'll try to get
the coffee ready first. :-)

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: Displaying slices using same scaling [message #52736 is a reply to message #52735] Fri, 23 February 2007 05:44 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Paolo Grigis writes:

> You can use the function "bytscl" on the 3d array (as a whole)
> and then display the single slices using "tv".

Well, it is *slightly* more complicated than that.
Find the minimum and maximum value of all the slices
together, then use the MIN and MAX keywords to BYTSCL
when you do the scaling. Then all your slices will
be scaled to the same absolute scale.

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: Displaying slices using same scaling [message #52737 is a reply to message #52736] Fri, 23 February 2007 05:00 Go to previous message
Paolo Grigis is currently offline  Paolo Grigis
Messages: 171
Registered: December 2003
Senior Member
You can use the function "bytscl" on the 3d array (as a whole)
and then display the single slices using "tv".

Ciao,
Paolo

cakeo wrote:
> Hi everyone,
>
> I have a 3D array which is made up of different slices of 2D images
> all stacked up together. Each slices have different ranges of pixel
> intensity from each other.
>
> I want to display the slices in a window using the same scaling.
>
>> From the IDL help file, I know that I can display all the slices in
> the same window by looping the TVSCL or TV call. I dont want to use
> TVSCL because that results in my slices being scaled differently from
> each other and TV wouldnt display my images at all.
>
> Does anyone have any suggestion to my naive question please?
>
> Thank you..
>
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Displaying slices using same scaling
Next Topic: Re: Specify the degree of accuracy of a floating point number

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

Current Time: Wed Oct 08 15:26:37 PDT 2025

Total time taken to generate the page: 0.00592 seconds