public class DepthMapNeedle { public static void main(String[] args) { if(args.length==0 || args[0].equals("-h")) help(); if(args.length >= 2 && args[0].equals("-e")) { for(int i=1; i=2 && args[0].equals("-s")) { for(int i=1; i= 3 && args[0].equals("-i")) { String depthmap = args[1]; for(int i=2; i.jpg ... .jpg':" + "\n Extract the depthmap from the specified photo(s). The depthmaps will be stored with the suffix \"_d.png\"." + "\n'-s .jpg ... .jpg':" + "\n Extract the unblurred source image from the photo(s). These files will be stored with the suffix \"_s.jpg\"." + "\n'-i .png .jpg .jpg':" + "\n Inject a png file as Depthmap into the following specified jpg files." + "\n'-h':" + "\n Show this help text."); } }