LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

binary 2D image array

I'm lookking for a solution for this problem: I have a binary 2D array of an image. Now I want to search for and count all "1" (= high) values in the 2D array. Please help me to solve this problem. Thx.
0 Kudos
Message 1 of 6
(4,106 Views)
would this work?
0 Kudos
Message 2 of 6
(4,103 Views)
hello. thx for answering, but i'm not able to open the VI, because i'm working with an older LABVIEW version (-> LabVIEW 7.1). Is it possible for you to convert the VI to the older version? thx
0 Kudos
Message 3 of 6
(4,099 Views)

I don't know what a "binary image array" is, but if you mean a 2D boolean array, you can wire it into Boolean to (0,1) and wire the output of that into Add Array elements (Boolean and Numeric palettes).

If that doesn't help, you should post your VI so we can see what your array looks like.

To learn more about LabVIEW, I suggest you 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 and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).

___________________
Try to take over the world!
0 Kudos
Message 4 of 6
(4,091 Views)

hello. last year I joined the labview basic course I, but in some cases I not able to solve difficult exercises.

This is my problem: There is a RGB image which should be processed. I worked out a VI, which includes these following steps:

  1. converting the RGB image to a grayscaled image
  2. threshholding the grayscaled image to get a binary image
  3. reading out the values of the binary image (--> 2D array, which includes "0" and "1" values)

now I want to search for and count all "1" values in the 2D array. This is what I need for my project.

please help me. thx

 

0 Kudos
Message 5 of 6
(4,089 Views)

@0123 wrote:

please help me. thx


I will be glad to help you if you actually look at what I say. I suggested a solution and asked that if it doesn't help you post your code.

So if there is something wrong with that solution, post your code and tell us what's wrong with the solution.


___________________
Try to take over the world!
0 Kudos
Message 6 of 6
(4,082 Views)