Skip to content

Commit

Permalink
Added a couple log messages for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelt919 committed May 16, 2024
1 parent 0b3723e commit c7c4763
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/kintsugi3d/builder/resources/ibr/IBRResourcesImageSpace.java
Original file line number Diff line number Diff line change
Expand Up @@ -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?
}
Expand Down Expand Up @@ -864,9 +864,9 @@ public <ContextType extends Context<ContextType>> void executeRequest(ContextTyp
// Do the undistortion on the rendering thread
Rendering.runLater(new GraphicsRequest()
{
@Override
public <ContextType extends Context<ContextType>> void executeRequest(ContextType context)
{
@Override
public <ContextType extends Context<ContextType>> void executeRequest(ContextType context)
{
for (int i = 0; i < viewSet.getCameraPoseCount(); i++)
{
loadingMonitor.setProgress(i);
Expand All @@ -887,7 +887,9 @@ public <ContextType extends Context<ContextType>> 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));
}
Expand All @@ -907,7 +909,7 @@ public <ContextType extends Context<ContextType>> void executeRequest(ContextTyp
}
}
}
}
}
});

log.info("Waiting for undistortion to finish on rendering thread");
Expand Down

0 comments on commit c7c4763

Please sign in to comment.