Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

BUG: fix signed spacing issue #8

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/otbAggregate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
6 changes: 3 additions & 3 deletions app/otbAggregate.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
10 changes: 1 addition & 9 deletions app/otbObjectsRadiometricStatistics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -51,14 +50,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);
Expand Down
6 changes: 3 additions & 3 deletions app/otbObjectsRadiometricStatistics.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down