LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

get pixel coordinates in image with mouseclick

Hey there
Im a beginner at labview, so i walked into a little problem.
I want to know if there is a way to get pixel coordinates from an imagefile with a mouseclick in labview, this is to use the coordinates in order to calibrate the image without using the vision assistent.

THx with regards
jens dassen
0 Kudos
Message 1 of 6
(6,133 Views)
You can use an event structure to detect a mouse click and its coordinates.
Since coords are given relative to the VI, you will need to find the top left corner of the image (using the position properties) and substract.
As for the calibration, you will have to code that according to your needs.

To learn more, I suggest you read the LabVIEW user manual. These things can be found there. Also, try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide.

___________________
Try to take over the world!
Message 2 of 6
(6,124 Views)
thx tst
i will follow your advice and hopefully i will become a pro in labview 😉

greets jens
0 Kudos
Message 3 of 6
(6,107 Views)

I'm not sure if this is something new with newer versions of LabVIEW, but I just solved this problem using a property node for the image indicator. See images below. Super easy!

 

Cheers!

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


Download All
0 Kudos
Message 4 of 6
(5,368 Views)

Hi experts,

 

I apologize if I have posted this in the wrong place...

 

Following the above example, I have managed to get the image string as shown in the attached files. 

 

Is there a way to extract the RGB values in data form to be fed to another block which converts the values into CMYK?

 

Regards,

Newbiwan

0 Kudos
Message 5 of 6
(5,028 Views)

@newbiwan wrote:

Hi experts,

 

I apologize if I have posted this in the wrong place...

 

Following the above example, I have managed to get the image string as shown in the attached files. 

 

Is there a way to extract the RGB values in data form to be fed to another block which converts the values into CMYK?

 

Regards,

Newbiwan


You can use the pixel locations from the string to pull that specific pixel from the image data and get the RGB value from that if you want.

Cheers


--------,       Unofficial Forum Rules and Guidelines                                           ,--------

          '---   >The shortest distance between two nodes is a straight wire>   ---'


0 Kudos
Message 6 of 6
(4,820 Views)