Commit 36dd35bf authored by Manuel Grizonnet's avatar Manuel Grizonnet

ENH: avoid use of SetInput[1-10] from VariadicInputsImageFilter in polar...

ENH: avoid use of SetInput[1-10] from VariadicInputsImageFilter in polar filters, replace with SetInput<0>
parent 4390ea1c
......@@ -190,7 +190,7 @@ private:
m_MeanFilter->GetFilter()->SetRadius(radius);
m_MeanFilter->SetInput(m_SRFilter->GetOutput());
m_HAFilter->SetInput1(m_MeanFilter->GetOutput());
m_HAFilter->SetVariadicInput<0>(m_MeanFilter->GetOutput());
SetParameterOutputImage("out", m_HAFilter->GetOutput());
break;
......@@ -209,7 +209,7 @@ private:
m_MeanFilter->GetFilter()->SetRadius(radius);
m_MeanFilter->SetInput(m_SRFilter->GetOutput());
m_BarnesFilter->SetInput1(m_MeanFilter->GetOutput());
m_BarnesFilter->SetVariadicInput<0>(m_MeanFilter->GetOutput());
SetParameterOutputImage("out", m_BarnesFilter->GetOutput());
break;
......@@ -228,7 +228,7 @@ private:
m_MeanFilter->GetFilter()->SetRadius(radius);
m_MeanFilter->SetInput(m_SRFilter->GetOutput());
m_HuynenFilter->SetInput1(m_MeanFilter->GetOutput());
m_HuynenFilter->SetVariadicInput<0>(m_MeanFilter->GetOutput());
SetParameterOutputImage("out", m_HuynenFilter->GetOutput());
break;
......@@ -245,7 +245,7 @@ private:
m_ImageList->PushBack(GetParameterComplexDoubleImage("invv"));
m_Concatener->SetInput(m_ImageList);
m_PauliFilter->SetInput1(m_Concatener->GetOutput());
m_PauliFilter->SetVariadicInput<0>(m_Concatener->GetOutput());
SetParameterOutputImage("out", m_PauliFilter->GetOutput() );
......
......@@ -454,7 +454,7 @@ private:
case 4: // ReciprocalCovarianceToCoherencyDegreeImageFilter
m_RCCDFilter = RCCDFilterType::New();
m_RCCDFilter->SetInput1(GetParameterComplexDoubleVectorImage("inc"));
m_RCCDFilter->SetVariadicInput<0>(GetParameterComplexDoubleVectorImage("inc"));
SetParameterOutputImage("outc", m_RCCDFilter->GetOutput()); // input: 6 complex channels | 3 complex channels
......@@ -464,7 +464,7 @@ private:
case 5: // ReciprocalCovarianceToReciprocalCoherencyImageFilter
m_RCRCFilter = RCRCFilterType::New();
m_RCRCFilter->SetInput1(GetParameterComplexDoubleVectorImage("inc"));
m_RCRCFilter->SetVariadicInput<0>(GetParameterComplexDoubleVectorImage("inc"));
SetParameterOutputImage("outc", m_RCRCFilter->GetOutput()); // input: 6 complex channels | 6 complex channels
......@@ -474,7 +474,7 @@ private:
case 6: // ReciprocalLinearCovarianceToReciprocalCircularCovarianceImageFilter
m_RLCRCCFilter = RLCRCCFilterType::New();
m_RLCRCCFilter->SetInput1(GetParameterComplexDoubleVectorImage("inc"));
m_RLCRCCFilter->SetVariadicInput<0>(GetParameterComplexDoubleVectorImage("inc"));
SetParameterOutputImage("outc", m_RLCRCCFilter->GetOutput()); // input: 6 complex channels | output : 6 complex channels
......@@ -485,7 +485,7 @@ private:
m_MRCFilter = MRCFilterType::New();
m_MRCFilter->SetInput1(GetParameterDoubleVectorImage("inf"));
m_MRCFilter->SetVariadicInput<0>(GetParameterDoubleVectorImage("inf"));
SetParameterOutputImage("outc", m_MRCFilter->GetOutput()); // input: 16 real channels | output : 6 complex channels
......@@ -556,7 +556,7 @@ private:
case 12: // MuellerToPolarisationDegreeAndPowerImageFilter
m_MPDPFilter = MPDPFilterType::New();
m_MPDPFilter->SetInput1(GetParameterDoubleVectorImage("inf"));
m_MPDPFilter->SetVariadicInput<0>(GetParameterDoubleVectorImage("inf"));
SetParameterOutputImage("outf", m_MPDPFilter->GetOutput()); // input: 16 real channels | output : 4 real channels
......
......@@ -48,7 +48,7 @@ int otbMuellerToPolarisationDegreeAndPowerImageFilter(int itkNotUsed(argc), char
reader->SetFileName(inputFilename);
FilterType::Pointer filter = FilterType::New();
filter->SetInput1(reader->GetOutput());
filter->SetVariadicInput<0>(reader->GetOutput());
writer->SetFileName(outputFilename);
writer->SetInput(filter->GetOutput());
......
......@@ -49,7 +49,7 @@ int otbMuellerToReciprocalCovarianceImageFilter(int itkNotUsed(argc), char * arg
reader->SetFileName(inputFilename );
FilterType::Pointer filter = FilterType::New();
filter->SetInput1(reader->GetOutput());
filter->SetVariadicInput<0>(reader->GetOutput());
writer->SetFileName(outputFilename);
writer->SetInput(filter->GetOutput());
......
......@@ -87,7 +87,7 @@ int otbReciprocalBarnesDecompImageFilter(int itkNotUsed(argc), char * argv[])
perBand->SetInput(sinclairtocov->GetOutput());
barnesfilter->SetInput1(perBand->GetOutput());
barnesfilter->SetVariadicInput<0>(perBand->GetOutput());
writer->SetFileName(outputFilename);
writer->SetInput(barnesfilter->GetOutput());
......
......@@ -53,7 +53,7 @@ int otbReciprocalCoherencyToReciprocalMuellerImageFilter(int itkNotUsed(argc), c
reader->SetFileName(inputFilename);
FilterType::Pointer filter = FilterType::New();
filter->SetInput1(reader->GetOutput());
filter->SetVariadicInput<0>(reader->GetOutput());
writer->SetFileName(outputFilename);
writer->SetInput(filter->GetOutput());
......
......@@ -49,7 +49,7 @@ int otbReciprocalCovarianceToCoherencyDegreeImageFilter(int itkNotUsed(argc), ch
reader->SetFileName(inputFilename);
FilterType::Pointer filter = FilterType::New();
filter->SetInput1(reader->GetOutput());
filter->SetVariadicInput<0>(reader->GetOutput());
writer->SetFileName(outputFilename);
writer->SetInput(filter->GetOutput());
......
......@@ -47,7 +47,7 @@ int otbReciprocalCovarianceToReciprocalCoherencyImageFilter(int itkNotUsed(argc)
reader->SetFileName(inputFilename);
FilterType::Pointer filter = FilterType::New();
filter->SetInput1(reader->GetOutput());
filter->SetVariadicInput<0>(reader->GetOutput());
writer->SetFileName(outputFilename);
writer->SetInput(filter->GetOutput());
......
......@@ -88,7 +88,7 @@ int otbReciprocalHAlphaImageFilter(int itkNotUsed(argc), char * argv[])
perBand->SetInput(sinclairtocov->GetOutput());
haafilter->SetInput1(perBand->GetOutput());
haafilter->SetVariadicInput<0>(perBand->GetOutput());
writer->SetFileName(outputFilename);
writer->SetInput(haafilter->GetOutput());
......
......@@ -85,7 +85,7 @@ int otbReciprocalHuynenDecompImageFilter(int itkNotUsed(argc), char * argv[])
perBand->SetInput(sinclairtocov->GetOutput());
huynenfilter->SetInput1(perBand->GetOutput());
huynenfilter->SetVariadicInput<0>(perBand->GetOutput());
writer->SetFileName(outputFilename);
writer->SetInput(huynenfilter->GetOutput());
......
......@@ -49,7 +49,7 @@ int otbReciprocalLinearCovarianceToReciprocalCircularCovarianceImageFilter(int i
reader->SetFileName(inputFilename);
FilterType::Pointer filter = FilterType::New();
filter->SetInput1(reader->GetOutput());
filter->SetVariadicInput<0>(reader->GetOutput());
writer->SetFileName(outputFilename);
writer->SetInput(filter->GetOutput());
......
......@@ -69,7 +69,7 @@ int otbReciprocalPauliDecompImageFilter(int itkNotUsed(argc), char * argv[])
nriToOneCfilter->SetInput(1,readerHV->GetOutput());
nriToOneCfilter->SetInput(2,readerVV->GetOutput());
paulifilter->SetInput1(nriToOneCfilter->GetOutput());
paulifilter->SetVariadicInput<0>(nriToOneCfilter->GetOutput());
writer->SetFileName(outputFilename);
writer->SetInput(paulifilter->GetOutput());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment