I’ve looked in a lot of places to try and figure out an answer to the issue I am having but no luck. So in a brief summary I need to have 1000 contour points, I use draw contour on binary images of leaves to generate the contours, if there is < 1000 contours then I essentially generate new points as an average of the surrounding points until I reach 1000 points. I have successfully generated the new points but when I try and drawContours using the new array of points I generate, it appears sparse and far worse than the original image. I was hoping someone could help me figure out what about what I am doing could be causing issues, my preliminary hypothesis is that drawContours doesn’t display points if they are a duplicate which would lead to sparsity in my resulting drawContours image. Here are images of my images:
(above; after generating new points)
I can provide any code or explanation if anyone asks, appreciate it!
p.s. can only upload the sparse image for now since I am a new user