Skip to content
Snippets Groups Projects
Commit bfd6850a authored by Cyrille Valladeau's avatar Cyrille Valladeau
Browse files

ENH : add input method

parent 7ba186ae
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ namespace otb
* The output image has 6 channels : the diagonal and the upper element of the reciprocal matrix.
* Element a sotored from left to right, line by line.
*
* The class is templated by the 4 input image (HH, HV, VH and VV) and the used functor.
* The class is templated by the 3 input image (HH, HV_VH and VV) and the used functor.
* Available functors are :
* \begin{itemize}
* \item SinclairToReciprocalCovarianceMatrixFunctor (default one)
......@@ -95,6 +95,8 @@ public:
void SetInputHV(const TInputImageHV_VH * image);
// This method set the second input, same as SetInputHV
void SetInputVH(const TInputImageHV_VH * image);
// This method set the second input, same as SetInputHV and SetInputHV
void SetInputHV_VH(const TInputImageHV_VH * image);
void SetInputVV(const TInputImageVV * image);
......
......@@ -57,6 +57,17 @@ SinclairReciprocalImageFilter<TInputImageHH, TInputImageHV_VH, TInputImageVV, TO
this->SetInput2(image);
}
/**
* Connect one of the operands for pixel-wise addition
*/
template <class TInputImageHH, class TInputImageHV_VH, class TInputImageVV, class TOutputImage, class TFunction>
void
SinclairReciprocalImageFilter<TInputImageHH, TInputImageHV_VH, TInputImageVV, TOutputImage, TFunction>
::SetInputHV_VH(const TInputImageHV_VH * image)
{
this->SetInput2(image);
}
/**
* Connect one of the operands for pixel-wise addition
*/
......
......@@ -76,8 +76,7 @@ int generic_SinclairReciprocalImageFilter(int argc, char * argv[])
reader3->SetFileName(inputFilename3);
filter->SetInputHH(reader1->GetOutput());
filter->SetInputHV(reader2->GetOutput());
filter->SetInputVH(reader2->GetOutput());
filter->SetInputHV_VH(reader2->GetOutput());
filter->SetInputVV(reader3->GetOutput());
typename ExtractROIType::Pointer extract = ExtractROIType::New();
......
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