LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving intensity plot with cursor using IMAQ

Solved!
Go to solution

Hello,

 

I have an intensity plot image that I want to save with cursor (without losing image quality) and having some issues. Can anyone point me where I'm doing wrong? I tried using overlay function to redraw cursor line in IMAQ but the coordinate is not right and the image size becomes 3 times bigger.

 

Thanks in advance.

 

Capture.PNG

0 Kudos
Message 1 of 6
(2,940 Views)

Why do you create a new image? I would wire the original image into "IMAQ Overlay Line".

0 Kudos
Message 2 of 6
(2,907 Views)

Thanks for the reply. You are right, I could use the same image into overlay line. But I have to use the merge overlay.vi to save the line with the original image. However, that causes the image size to grow 3 times bigger.

Also, what would be a good way to convert that cursor position to IMAQ coordinate (start/end location used in overlay line.vi)?

 

Thanks.

0 Kudos
Message 3 of 6
(2,899 Views)

This seemed to work, but the image looks rotated 90 degrees from the graph, but that's something you can look into.

 

Call overlay with the original image, merge, then cast it back to grayscale since merge returns RGB.

 

Hope this helps!

Feel free. Contact me for anything more,
    Pang

You too can be LabVIEW Awesome!
Message 4 of 6
(2,891 Views)

Hi, thanks for the reply, that fixes the size issue. I don't have VDM installed (for IMAQ cast image vi), so I used pix map to convert to u8, I must be doing something wrong since the image came out is not right. Any suggestion is appreciated~!

Also, how can I convert the cursor position to imaq coordinate?Capture.PNG

0 Kudos
Message 5 of 6
(2,870 Views)
Solution
Accepted by topic author tgif73

Looks like you'll need to transpose then rebuild the 2-D array by swapping rows. The graph's cursor's coordinates are already referenced to the array's indices, so no scaling or offsetting is needed.

 

 

Feel free. Contact me for anything more,
    Pang

You too can be LabVIEW Awesome!
0 Kudos
Message 6 of 6
(2,847 Views)