Skip to content

Commit

Permalink
Fix bug regarding resulting frames when frame reduction fractor 1 is …
Browse files Browse the repository at this point in the history
…selected
  • Loading branch information
stefanhahmann committed Oct 20, 2023
1 parent 052049d commit 0eda4f9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public void saveEllipsoidSegmentationToFile(
long[] spatialDimensions = getDimensionsOfSource();
int numTimePoints = timePoints.size();
int frames = numTimePoints / frameRateReduction;
if ( numTimePoints > frameRateReduction )
if ( numTimePoints > frameRateReduction && frameRateReduction > 1 )
frames++;
logger.debug(
"number of timepoints: {}, frame rate reduction: {}, resulting frames: {}", numTimePoints, frameRateReduction, frames );
Expand Down

0 comments on commit 0eda4f9

Please sign in to comment.