Oh sorry there is my copy mistake. Because I use a lot of filters.I pick out some of the code for the sake of simplicity.
It is indeed openingFilter->SetInput(filter->GetOutput())
in my code;
every single filter does not work except OtsuThresholdImageFilter . I have tried to apply many Morphological operation ,opening closing,Dilate… But the image hasn’t been changed.
also i have changed structuringElement.SetRadius(15);
biger or smaller it does not help neither.
What’s special is that my data is a dicom series, so I think something should be changed, but I’m not sure where.