边缘梯度算子
typedef itk::SobelEdgeDetectionImageFilter <RealImageType, RealImageType>SobelEdgeDetectionImageFilterType;
CastToRealFilterType::Pointer toReal2 = CastToRealFilterType::New();
SobelEdgeDetectionImageFilterType::Pointer sobelFilter2 = SobelEdgeDetectionImageFilterType::New();
RescaleFilterType::Pointer rescale2 = RescaleFilterType::New();
toReal2->SetInput( erodeFilter->GetOutput() );
sobelFilter2->SetInput( toReal2->GetOutput() );
rescale2->SetInput( sobelFilter2->GetOutput() );