IMAQ GetPixelLine For Diagonal Line Coordinates

Updated Oct 5, 2018

Reported In

Driver

  • NI-IMAQ

Issue Details

I want to understand how the built in function IMAQ GetPixelLine works.
  • What are the coordinates of the pixel values from IMAQ GetPixelLine.vi  when the endpoints given are diagonal, e.g. the "Line Coordinates" input is (0, 0, 1, 100).
  • How does this VI determine the coordinates for which it will return values? 

Solution

This function will begin with the starting coordinate and end on the ending coordinate in this form (X start, Y start, X start, Y end). The pixel values will be based on a line of best fit. It will return the value of the pixel that is closest to the line and will not interpolate. 

WAS THIS ARTICLE HELPFUL?

Not Helpful