Segmentation and stack files

Hello,

I am trying to perform segmentation in a stack which contains sentinel 1 and sentinel2 data, but the image type is not accepted by any module in Orefeo toolbox. What is the required data formats to apply segmentation?

Thanks
Shaimaa

All SNAP modules work best if you stick to the BEAM DIMAP format. This includes the tools from the external OTB adapter.

Hello,

Thank you for your reply.

I got this message

java.io.FileNotFoundException: Missing tile temporary files: row index: 11, column index: 14, iteration: 1. The nodes file ‘_node_7168_5632.bin’ is missing. The edges file ‘_edge_7168_5632.bin’ is missing. The node margins file ‘_nodeMargin_7168_5632.bin’ is missing. The edge margins file ‘_edgeMargin_7168_5632.bin’ is missing.
at org.esa.s2tbx.grm.segmentation.tiles.AbstractTileSegmenter.checkTemporaryTileFiles(AbstractTileSegmenter.java:124)
at org.esa.s2tbx.grm.segmentation.tiles.CheckTemporaryTileFilesParallelComputing.runTile(CheckTemporaryTileFilesParallelComputing.java:35)
at org.esa.snap.utils.AbstractImageTilesParallelComputing.runTile(AbstractImageTilesParallelComputing.java:40)
at org.esa.snap.utils.AbstractMatrixCellsParallelComputing.execute(AbstractMatrixCellsParallelComputing.java:59)
at org.esa.snap.utils.AbstractParallelComputing.executeInParallel(AbstractParallelComputing.java:27)
at org.esa.s2tbx.grm.segmentation.tiles.AbstractTileSegmenter.runSecondPartialSegmentationInParallel(AbstractTileSegmenter.java:187)
at org.esa.s2tbx.grm.segmentation.tiles.AbstractTileSegmenter.runSecondSegmentationsInParallel(AbstractTileSegmenter.java:159)
at org.esa.s2tbx.grm.segmentation.tiles.AbstractTileSegmenter.runSecondSegmentationsAndMergeGraphs(AbstractTileSegmenter.java:234)
at org.esa.s2tbx.grm.GenericRegionMergingOp.afterProcessedLastTile(GenericRegionMergingOp.java:265)
at org.esa.s2tbx.grm.GenericRegionMergingOp.computeTile(GenericRegionMergingOp.java:204)
Caused: org.esa.snap.core.gpf.OperatorException: Missing tile temporary files: row index: 11, column index: 14, iteration: 1. The nodes file ‘_node_7168_5632.bin’ is missing. The edges file ‘_edge_7168_5632.bin’ is missing. The node margins file ‘_nodeMargin_7168_5632.bin’ is missing. The edge margins file ‘_edgeMargin_7168_5632.bin’ is missing.
at org.esa.s2tbx.grm.GenericRegionMergingOp.computeTile(GenericRegionMergingOp.java:206)
at org.esa.snap.core.gpf.internal.OperatorImage.computeRect(OperatorImage.java:82)
at javax.media.jai.SourcelessOpImage.computeTile(Unknown Source)
Caused: org.esa.snap.core.gpf.OperatorException: Missing tile temporary files: row index: 11, column index: 14, iteration: 1. The nodes file ‘_node_7168_5632.bin’ is missing. The edges file ‘_edge_7168_5632.bin’ is missing. The node margins file ‘_nodeMargin_7168_5632.bin’ is missing. The edge margins file ‘_edgeMargin_7168_5632.bin’ is missing.
at org.esa.snap.core.gpf.internal.OperatorExecutor$GPFImagingListener.errorOccurred(OperatorExecutor.java:381)
at com.sun.media.jai.util.SunTileScheduler.sendExceptionToListener(Unknown Source)
at com.sun.media.jai.util.SunTileScheduler.scheduleTile(Unknown Source)
at javax.media.jai.OpImage.getTile(Unknown Source)
at com.sun.media.jai.util.RequestJob.compute(Unknown Source)
[catch] at com.sun.media.jai.util.WorkerThread.run(Unknown Source)

would it make sense to load the imgs of the stack into the Orfeo Tooblox (Monteverdi) and conduct the segmentation there? Also SAGA GIS has nice object-based tools.