diff --git a/src/kintsugi3d/builder/resources/ibr/IBRResourcesImageSpace.java b/src/kintsugi3d/builder/resources/ibr/IBRResourcesImageSpace.java index ec242d70..8e45e5f9 100644 --- a/src/kintsugi3d/builder/resources/ibr/IBRResourcesImageSpace.java +++ b/src/kintsugi3d/builder/resources/ibr/IBRResourcesImageSpace.java @@ -681,7 +681,7 @@ private static BufferedImage getDecodedImage(ViewSet viewSet, int i) throws IOEx { // Read the image (and do ICC processing, if applicable) on a worker thread File fullResImageFile = viewSet.findFullResImageFile(i); - log.info("Undistorting {}", fullResImageFile); + log.info("Decoding {}", fullResImageFile); return ImageIO.read(fullResImageFile); // TODO ICC transformation? } @@ -864,9 +864,9 @@ public > void executeRequest(ContextTyp // Do the undistortion on the rendering thread Rendering.runLater(new GraphicsRequest() { - @Override - public > void executeRequest(ContextType context) - { + @Override + public > void executeRequest(ContextType context) + { for (int i = 0; i < viewSet.getCameraPoseCount(); i++) { loadingMonitor.setProgress(i); @@ -887,7 +887,9 @@ public > void executeRequest(ContextTyp if (viewSet.getCameraProjection(projectionIndex) instanceof DistortionProjection) { BufferedImage decodedImage = getDecodedImage(viewSet, i); + log.info("Undistorting image {}", i); BufferedImage imageOut = undistortImage(decodedImage, viewSet, projectionIndex, context); + log.info("Saving image {}", i); ImageIO.write(imageOut, "PNG", viewSet.getPreviewImageFile(i)); logFinished(viewSet.getPreviewImageFile(i)); } @@ -907,7 +909,7 @@ public > void executeRequest(ContextTyp } } } - } + } }); log.info("Waiting for undistortion to finish on rendering thread");