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

Home » Public Forums » archive » Complementary Color with XOBJVIEW
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Complementary Color with XOBJVIEW [message #77260] Fri, 19 August 2011 13:25 Go to previous message
M R is currently offline  M R
Messages: 19
Registered: July 2011
Junior Member
Hi

I am trying to display the output in white color instead of black as
being currently displayed in black in XOBJVIEW window. The image is
the maximum intensity pixel display in 3D (I can rotate the image,
etc). But as white color should be 255, 255, 255 in the 3D array, why
are the maximum pixels being displayed as black when I run the
program? How do I display the maximum intensity pixels in white color?
If its helps, I have posted the code below. Xinteranimate is displayed
as white slices on black background (default).

fil = file_search('filepath*', COUNT = count)

image = read_dicom(fil[0])

s = size(image)

arm = make_array(s[1],s[2],count,/nozero)

xinteranimate, set = [2*s[1],2*s[2], count], /showload

for i=0,count-1 do begin

image = read_dicom(fil[i])

arm[*,*,i] = image[*,*]

xinteranimate, frame = I, image = arm[*,*,I]

myvolume = OBJ_NEW('IDLgrVolume', bytscl(arm, min = 50, max =
200))

myvolume1 = OBJ_NEW('IDLgrVolume', bytscl(arm))

end

xinteranimate, /keep_pixmaps

XOBJVIEW, myvolume

xOBJVIEW, myvolume1

end
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: cursor in object-oriented graphics
Next Topic: Suppress Plots

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

Current Time: Wed Oct 08 15:34:53 PDT 2025

Total time taken to generate the page: 0.00449 seconds