I can display two images in two different windows in direct graphics
like this:
window, 1, XSIZE = imSize[1], YSIZE = imSize[2]
tvscl, congrid(image, imSize[1], imSize[2])
window, 2, XSIZE = imSize[1], YSIZE = imSize[2]
tvscl, congrid(image1, imSize[1], imSize[2])
I want to display the two images this way in two windows but in object
graphics. I tried to do the following in object graphics, but didn't
help.
oImage = Obj_New('IDLgrImage', image, ORDER = 2)
oWindow = Obj_New('IDLgrWindow')
oView = Obj_New('IDLgrView', VIEWPLANE_RECT = [0,0,512,512], COLOR =
[0,0,0], PROJECTION = 2)
oModel = Obj_New('IDLgrModel')
oModel -> Add, oImage
oView -> Add, oModel
oWindow -> Draw, oView
and again for image1.
oImage = Obj_New('IDLgrImage', image1, ORDER = 2)
oWindow = Obj_New('IDLgrWindow')
oView = Obj_New('IDLgrView', VIEWPLANE_RECT = [0,0,512,512], COLOR =
[0,0,0], PROJECTION = 2)
oModel = Obj_New('IDLgrModel')
oModel -> Add, oImage
oView -> Add, oModel
oWindow -> Draw, oView
but it doesn't work. I hope i'm clear this time.
I'm sorry to bother you, but i have another question to ask you. I saw
that you have once discussed about dispaying the image for Medical
imaging purposes using 4096 as a greyscale instead of 255. Is that
possible and how can you do that?
Thank you for your time.
Regerds,
Akhila
David Fanning <david@dfanning.com> wrote in message news:<MPG.170a61484298476d98984e@news.frii.com>...
> Akhila (idlfreak@yahoo.com) writes:
>
>> I looked at your program but u have drawn some different views in
>> one scene and displayed that in one window. Is that the only way we
>> can do it?
>>
>> In direct graphics
>>
>> tvscl, image
>> tvscl, image1
>>
>> will draw two images in two windows. I want to do that but in object
>> graphics. Please tell me if that's possible.
>
> Actually, your example will overdraw the second image
> in the same window as the first, so I'm not exactly
> sure what you are asking about. Could you clarify
> exactly what you want?
>
> Cheers,
>
> David
|