# How to use Image Iterators in right way

**URL:** https://discourse.itk.org/t/how-to-use-image-iterators-in-right-way/3171
**Category:** Beginner Questions
**Created:** [June 12, 2020, 12:41am UTC](https://discourse.itk.org/t/how-to-use-image-iterators-in-right-way/3171 "2020-06-12T00:41:08Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![Amnesie](https://discourse.itk.org/user_avatar/discourse.itk.org/amnesie/32/1341_2.png) [@Amnesie](https://discourse.itk.org/u/Amnesie)
#### Post date: [June 12, 2020, 8:32pm UTC](https://discourse.itk.org/t/how-to-use-image-iterators-in-right-way/3171/6 "2020-06-12T20:32:34Z")

</div>

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.

---

_[View the full topic](https://discourse.itk.org/t/how-to-use-image-iterators-in-right-way/3171)._
