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

Home » Public Forums » archive » Image scale as 0 - 4096 instead of 0 - 255
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Image scale as 0 - 4096 instead of 0 - 255 [message #29944 is a reply to message #29908] Tue, 26 March 2002 14:38 Go to previous messageGo to previous message
idlfreak is currently offline  idlfreak
Messages: 47
Registered: October 2001
Member
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
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: command line edit problem
Next Topic: Re: updating a different widget from the event handler

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

Current Time: Sat Oct 11 02:44:39 PDT 2025

Total time taken to generate the page: 1.84159 seconds