generate_all.sh 1.3 KB

123456789101112131415161718192021222324
  1. for noise in {"cauchy","gaussian","laplace","log_normal","mut_white","white"}; do
  2. for identical in {"0","1"}; do
  3. if [ ${identical} == "1" ]; then
  4. python noise_computation.py --noise ${noise} --image images/calibration.png --n 1000 --identical ${identical} --output ${noise}.png --all 1 &
  5. else
  6. python noise_computation.py --noise ${noise} --image images/calibration.png --n 1000 --identical ${identical} --output ${noise}_color.png --all 1 &
  7. fi
  8. done
  9. done
  10. # specifig for salt and pepper noise
  11. for identical in {"0","1"}; do
  12. if [ ${identical} == "1" ]; then
  13. python noise_computation.py --noise salt_pepper --image images/calibration.png --n 1000 --identical ${identical} --output salt_pepper_B.png --all 1 --p 0.1 &
  14. python noise_computation.py --noise salt_pepper --image images/calibration.png --n 1000 --identical ${identical} --output salt_pepper_A.png --all 1 --p 0.01 &
  15. else
  16. python noise_computation.py --noise salt_pepper --image images/calibration.png --n 1000 --identical ${identical} --output salt_pepper_A_color.png --all 1 --p 0.01 &
  17. python noise_computation.py --noise salt_pepper --image images/calibration.png --n 1000 --identical ${identical} --output salt_pepper_B_color.png --all 1 --p 0.1 &
  18. fi
  19. done