[Insight-users] Missing some initializations for ShapeKeepNObjectsLabelMapFilter.
Denis Shamonin
dshamoni at gmail.com
Fri Sep 10 09:04:51 EDT 2010
Hi all,
The ShapeKeepNObjectsLabelMapFilter class missing number of
AccessorType's initializations in GenerateData()
But they are defined in itkShapeKeepNObjectsLabelMapFilter.h
Here is the missing list:
Centroid
Region
BinaryPrincipalMoments
BinaryPrincipalAxes
EquivalentEllipsoidSize
You have to add this type of initializations for GenerateData() switch(...)
case LabelObjectType::CENTROID:
{
typedef typename Functor::CentroidLabelObjectAccessor<
LabelObjectType > AccessorType;
AccessorType accessor;
this->TemplatedGenerateData( accessor );
break;
}
...
BTW: please add extra line to itkShapeLabelObject.h
static std::string GetNameFromAttribute( const AttributeType & a )
{
switch( a )
{
...
case CENTROID:
return "Centroid";
break; // <---------------------------------- THIS LINE, not a
bug, just style.
...
}
Please fix it, Thanks.
-Denis
More information about the Insight-users
mailing list