Skip to content
Snippets Groups Projects
Commit 3e498857 authored by OTB Bot's avatar OTB Bot
Browse files

STYLE

parent d767379c
No related branches found
No related tags found
No related merge requests found
......@@ -31,10 +31,10 @@ int CompareImages::Describe(ApplicationDescriptor* descriptor)
{
descriptor->SetName("CompareImages");
descriptor->SetDescription("Estimator between 2 images");
descriptor->AddOption("InputReference","The reference image","inR", 1, true,ApplicationDescriptor::InputImage);
descriptor->AddOption("InputMeasured","The measured image","inM", 1, true,ApplicationDescriptor::InputImage);
descriptor->AddOption("NumBandRefImage","The channel number to compare in the reference image (between 1 and number of channels)","chR", 1, false,ApplicationDescriptor::Integer);
descriptor->AddOption("NumBandMeasuredImage","The channel number to compare in the measured image (between 1 and number of channels)","chM", 1, false,ApplicationDescriptor::Integer);
descriptor->AddOption("InputReference","The reference image","inR", 1, true, ApplicationDescriptor::InputImage);
descriptor->AddOption("InputMeasured","The measured image","inM", 1, true, ApplicationDescriptor::InputImage);
descriptor->AddOption("NumBandRefImage","The channel number to compare in the reference image (between 1 and number of channels)","chR", 1, false, ApplicationDescriptor::Integer);
descriptor->AddOption("NumBandMeasuredImage","The channel number to compare in the measured image (between 1 and number of channels)","chM", 1, false, ApplicationDescriptor::Integer);
descriptor->AddOption("StartX", "first point in x-axis ", "x0", 1, false, ApplicationDescriptor::Real);
descriptor->AddOption("StartY", "first point in y-axis ", "y0", 1, false, ApplicationDescriptor::Real);
descriptor->AddOption("SizeX", "size in x-axis ", "Nx", 1, false, ApplicationDescriptor::Integer);
......@@ -63,12 +63,12 @@ int CompareImages::Execute(otb::ApplicationOptionsResult* parseResult)
unsigned int layer1 = 1;
unsigned int layer2 = 1;
if (parseResult->IsOptionPresent("NumBandRefImage"))
if (parseResult->IsOptionPresent("NumBandRefImage"))
{
layer1 = parseResult->GetParameterUInt("NumBandRefImage");
}
if (parseResult->IsOptionPresent("NumBandMeasuredImage"))
if (parseResult->IsOptionPresent("NumBandMeasuredImage"))
{
layer2 = parseResult->GetParameterUInt("NumBandMeasuredImage");
}
......@@ -81,12 +81,12 @@ int CompareImages::Execute(otb::ApplicationOptionsResult* parseResult)
extractROIMonoFilter2->SetInput(reader2->GetOutput());
extractROIMonoFilter2->SetChannel( layer2 );
if (parseResult->IsOptionPresent("StartX"))
if (parseResult->IsOptionPresent("StartX"))
{
extractROIMonoFilter1->SetStartX(parseResult->GetParameterULong("StartX"));
extractROIMonoFilter2->SetStartX(parseResult->GetParameterULong("StartX"));
}
if (parseResult->IsOptionPresent("StartY"))
if (parseResult->IsOptionPresent("StartY"))
{
extractROIMonoFilter1->SetStartY(parseResult->GetParameterULong("StartY"));
extractROIMonoFilter2->SetStartY(parseResult->GetParameterULong("StartY"));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment