I am trying to get clean grid data from this image (don't mind the tilt, it is incidental).
This means no noisy dots and a uniform grid representing the situation. I am doing fairly well using morphology, doing:
closing_rectangle1 ()
opening_rectangle1 ()
select_shape ('rectangularity')
in different orders and amounts to clean up some noise.
It is not as complete and uniform as I'd like to achieve, so I'm wondering if Halcon has a better way of doing this (other than morphology or as an addition to) that I am not aware of. The rectangle-orientation and pattern in the grid can be different but the size is always the same.