Advertisement
Guest User

Untitled

a guest
Apr 5th, 2023
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.49 KB | None | 0 0
  1. echo "this will delete all tif files in subfolders\npress enter to continue"
  2. read upscale
  3.  
  4. #iterate over folders
  5. for dir in ./*/
  6. do
  7.  
  8. cd $dir
  9.  
  10. echo $dir
  11.  
  12. #align images, the "2>/dev/null" part discards warnings
  13. #call it twice since shell is case sensitive
  14. align_image_stack -a OUT *.jpg 2>/dev/null
  15. align_image_stack -a OUT *.JPG 2>/dev/null
  16.  
  17. #find median, write to base folder
  18. convert *.tif -evaluate-sequence median ../${dir%*/}.jpg
  19.  
  20. #delete temporary files
  21. rm *.tif
  22.  
  23. cd ..
  24.  
  25. done
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement