bigdataviewer/bigdataviewer-playground

bug in `isPositionWithinSourceInterval`

Closed this issue · 1 comments

	public static boolean isPositionWithinSourceInterval( SourceAndConverter< ? > source, RealPoint globalPosition, int timepoint, boolean sourceIs2d )
	{
		Source< ? > spimSource = source.getSpimSource();

		final long[] voxelPositionInSource = getVoxelPositionInSource( spimSource, globalPosition, timepoint, 0 );
		Interval sourceInterval = spimSource.getSource( 0, 0 );

the last line should be:

spimSource.getSource( timepoint, 0 );

Damned! Good catch