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

Home » Public Forums » archive » display problem mac osx
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
display problem mac osx [message #48286] Mon, 03 April 2006 01:33
Cris Lanting is currently offline  Cris Lanting
Messages: 2
Registered: April 2006
Junior Member
Hi IDL community,

I have a rather strange display problem. Since I'm working on
(functional) MR imaging
I've written a little program which scales one data-set in the range
0-127 and one data-set in the range
128-255 to make a color overlay of the (thresholded) second image over
the first image by adjusting the colortable.
This works both in Windows and Linux but MaxOSX (10.4.5) seems to
handle this a bit strange. Especially when I display a colorbar (thanks
David) the colors are displayed correctly in the colorbar but not in
the image itself.

Here is my code to construct my colortable:

ncolors = !D.Table_Size
halfcolors = Byte(ncolors / 2)
loadct,0,ncolors=halfcolors
loadct,3,ncolors=halfcolors,bottom=halfcolors

and for the scaling of the data the following snippet:
im1=bytscl(image1,top=halfcolors-1)
im2=bytscl(image2>threshold,top=halfcolors-1)+halfcolors
etc...

When I use tv (or my own equivalents) to show my data to the display
the colors in the image are not correct but the colors in the colorbar
are....
Any suggestions about this peculiar problem?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Introducing FL
Next Topic: Limits of custom axis

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

Current Time: Wed Oct 08 15:39:47 PDT 2025

Total time taken to generate the page: 0.00436 seconds