Skip to content
Snippets Groups Projects
Commit 02ec0742 authored by Guillaume Pasero's avatar Guillaume Pasero
Browse files

STYLE: remove noisy print, fix indentation

parent 89228f26
No related branches found
No related tags found
No related merge requests found
......@@ -52,18 +52,17 @@ TwoNRIBandsImageToNComplexBandsImage<TInputImage, TOutputImage>
::GenerateOutputInformation(void)
{
Superclass::GenerateOutputInformation();
unsigned int nbCompo = this->GetInput()->GetNumberOfComponentsPerPixel();
if ( (nbCompo % 2) != 0 )
{
itkExceptionMacro("Number of bands of the input images must be an even number");
}
{
itkExceptionMacro("Number of bands of the input images must be an even number");
}
else
this->GetOutput()->SetNumberOfComponentsPerPixel(nbCompo/2);
std::cout << "GenerateOutputInformation : " << this->GetOutput()->GetNumberOfComponentsPerPixel() << std::endl;
{
this->GetOutput()->SetNumberOfComponentsPerPixel(nbCompo/2);
}
}
/**
......@@ -75,10 +74,10 @@ TwoNRIBandsImageToNComplexBandsImage<TInputImage, TOutputImage>
::BeforeThreadedGenerateData(void)
{
unsigned int nbCompo = this->GetInput()->GetNumberOfComponentsPerPixel();
if ( (nbCompo % 2) != 0 )
itkExceptionMacro("Number of bands of the input images must be an even number");
}
/**
......
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