[Insight-developers] ITK 3.12: FREEZING TODAY ( Hessian 2D Warnings )

Luis Ibanez luis.ibanez at kitware.com
Thu Feb 26 16:39:51 EST 2009


Bill,

Good point,
This silences the warning.

The modification has been committed:
http://www.itk.org/cgi-bin/viewcvs.cgi/Code/BasicFilters/itkHessianRecursiveGaussianImageFilter.txx?root=Insight&r1=1.8&r2=1.9&sortby=date

It still doesn't really solve the underlying problem,
but it will pacify the dashboard.

After the release we will look back and consider:

    1) A template specialization for 2D
    2) Add concept checking to prevent 1D instantiations.


  Thanks


     Luis



---------------------------
Bill Lorensen wrote:
> A simple fix to the warning is to create a variable set = to
> NumberOfSmoothingFilters.
> 
> On Thu, Feb 26, 2009 at 10:19 AM, Andinet Enquobahrie
> <andinet.enqu at kitware.com> wrote:
> 
>>Bill,Luca-
>>
>>Another warning that Luis and I diagnosed this morning is the following
>>
>>http://www.cdash.org/CDash/viewBuildError.php?type=1&buildid=279996
>>
>>This particular issue is related to the following fragment code in
>>HessianRecursiveGaussianImageFilter.txx:38
>>
>>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 );
>>  }
>>
>>For 2D images,
>>
>>NumberOfSmoothingFilters = ImageDimension - 2 = 0
>>
>>This loop will never be executed and that is the reason we are getting the
>>warning.
>>
>>This issue got exposed now ince we are using 2D DSA image for testing the
>>newly added itkHessianToObjectnessMeasureImageFilterTest
>>
>>To fix these warnings, one option is to use specialized templates.
>>
>>I have entered a bug entry on this.
>>
>>http://public.kitware.com/Bug/view.php?id=8624
>>
>>-Andinet
>>


More information about the Insight-developers mailing list