# CannyEdgeDetector method SetThreshold method is removed.

The itkCannyEdgeDetector no longer has a SetThreshold methods (deprecated in ITK 2.2)

There is now SetUpperThreshold and SetLowerThreshold. To get the old behavior, replace SetThreshold with SetUpperthreshold, and add SetLowerThreshold(GetUpperThreshold()*0.5).
typedef itk::Image<float, 3> InputImage; itk::CannyEdgeDetectionImageFilter<InputImage, InputImage>::Pointer filter = itk::CannyEdgeDetectionImageFilter<InputImage, InputImage>::New(); filter->SetThreshold(30);
typedef itk::Image<float, 3> InputImage; itk::CannyEdgeDetectionImageFilter<InputImage, InputImage>::Pointer filter = itk::CannyEdgeDetectionImageFilter<InputImage, InputImage>::New(); filter->SetUpperThreshold(30); filter->SetLowerThreshold(filter->GetUpperThreshold() / 2);
df54d1bb59eb9e3b832c614f3c931b704d8da4d0
itkCannyEdgDetectionImageFilter.h itkCannyEdgDetectionImageFilter.txx