Skip to content

Commit

Permalink
DOC: Remove outdated migration information
Browse files Browse the repository at this point in the history
The information was outdated, and could
simply document the trivial behavior of
the functions.
  • Loading branch information
hjmjohnson committed Aug 26, 2022
1 parent 05e9b3a commit e904828
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,19 +179,13 @@ class ITK_TEMPLATE_EXPORT CannyEdgeDetectionImageFilter : public ImageToImageFil
}
}

/** \brief Set the Threshold value for detected edges.
*
* TODO: Document in the ITKv4 migration guide that
* the SetThreshold member function was removed from
* the CannyEdgeDetectionImageFilter, and that both
* UpperThreshold and LowerThreshold need to be set.
* To get the same results as with the SetThreshold method
* change "myfilter->SetThrehsold" to "myfilter->SetUpperThreshold",
* and add "myfilter->SetLowerThreshold(GetUpperThreshold()/2.0)"
/** \brief Set the upper threshold value for detected edges.
*/
itkSetMacro(UpperThreshold, OutputImagePixelType);
itkGetConstMacro(UpperThreshold, OutputImagePixelType);

/** \brief Set the lower threshold value for detected edges.
*/
itkSetMacro(LowerThreshold, OutputImagePixelType);
itkGetConstMacro(LowerThreshold, OutputImagePixelType);

Expand Down

0 comments on commit e904828

Please sign in to comment.