LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

count numbers in table

hi 

im beginner in labview 

i Extracts  the pixels from  part of an image into a  2D array

and i want to count number between 80 and 125 but i can't understand  how 

so someone tel me how i can do this 

thx for help

 

0 Kudos
Message 1 of 7
(3,256 Views)

Maybe something like this?

 

 

 

(if you expect a large number, insert a to-I32 before taking the sum.)

Message 2 of 7
(3,245 Views)

hanks

i will try to do this

because my object is to  calculate the percentage of pixel in image like the function in NI vision builder 'count pixels) but in labview they don't have function to do this .

so i transforme the image To2D array.and count numbers between min and max and finaly calculate the percentage 

 

0 Kudos
Message 3 of 7
(3,235 Views)

The total number of elements is just the product of the two dimension sizes, so calcuating the percentage is very simple.

 

 

0 Kudos
Message 4 of 7
(3,229 Views)

thanks

i will try to do

and if you cant send me this vi because i don't know the name of all the function in your image 

I student is the first time I am working with labview 

0 Kudos
Message 5 of 7
(3,219 Views)

As a student, this is a good opportunity to learn:

 

The functions are:

  • In range and coerce
  • Boolean to (0,1)
  • To I32
  • Add array elements
  • Multiply
  • Divide
  • Array size
  • Multiply Array Elements

Use "quickdrop" and start typing these words to get each function. If you don't know what quickdrop is, do a search. 😧

Good luck!

Message 6 of 7
(3,187 Views)

thanks for your help Smiley Wink

0 Kudos
Message 7 of 7
(3,175 Views)