[Insight-users] some small bugs

Christoph Palm christoph.palm at web.de
Tue Aug 1 09:39:49 EDT 2006


Hi all,

I found some small bugs, which should be fixed for the next release.
Here they are:

###################################

in itkThresholdSegmentationLevelsetFilter.h (pp. 109-119)

-> a cast is missing. Should be:

  /** Get/Set the threshold values that will be used to calculate the
speed function. */
  void SetUpperThreshold(ValueType v)
  {
    this->m_ThresholdFunction->SetUpperThreshold(static_cast<typename
FeatureImageType::ValueType>(v));
    this->Modified();
  }
  void SetLowerThreshold(ValueType v)
  {
    this->m_ThresholdFunction->SetLowerThreshold(static_cast<typename
FeatureImageType::ValueType>(v));
    this->Modified();
  }

########################################

in itkLaplacianOperator.txx (p. 70)

-> a cast is missing. Should be:

*data = static_cast<PixelType>(*it);

########################################

I hope, the casts are included correctly.

Sincerely,

Christoph



More information about the Insight-users mailing list