Jump to content

Overlay RGB image onto U16 greyscale image


Recommended Posts

Hi all,

I have a U16 image that I show using an "Image Display". I wish to highlight certain pixels red depending on certain conditions. My initial thought was to overlay an image that contained red pixels in the correct places but this seems like it isn't going to work - so far I've tried several things but I run into the following problem: the "ArrayToImage" function doesn't accept RGB U64 data. It does accept RGB U32 data but if I convert my U16 image to RGB U32 then I lose resolution and the image will likely have no dynamic range at all (since the original data, whilst it can be anywhere on the U16 scale, is usually very uniform on a single image). I wonder if it would be possible to get the U16 image, convert it to RGB U64 and then make a mask in RGB U32, convert that to RGB U64 too, and then overlay one on top of the other?

So...does anyone have any suggestions for how to overlay some red pixels onto a U16 image or perhaps an alternative method?

Thanks,

DragonQ.

Link to comment

QUOTE (ShaunR @ May 19 2009, 03:32 PM)

You could do all that, but it might be easier to use use the "Overlay" functions in the "Vision Utilities" library.

See, I knew there shoulda been an easier way to do this. The only problem appears to be that when removing the overlay, it flashes a bit whereas adding stuff to it is smooth. Might be a problem in my code though.

Thanks very much! :)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.