LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to draw a diagonal line profile with correct size?

Dear NI community,

I'm trying to make a diagonal line profile of an image (3840*2748). When I used the LineProfile.vi to do this work I always get an array of 3840 pixel values, which is not the length of the diagonal. Is there any way I can change this? or it's pre-determined by the algorithm of the vi.

Thanks a lot!

Rosh

0 Kudos
Message 1 of 3
(2,484 Views)

Please look into this example Diagonal Intensity Profile with Sub-Pixel Accuracy and Diagonal Line Length:https://forums.ni.com/t5/Example-Program-Drafts/Diagonal-Intensity-Profile-with-Sub-Pixel-Accuracy-a...

Thanks
uday
0 Kudos
Message 2 of 3
(2,388 Views)

Dear uday,

 

Thank you for your reply. I did checked out that one before I asked the question, but what it does is create a ramp pattern as a new x coordinates. The number of the data points in the line profile didn't change.

 

Rosh

0 Kudos
Message 3 of 3
(2,334 Views)