DragonQ Posted May 20, 2009 Report Share Posted May 20, 2009 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. Quote Link to comment
ShaunR Posted May 20, 2009 Report Share Posted May 20, 2009 You could do all that, but it might be easier to use use the "Overlay" functions in the "Vision Utilities" library. Quote Link to comment
DragonQ Posted May 20, 2009 Author Report Share Posted May 20, 2009 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! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.