Commented a lot
This commit is contained in:
parent
94993a907f
commit
d7ccf6883c
6 changed files with 470 additions and 53 deletions
|
@ -2,9 +2,16 @@
|
|||
|
||||
public class DepthMapNeedle
|
||||
{
|
||||
/**
|
||||
* Interprete the arguments and execute the programm
|
||||
* @param args
|
||||
*/
|
||||
public static void main(String[] args)
|
||||
{
|
||||
//No arguments given or '-h' as first argument -> show help text
|
||||
if(args.length==0 || args[0].equals("-h")) help();
|
||||
|
||||
//export depthmap
|
||||
if(args.length >= 2 && args[0].equals("-e"))
|
||||
{
|
||||
for(int i=1; i<args.length; i++)
|
||||
|
@ -14,6 +21,8 @@ public class DepthMapNeedle
|
|||
else System.err.println("There is no Depthmap in file "+args[i]);
|
||||
}
|
||||
}
|
||||
|
||||
//export source image
|
||||
else if(args.length >=2 && args[0].equals("-s"))
|
||||
{
|
||||
for(int i=1; i<args.length; i++)
|
||||
|
@ -23,6 +32,8 @@ public class DepthMapNeedle
|
|||
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?");
|
||||
}
|
||||
}
|
||||
|
||||
//inject depthmap
|
||||
else if(args.length >= 3 && args[0].equals("-i"))
|
||||
{
|
||||
String depthmap = args[1];
|
||||
|
@ -36,6 +47,9 @@ public class DepthMapNeedle
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Show help text
|
||||
*/
|
||||
public static void help()
|
||||
{
|
||||
System.out.println("Welcome to DepthMapNeedle!"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue