# Help with import images from sequential folders ---batch processing using Fiji Macros

**URL:** https://discourse.itk.org/t/help-with-import-images-from-sequential-folders-batch-processing-using-fiji-macros/5077
**Category:** Algorithms
**Created:** [June 9, 2022, 7:50am UTC](https://discourse.itk.org/t/help-with-import-images-from-sequential-folders-batch-processing-using-fiji-macros/5077 "2022-06-09T07:50:32Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Duben](https://discourse.itk.org/user_avatar/discourse.itk.org/duben/32/2747_2.png) [@Duben](https://discourse.itk.org/u/Duben)
#### Post date: [June 9, 2022, 7:50am UTC](https://discourse.itk.org/t/help-with-import-images-from-sequential-folders-batch-processing-using-fiji-macros/5077/1 "2022-06-09T07:50:32Z")

</div>

Dear all,  
I am looking for help with batch processing in Fiji. I am new to programming.  
I’m doing Cyclic-immunofluorescene.I need to combine 4-channel fluorescent images of the same tissue section of 10 cycles. I use **[HyperStackReg](https://github.com/ved-sharma/HyperStackReg)** in Image J for images alignment. It works good. But I have hundreds of images for alignment. My images are saved in the folder like this:  
**D:\YRoot\Project\slide1\Spot1\cycle1**

![MicrosoftTeams-image](https://discourse.itk.org/uploads/default/original/2X/1/1bb5416373372b2da7d263005c4c70868278b472.png)

I wish I could use Fiji Marcos to run a protocol automatically.  
First, import 4 images from folder cycle1 ( in this folder, there are 4 different fluorescent images ), then convert them to a stack, then convert it to a Hyperstack.

**Could anyone give me some advices to write a Fiji Marco to import images from sequential folders?**

Thanks a lot.

Duben

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [June 9, 2022, 7:51am UTC](https://discourse.itk.org/t/help-with-import-images-from-sequential-folders-batch-processing-using-fiji-macros/5077/2 "2022-06-09T07:51:33Z")

</div>

Are you sure you didn’t intend to post this question on [Fiji forum](https://forum.image.sc/)?
