Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try doing a resize down and then up again. The up direction should be INTER_NEAREST. This forces everything into a coarser grid. Then you threshold to remove grid cells that only barely had anything in them, and there you are. A downsampled grid. Apply your normal chain code generation to that, and all is well.