diff --git a/DepthMapNeedle.jar b/DepthMapNeedle.jar index 581e4ef..e85e0d7 100644 Binary files a/DepthMapNeedle.jar and b/DepthMapNeedle.jar differ diff --git a/README.md b/README.md index 918ba8e..bfd2c9f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,10 @@ # DepthMapNeedle DepthMapNeedle is a java tool to inject or extract depth information in form of depthmaps from photos shot using Google Cameras Blur function. +This is a command line tool. Simply extract depth information as a png file by typing 'java -jar DepthMapNeedle -e .jpg'. The depthmap will be stored in the same location as the image as '_d.png'. +In the same way you can extract the unblurred source image by replacing the '-e' with '-s'. +But the best part is, that you can modify the extracted depthmap in the image manipulation program of your choice and then replace the old depthmap in the image. +This can be handy in case the original depthmap has some imperfections. Simply extract the depthmap, manipulate it and inject the fixed depthmap back into the image. +Now all you have to do is rerender the image in the google camera. + +Enjoy ;) +Vanitas diff --git a/src/DepthMapNeedle.java b/src/DepthMapNeedle.java index b37ed4c..df5d294 100644 --- a/src/DepthMapNeedle.java +++ b/src/DepthMapNeedle.java @@ -10,7 +10,8 @@ public class DepthMapNeedle for(int i=1; i=2 && args[0].equals("-s")) @@ -18,7 +19,8 @@ public class DepthMapNeedle for(int i=1; i= 3 && args[0].equals("-i")) @@ -27,7 +29,8 @@ public class DepthMapNeedle for(int i=2; i