From 744e3316357d153acff4620821c92c5de1c47665 Mon Sep 17 00:00:00 2001 From: Stephan Preibisch Date: Tue, 24 Sep 2024 10:53:34 -0400 Subject: [PATCH] correction, now found the place where to put subsampling --- .../org/janelia/alignment/mapper/SingleChannelMapper.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/render-app/src/main/java/org/janelia/alignment/mapper/SingleChannelMapper.java b/render-app/src/main/java/org/janelia/alignment/mapper/SingleChannelMapper.java index 3e78c9463..2499dd9c3 100644 --- a/render-app/src/main/java/org/janelia/alignment/mapper/SingleChannelMapper.java +++ b/render-app/src/main/java/org/janelia/alignment/mapper/SingleChannelMapper.java @@ -56,7 +56,6 @@ public void map(final double sourceX, final int roundedSourceX = (int) (sourceX + 0.5f); final int roundedSourceY = (int) (sourceY + 0.5f); target.ip.set(targetX, targetY, normalizedSource.ip.get(roundedSourceX, roundedSourceY)); - // TODO: subsampling needs to go here } @Override @@ -66,6 +65,12 @@ public void mapInterpolated(final double sourceX, final int targetY) { target.ip.set(targetX, targetY, normalizedSource.ip.getPixelInterpolated(sourceX, sourceY)); + + //target: ij.process.ByteProcessor + //normalizedSource: ij.process.ByteProcessor + //System.out.println( "target: " + target.ip.getClass().getName() ); + //System.out.println( "normalizedSource: " + normalizedSource.ip.getClass().getName() ); + // TODO: subsampling needs to go here } public static ImageProcessorWithMasks normalizeSourceForTarget(final ImageProcessorWithMasks source,