Hi, On Fri, May 2, 2014 at 8:51 AM, Bruno Belarte <[email protected]>wrote:
> Hi everyone, > > I have a piece of code that behaves differently with differents > segmentations. The problematic piece of code can be found here: > http://pastebin.com/Gfa9TdPb > > Segmentation 1: LabelImage generated with the large scale meanshift > framework from a Pleiades image (pan-ms fusion) > Segmentation 2 and 3: two LabelImage generated with the > otbcli_Rasterization application from two different shapefiles > > Is it possible for you to provide your data to test?. shapefiles would be fine. > With segmentation 1 everything works fine: the LabelMap and the > corresponding polygons are computed and can be used further in the code. > With segmentation 2 and 3 the code failed at line 19 with the following > error: > > /home/belarte/OTB/src/OTB/Utilities/ITK/Modules/Core/Common/src/itkMultiThreader.cxx:359: > itk::ERROR: MultiThreader(0x1cdcf90): Exception occurred during > SingleMethodExecute > /home/belarte/OTB/src/OTB/Code/OBIA/otbLabelObjectToPolygonFunctor.txx:559: > itk::ERROR: LabelObjectToPolygonFunctor(0x7fff1701bc00): End point not > with +/-1 line from line > > The program crashes while computing the polygons from the LabelImage. My > guess was that some of the polygons in the shapefile were problematic, so I > tried to simplify the polygons with the ogr2ogr application with different > *simplify* parameters (0.001 0.01 0.1 0.5 and 0.75) and then use the > rasterization application but it did not change the result. I also try to > use the otbcli_LSMSSmallRegionsMerging with different mininmum region sizes > (10 15 20 100 and 1000) after the rasterization, but again no changes. > > Does someone have an idea of what could be the problem here? > > Thanks for your help, > > Bruno > > -- > -- > 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. > -- Regards, Rashad -- -- 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.
