display problem mac osx [message #48286] |
Mon, 03 April 2006 01:33 |
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?
|
|
|