Jump to content

Array threshold when sum of array elements lies between two numbers


Ala

Recommended Posts

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.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.