Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Get pixel color (Labview) (http://www.chiefdelphi.com/forums/showthread.php?t=68916)

kamocat 22-08-2008 19:54

Get pixel color (Labview)
 
I've started to move into experimentation with image processing for the purpose of tracking or controlling a robot and simulating a field, but more and more I find I need to get the colors of the pixels surrounding the robot for this to be of any use. Is there a way of doing that without using Pixmaps? (If not, is there a way of doing that with pixmaps?)

Thanks!

Greg McKaskle 22-08-2008 22:08

Re: Get pixel color (Labview)
 
I'm not sure I understand what you are attempting. LabVIEW has basic pixmaps of a sort, but they are called Image Clusters or something similar. You can get at pixels and do basic stuff, but these aren't really for image processing.

For image processing, NI sells an add-on to LV and C for machine vision. This introduces a new datatype and diplay for images, and many many functions for processing the images.

If I'm off the mark, break down the question for me.

Greg McKaskle

kamocat 22-08-2008 22:52

Re: Get pixel color (Labview)
 
I'm not quite sure whether you understand it or not (I think I know what Pixmaps are, but I'm not sure that Labview has the same interpretation of them).

I want to get the color of a specific pixel. Say I have a pixel at coordinates 259, 340. How do I find its color? (Obviously, I can see it, but that doesn't mean I can incoorperate that specific pixel as a value into the block diagram).

Greg McKaskle 23-08-2008 20:48

Re: Get pixel color (Labview)
 
Where is the pixel? On the screen? If you drew it, then you can index the array of pixels to get at the one you are interested in. If the pixel is part of a camera or video display shown elsewhere onscreen, then you need to access the source content -- the jpeg on disk or frame buffer content.

This is where the types I mentioned in LV come into play. If LabVIEW is a part of the video display, you will end up using the image type provided. If loading JPEGs from disk you will use the image cluster.

As for pixmaps, there are hundreds of variations in how they are defined. LV can manipulate all of them, but it may not have built-in support. With more details, I'd be happy to help.

Greg McKaskle

kamocat 24-08-2008 02:28

Re: Get pixel color (Labview)
 
Thank you! I think I found what I was looking for. I didn't realize it initially because I didn't know what "unflattening a pixmap" meant.


All times are GMT -5. The time now is 08:17.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi