bigdataviewer / bigdataviewer-playground

BSD 2-Clause "Simplified" License
19 stars 5 forks source link

bug in `isPositionWithinSourceInterval` #252

Closed tischi closed 2 years ago

tischi commented 2 years ago
    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 );

NicoKiaru commented 2 years ago

Damned! Good catch