Skip to content

Commit

Permalink
Fix labkit launcher with ROIs that touch the border.
Browse files Browse the repository at this point in the history
Before this commit, the labkit import "did not work".
The image appeared black, the UI was super slow etc.
Because I do not know what is really going on, and because
I already have been changed these two lines, I am keeping
them in comments, to see if I need to revert this later.
  • Loading branch information
tinevez committed Nov 6, 2024
1 parent 42acf1c commit 58f8696
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,10 @@ private final DatasetInputImage makeInput( final ImagePlus imp, final boolean si
final long[] max = src.maxAsLongArray();
min[ 0 ] = roi.getBounds().x;
min[ 1 ] = roi.getBounds().y;
max[ 0 ] = roi.getBounds().x + roi.getBounds().width;
max[ 1 ] = roi.getBounds().y + roi.getBounds().height;
// max[ 0 ] = roi.getBounds().x + roi.getBounds().width - 1;
// max[ 1 ] = roi.getBounds().y + roi.getBounds().height - 1;
// max[ 0 ] = roi.getBounds().x + roi.getBounds().width;
// max[ 1 ] = roi.getBounds().y + roi.getBounds().height;
max[ 0 ] = roi.getBounds().x + roi.getBounds().width - 1;
max[ 1 ] = roi.getBounds().y + roi.getBounds().height - 1;
crop = Views.interval( src, min, max );
}
else
Expand Down

0 comments on commit 58f8696

Please sign in to comment.