Skip to content
Snippets Groups Projects
Commit ed90bd5f authored by Antoine Regimbeau's avatar Antoine Regimbeau
Browse files

REFAC: minor modification following Gitlab thread

parent ab11c7e1
No related branches found
No related tags found
1 merge request!12Complex image integration
......@@ -105,13 +105,13 @@ protected:
void PrintSelf(std::ostream& os, itk::Indent indent) const override;
void GenerateOutputInformation(void) override
{
{
Superclass::GenerateOutputInformation();
unsigned int sizeIn = this->GetInput()->GetNumberOfComponentsPerPixel();
this->GetFunctor().SetInputComponents( sizeIn );
this->GetOutput()->SetNumberOfComponentsPerPixel(
this->GetFunctor().GetOutputSize () );
}
}
private:
ClampImageFilter(const Self&) = delete ;
......
......@@ -61,9 +61,12 @@ void
ClampImageFilter<TInputImage, TOutputImage>
::SetUpper(OutputPixelValueType val)
{
m_Upper = val;
this->GetFunctor().SetHighest( m_Upper );
this->Modified();
if ( m_Upper != val )
{
m_Upper = val;
this->GetFunctor().SetHighest( m_Upper );
this->Modified();
}
}
/**
......
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