noah-peeters / ChimpStackr

free, multi-platform focus stacking software
GNU General Public License v3.0
74 stars 8 forks source link

Calling from command line #149

Open ThomWorm opened 9 months ago

ThomWorm commented 9 months ago

I would like to use ChimpStackr to process many stacks of images for making individual frames for a video - would it be possible to call chimpstackr from the command line in linux instead of using the GUI? It would be very valuable if I could point it to a directory of folders, each containing the sequences of images for a stack and then output the results from all stacks to a single folder. Thanks!

da-phil commented 3 months ago

This indeed would be really cool as a lot of my image folders are organized into sub-folders which contain focus stacks. Running the program on one of my photo folders recursively would be an extreme speed booster.

da-phil commented 2 months ago

After looking at previous attempts to do that, I created a PR which allows you to run run.py with CLI arguments, such as python3 run.py /some/folder/input-file*.jpg. This will create the finished stacked file /some/folder/stacked.jpg. If you prefer a tif file as output you can provide the param -f tif.

ThomWorm commented 2 months ago

Thanks phil - you rock!