Skip to content

Commit

Permalink
correction, now found the place where to put subsampling
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanPreibisch committed Sep 24, 2024
1 parent 0907b7a commit 744e331
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit 744e331

Please sign in to comment.