otb::ImageToEdgePathFilter does not work properly
Mantis Issue 94, reported by echristophe, assigned to jmichel, created: 2009-02-26
The vectorization algorithm used in otb::ImageToEdgePathFilter (and subsequently used in otb::PersistentVectorizationImageFilter and all applications) does not work properly.
It can return polygons with one vertex only: polygon 35 nPoints=1 surface=0 length=0 region size=[18446744073709551565, 18446744073709551440] region nb pixel=8976 [51, 176] -
"Flat" polygons: polygon 36 nPoints=4 surface=0 length=8 region size=[0, 2] region nb pixel=0 [57, 176.5] - [57, 178.5] - [57, 176.5] - [57, 178.5] -
And all extracted regions are biaised towards the upper-left corner of the image.
Vectorization algorithm needs to be reviewed and may work with coordinates between pixels when extracting polygons.
Test PolygonsVectorization is added in Testing/FA (http://hg.orfeo-toolbox.org/OTB/rev/b858c70e029d).
1243317171 - christopTest: FA-0000094-fe-PolygonsVectorization is desactivated until somebody is working on it (long term issue).
1329319127 - C ValladeauTest still failing. I've activated it to be sure it will be handle...
What do we expect from this filter? Should we remove single point? Should we remove lines?
1429260056 - julienWe now have a vectorization filter based on gdal_polygonize API.