# How to iterate over each Superpixel?

**URL:** <https://discourse.itk.org/t/how-to-iterate-over-each-superpixel/2279>\
**Category:** Algorithms\
**Tags:** simpleitk, python\
**Created:** [September 29, 2019, 9:24pm UTC](https://discourse.itk.org/t/how-to-iterate-over-each-superpixel/2279 "2019-09-29T21:24:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jigabytes](https://discourse.itk.org/user_avatar/discourse.itk.org/jigabytes/32/967_2.png) [@Jigabytes](https://discourse.itk.org/u/Jigabytes)\
**Post date:** [September 29, 2019, 9:24pm UTC](https://discourse.itk.org/t/how-to-iterate-over-each-superpixel/2279/1 "2019-09-29T21:24:36Z")

</div>

Hi, I used ITK’s SLIC algo on 3D image and now for each slice I want to iterate over each segment(super pixels) in each 2D slice and extract intensity values for them. Does anyone guide what would be best possible way to do it?
