Hi,
I need to do image threshold as follows:
-array ex. 6 x 6
- scan the array with 3 x 3 subarrays
- find the sums of all 9 pixels of each 3 x 3 subarray. If the sums are greater than the threshold, make all pixels of the 6 x 6 array under the 3 x 3 subarrays equal to 1, if not make them 0.
Example threshold = 253, the programs makes 1 all 9 elements that correspond to the sum 283 (immediately above the threshold). So it does not make 1 the elements that also correspond to 318 and 339. How to display all elements 1 when the sum lies between the threshold and the maximum of the slide?
Please, see the attached vi.
Thank you in advance.