Skip to content

Commit

Permalink
Fix automatic ROI position selection for RGB timelapse
Browse files Browse the repository at this point in the history
  • Loading branch information
uschmidt83 committed Apr 7, 2020
1 parent 909f60d commit 9be0364
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/csbdresden/stardist/StarDist2D.java
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public void run() {
if (!checkInputs()) return;

if (roiPosition.equals(Opt.ROI_POSITION_AUTO))
roiPositionActive = input.numDimensions() > 3 ? Opt.ROI_POSITION_HYPERSTACK : Opt.ROI_POSITION_STACK;
roiPositionActive = input.numDimensions() > 3 && !input.isRGBMerged() ? Opt.ROI_POSITION_HYPERSTACK : Opt.ROI_POSITION_STACK;
else
roiPositionActive = roiPosition;

Expand Down

0 comments on commit 9be0364

Please sign in to comment.