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

Home » Public Forums » archive » Re: Display two images on one position
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: Display two images on one position [message #28658 is a reply to message #28657] Mon, 24 December 2001 00:51 Go to previous messageGo to previous message
Emmler, Oliver is currently offline  Emmler, Oliver
Messages: 14
Registered: May 2001
Junior Member
> How about this:
>
> LoadCT, 0, NColors=100
> s = Size(image, /Dimensions)
> composite = BytArr(s[0], s[1])
> imageIndex = Where(highlight EQ 0, Complement=hltIndex)
> composite[imageIndex] = BytScl(image[imageIndex], Top=99)
> composite[hltIndex] = BytScl(highlight[hltIndex], Top=99) + 100B
> LoadCT, 5, NColors=100, Bottom=100
> TV, composite

Great. This is nearly what i want to.

Isn't there a function Just to display two images on one array 256x256
without deleting the first displayed one ?

;## Produce Highlighted Area
highlight = image
ndots = WHERE(image LT x)
highlight(ndots) = 0

;## Produce Negative of Highlighted Area out of Image
pdots = WHERE(image GT x-1)
negative = image
negative(pdots) = 0

I am creating two images devided by the value x so i get highlight and
image. Easiest Way to do would be :

LoadCT, 0
tv, image
LoadCT, 5
tv, highlight

Unfortunately this erases the first image.

Regards,

Oliver
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Write_Image
Next Topic: Re: Display two images on one position : or even three!

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

Current Time: Sat Oct 11 21:06:15 PDT 2025

Total time taken to generate the page: 1.28026 seconds