diff --git a/Code/OBIA/otbStreamingVectorizedSegmentationOGR.h b/Code/OBIA/otbStreamingVectorizedSegmentationOGR.h index f1ee5aa86b40884b23f0e94874e84d2046a4548a..d2870c2e7a31a90a88393bd43216706ccb0d2763 100644 --- a/Code/OBIA/otbStreamingVectorizedSegmentationOGR.h +++ b/Code/OBIA/otbStreamingVectorizedSegmentationOGR.h @@ -242,6 +242,8 @@ public: typedef typename PersistentStreamingLabelImageToOGRDataFilter<TImageType, TSegmentationFilter>::OGRDataSourcePointerType OGRDataSourcePointerType; + typedef typename InputImageType::SizeType SizeType; + /** Set the input image. */ void SetInput(InputImageType * input) { @@ -302,6 +304,12 @@ public: this->GetFilter()->SetLayerName(fileName); } + /** Retrieve the actual streamsize used */ + SizeType GetStreamSize() + { + return this->GetFilter()->GetStreamSize(); + } + void Initialize() { this->GetFilter()->Initialize();