From 4e6c46b239760b206d4cee379c0e90ee33abf613 Mon Sep 17 00:00:00 2001 From: Guillaume Pasero Date: Wed, 10 Jan 2018 11:10:09 +0100 Subject: [PATCH 1/3] BUG: fix signed spacing issue --- app/otbObjectsRadiometricStatistics.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/otbObjectsRadiometricStatistics.cpp b/app/otbObjectsRadiometricStatistics.cpp index 76f59d4..13019fa 100644 --- a/app/otbObjectsRadiometricStatistics.cpp +++ b/app/otbObjectsRadiometricStatistics.cpp @@ -51,14 +51,7 @@ void otb::Wrapper::ObjectsRadiometricStatistics::DoExecute() m_OGRDataSourceRendering = OGRDataSourceToMapFilterType::New(); m_OGRDataSourceRendering->AddOGRDataSource(ogrDS); - m_OGRDataSourceRendering->SetOutputSize(referenceImage->GetLargestPossibleRegion().GetSize()); - m_OGRDataSourceRendering->SetOutputOrigin(referenceImage->GetOrigin()); - - m_OGRDataSourceRendering->SetOutputSpacing(referenceImage->GetSpacing()); - - m_OGRDataSourceRendering->SetOutputProjectionRef(referenceImage->GetProjectionRef()); - - // m_OGRDataSourceRendering->SetOutputParametersFromImage(referenceImage); // A tester + m_OGRDataSourceRendering->SetOutputParametersFromImage(referenceImage); m_OGRDataSourceRendering->SetBackgroundValue(GetParameterInt("background")); m_OGRDataSourceRendering->SetBurnAttributeMode(true); From 1af962f656df15f1b9720eb3fd264e960ba11932 Mon Sep 17 00:00:00 2001 From: Antoine Regimbeau Date: Fri, 24 May 2019 08:38:08 +0200 Subject: [PATCH 2/3] Reomve SetDocName function --- app/otbAggregate.cpp | 1 - app/otbObjectsRadiometricStatistics.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/app/otbAggregate.cpp b/app/otbAggregate.cpp index 9e205c8..c2c2af2 100644 --- a/app/otbAggregate.cpp +++ b/app/otbAggregate.cpp @@ -5,7 +5,6 @@ void otb::Wrapper::Aggregate::DoInit() SetName("Aggregate"); SetDescription("This application assign a class on each object of a segmentation by majority voting on a pixel-based classification."); - SetDocName("Aggregate"); SetDocLongDescription("The aim of this application is to merge the result of a segmentation with a pixel-based image classification in order to produce an object-oriented image classification. The input segmentation is a labeled image, typically the result provided by the OTB application LSMSSegmentation. The output is a vector dataset containing objects and the corresponding class in the attribute table. Connected regions belonging to the same class are merged. This application could be used at the last step of the LSMS pipeline in replacement of the application LSMSVectorization."); SetDocLimitations("Input classification and labeled image should have identical resolution and footprint"); SetDocAuthors("Lucie Bouillot"); diff --git a/app/otbObjectsRadiometricStatistics.cpp b/app/otbObjectsRadiometricStatistics.cpp index 13019fa..bf11947 100644 --- a/app/otbObjectsRadiometricStatistics.cpp +++ b/app/otbObjectsRadiometricStatistics.cpp @@ -5,7 +5,6 @@ void otb::Wrapper::ObjectsRadiometricStatistics::DoInit() SetName("ObjectsRadiometricStatistics"); SetDescription("Compute features attributes of a vector dataset over an image."); - SetDocName("ObjectsRadiometricStatistics"); SetDocLongDescription("This application computes radiometric and shapes attributes on a vector dataset, using an image. The results are stored in the attribute table. Shape attributes are : number of pixels, flatness, roundness, elongation, perimeter. Radiometric attributes are for each band of the input image : mean, standard-deviation, median, variance, kurtosis, skewness."); SetDocLimitations("None"); SetDocAuthors("Arnaud Durand"); From 82a41b50903568ca34659ce809fa7501006c2d49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Traizet?= Date: Mon, 6 Jan 2020 16:13:16 +0100 Subject: [PATCH 3/3] WRG: add missing overrides --- app/otbAggregate.h | 6 +++--- app/otbObjectsRadiometricStatistics.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/otbAggregate.h b/app/otbAggregate.h index ddd0ea3..816ba3b 100644 --- a/app/otbAggregate.h +++ b/app/otbAggregate.h @@ -49,9 +49,9 @@ namespace otb private: - void DoInit(); - void DoUpdateParameters(); - void DoExecute(); + void DoInit() override; + void DoUpdateParameters() override; + void DoExecute() override; ChangeLabelImageFilterType::Pointer m_ChangeLabelFilter; diff --git a/app/otbObjectsRadiometricStatistics.h b/app/otbObjectsRadiometricStatistics.h index 78508ae..698b0b4 100644 --- a/app/otbObjectsRadiometricStatistics.h +++ b/app/otbObjectsRadiometricStatistics.h @@ -33,9 +33,9 @@ namespace otb itkTypeMacro(Self, otb::Application); private: - void DoInit(); - void DoUpdateParameters(); - void DoExecute(); + void DoInit() override; + void DoUpdateParameters() override; + void DoExecute() override; // Base types typedef float PixelType;