MantisBT - ITK
View Issue Details
0008624ITKpublic2009-02-26 10:182010-10-26 15:05
Andinet 
kentwilliams 
normalminoralways
closedopen 
 
 
backlog
0008624: Warning when itkHessianRecursiveGaussianImageFilter is instantiated with 2D image
Instantiating itkHessianRecursiveGaussianImageFilter using a 2D image
will produce the following warning

/.../Insight/Code/BasicFilters/itkHessianRecursiveGaussianImageFilter.txx:38: warning: comparison of unsigned expression < 0 is always false

This is due to

for( unsigned int i = 0; i<NumberOfSmoothingFilters; i++ )
    {
    GaussianFilterPointer filter = GaussianFilterType::New();
    filter->SetOrder( GaussianFilterType::ZeroOrder );
    filter->SetNormalizeAcrossScale( m_NormalizeAcrossScale );
    filter->ReleaseDataFlagOn();
    m_SmoothingFilters.push_back( filter );
    }

NumberOfSmoothingFilters = 2 - 2 = 0
I added code to instantiate the 2D version of the filter, and then ran a compile with
 
-Wall -W -Wshadow -Wunused-variable -Wunused-parameter -Wunused-function -Wunused -Wno-system-headers -Wwrite-strings -Wno-deprecated -Woverloaded-virtual

and I didn't see any warnings for this filter.
No tags attached.
Issue History
2009-02-26 10:18AndinetNew Issue
2010-06-16 19:10Ivan MaciaStatusnew => assigned
2010-06-16 19:10Ivan MaciaAssigned To => Ivan Macia
2010-10-21 14:23Hans JohnsonAssigned ToIvan Macia => kentwilliams
2010-10-21 14:23Hans JohnsonNote Added: 0022647
2010-10-26 15:05kentwilliamsSprint Status => backlog
2010-10-26 15:05kentwilliamsAdditional Information Updated
2010-10-26 15:05kentwilliamsStatusassigned => closed

Notes
(0022647)
Hans Johnson   
2010-10-21 14:23   
We believe it is fixed, but it deserves verification.