Hi,

It looks like errors when reprojecting the output vector data.

The input image is in sensor geometry ?

Have you tried to set an DEM (elev parameter) ?

Regards,
Guillaume

On 09/19/2016 11:09 AM, André Stumpf wrote:
Hello,

I'm currently working on some simple Python wrappers around some OTB modules and got some strange results when trying to use
the connected components application to vectorize a binary image.

Using...

subprocess.call([otbpath + "/otbcli_ConnectedComponentSegmentation",
 
"-in", inputimage,
 
"-expr", "distance<1",
 
"-minsize", str(minsize),
 
"-out", output_shapefile])

... I get the attached results with strong artefacts at what seems to be the borders between individually process strips. Furthermore, the application also
seems to have the undocumented feature to abstract the polygons.

As an alternative I tried to use otbcli_Segmentation which provides the expected result (see attached as well) but unfortunately takes > 6h on a 
10000x10000 image.

subprocess.call([otbpath + "/otbcli_Segmentation",  "-in", inputimage,  "-filter", "cc",  "-filter.cc.expr", "distance<1",  "-mode", "vector",  "-mode.vector.minsize", str(minsize),  "-mode.vector.out", output_shapefile,  "-mode.vector.tilesize", str(4096)])
Since such type of vectorization seems like a common task I wonder if anybody came across such issues before and has solved it? Many thanks in advance for any advice, André
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
 
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

--
Guillaume PASERO
Responsable technique
Business Unit E-SPACE & Geo Information - Département Image & Applications

CS Systèmes d'Information
Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
31506 Toulouse Cedex 05 - FRANCE
+33 561 17 64 21 - [email protected]

--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
 
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to