You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a design pattern contains a sharp corner that is not on the boundary, the minimum length scale should be zero or the size of one pixel.
However, as we know, our algorithm for estimating minimum length scales often gives results that are much larger than the size of one pixel. This issue can be partially resolved through the Harris corner detector. In the function cornerHarris in OpenCV, let us set the arguments as blockSize = 3, ksize = 3, and k=0.04. The maxima of cornerHarris for a series of wedges are as follows.
Resolution = 100:
Resolution = 10:
The relation between the maximum and the angle is as follows. If the threshold is 1e-11, above which indicates a sharp corner, more than half of the cases here would be correctly indicated.
The maxima of cornerHarris for a series of rounded squares are as follows.
Resolution = 100:
Resolution = 10:
The relation between the maximum and the angle is as follows. If the threshold is 1e-11, above which indicates a sharp corner, most of the cases here would be correctly indicated.
In summary, given the arguments blockSize = 3, ksize = 3, and k=0.04, when the function cornerHarris is applied to a binary design pattern and its maximum is higher than the threshold 1e-11, at least one sharp corners probably exists and the corresponding minimum length scale should be zero or the size of one pixel (which is more proper?). We could add this function to our code and maybe let users decide whether to invoke it.
The text was updated successfully, but these errors were encountered:
If a design pattern contains a sharp corner that is not on the boundary, the minimum length scale should be zero or the size of one pixel.
However, as we know, our algorithm for estimating minimum length scales often gives results that are much larger than the size of one pixel. This issue can be partially resolved through the Harris corner detector. In the function
cornerHarris
in OpenCV, let us set the arguments asblockSize = 3
,ksize = 3
, andk=0.04
. The maxima ofcornerHarris
for a series of wedges are as follows.Resolution = 100:
Resolution = 10:
The relation between the maximum and the angle is as follows. If the threshold is
1e-11
, above which indicates a sharp corner, more than half of the cases here would be correctly indicated.The maxima of
cornerHarris
for a series of rounded squares are as follows.Resolution = 100:
Resolution = 10:
The relation between the maximum and the angle is as follows. If the threshold is
1e-11
, above which indicates a sharp corner, most of the cases here would be correctly indicated.In summary, given the arguments
blockSize = 3
,ksize = 3
, andk=0.04
, when the functioncornerHarris
is applied to a binary design pattern and its maximum is higher than the threshold1e-11
, at least one sharp corners probably exists and the corresponding minimum length scale should be zero or the size of one pixel (which is more proper?). We could add this function to our code and maybe let users decide whether to invoke it.The text was updated successfully, but these errors were encountered: