Wrote some readme and added some feedback functionality. DepthMapNeedle now tells you, when exports are finished and so on.
This commit is contained in:
parent
77a2f0b6e7
commit
94993a907f
4 changed files with 35 additions and 12 deletions
|
@ -10,7 +10,8 @@ public class DepthMapNeedle
|
|||
for(int i=1; i<args.length; i++)
|
||||
{
|
||||
JPEG image = new JPEG(args[i]);
|
||||
image.exportDepthMap();
|
||||
if(image.exportDepthMap()) System.out.println("Depthmap extracted for file " + args[i]+".");
|
||||
else System.err.println("There is no Depthmap in file "+args[i]);
|
||||
}
|
||||
}
|
||||
else if(args.length >=2 && args[0].equals("-s"))
|
||||
|
@ -18,7 +19,8 @@ public class DepthMapNeedle
|
|||
for(int i=1; i<args.length; i++)
|
||||
{
|
||||
JPEG image = new JPEG(args[i]);
|
||||
image.exportSourceImage();
|
||||
if(image.exportSourceImage()) System.out.println("Unblurred source image extracted for file "+args[i]+".");
|
||||
else System.err.println("There is no unblurred source image in file "+args[i]+". Maybe this photo has not been taken with the blur function?");
|
||||
}
|
||||
}
|
||||
else if(args.length >= 3 && args[0].equals("-i"))
|
||||
|
@ -27,7 +29,8 @@ public class DepthMapNeedle
|
|||
for(int i=2; i<args.length; i++)
|
||||
{
|
||||
JPEG image = new JPEG(args[i]);
|
||||
image.injectDepthMap(depthmap);
|
||||
if(image.injectDepthMap(depthmap)) System.out.println("Depthmap injected into file "+args[i]+".");
|
||||
else System.err.println("Something went wrong while injecting "+depthmap+" into "+args[i]+".\nRemember: The first argument has to be a png and the following arguments must be jpgs shot with the blur function.");
|
||||
image.save();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue