Form descriptor
I have an image that is a binary mask, I want to characterize the outlines of the black zones in the mask, I discovered several functions for detecting borders between both zones, but only as a new image, but what I want is a description of that border, not new image. Is there any functionality in the Java view at the start or another library that can be applied to a mask to get a geometric representation of the black areas? The view can be either shape vectorization, polygonal approximation, chained code ... All I've found is a theoretical solution to the problem.
You can use histogram based descriptors like SIFT, SURF, etc. OpenCV has implemented a couple of extended level descriptors. If your descriptors require you to be affine covariant (scale and rotation invariant), I highly recommend you try SIFT. The local binary pattern is also an effective choice.
a source to share