Search code examples
labview

Labview - Locate pixel of determined color


I am trying to find out how to locate the pixel of determined color. I have a binary picture. The whole picture is black and there is a white pixel at the first line of image somewhere. I need to define the coordinates of the white pixel (such as [0;x]) and crop the picture by x-coordinate.


Solution

  • You can do it by transforming the picture into a 2D array, retrieving the first array and using the search 1D array method. See VI snippet below.

    enter image description here