01-27-2005 05:23 AM
01-28-2005 10:15 AM
06-30-2009 03:23 AM
Hi Michael,
Can you give me way to get the coordinates of all pixels in the particle. Is it possible through Particle annalysis report ?
Thanks
06-30-2009 06:53 AM
Hi,
In general the are two possibilities how to do this.
Method 1 - overlay your labeled image over gray image as bitmap overlay:
Advantage - you will still see true gray values (also under overlay). Otherwise, this is not fastest way.
Method 2 - embed labeled image into gray image (resulting image will be RGB, of course):
This method probably will be faster (especially if you will put this code into DLL).
Result will be the same in both cases:
Example (modified NI example) in attachment. LV 8.6 + Vision 8.6.
Andrey.
07-02-2009 03:20 PM
I could imagine that you might want to see some structure in your labeled and colored particles. Then I would suggest to dim the gray image so that it just uses the gray level range from roughly 0 to 192. and convert it to RGB. The binary image need to be converted to RGB as well. Here adjust maximum intensity to 255-192=63. Now separate both images in colorplanes and add repective planes. Now convert the colorplanes back to an RGB image.
I did this once using LV 7.2 to overlay a fluorescence signal to a real time video image from an endoscope. I could get a frame rate of about 15 frames per second. But I haven't investigated what was the limitation.
Regards, Jörn
07-03-2009 06:03 AM
Jörn,
Well, if you follow this method where display splitted with two ranges, then you don't need to display RGB image and play with color planes.
You can display gray image with indexed colors with user-defined palette, something like that:
The result looks same as above (take a note - here 8 bit image displayed, not RGB):
This is probably fastest way (especially if ImageToArray / ArrayToImage will be placed in DLL).
Andrey.
07-03-2009 06:36 AM
07-03-2009 07:10 AM
Ah so, now understand. Yes, if you need "transparency" effect, then you need algorithm like you have described above.