Calc the Seconds moments of area of huge number of countours
Hello! Finally I was able to properly fit he mesh with the layer. For this image (7158x16392 8MB)
I need to calculate the percentage of blacks and browns per triangle, and also the seconds moments of area per triangle. I'm facing some problems. The mesh layer should always be the master. For instance, If I have a triangle with all black, it should return 100% empty and without second moments.
So, I'm facing some problems to find out the proper bit-wise function, which allows me to make the mesh being the "master", and then I don't know how to iterate over a such huge amount of contours and make the calcs. I think the second moments which are native supported by opencv are the seconds moments of inertia, not the second moments of area..
@marcoE again! please don't upload such a big files. you can give a link to image.
@sturkmen , what is big ? :)
8mb is "too big".