Skip to content

Commit

Permalink
Merge pull request #21 from petebankhead/planes
Browse files Browse the repository at this point in the history
Fix z-stack bug
  • Loading branch information
petebankhead authored Oct 28, 2022
2 parents e5530d2 + 33f2fb4 commit 8204a8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ext.moduleName = 'qupath.extension.stardist'

description = 'QuPath extension to use StarDist'

version = "0.3.1"
version = "0.3.2"

dependencies {
def qupathVersion = "0.3.0" // For now
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/qupath/ext/stardist/StarDist2D.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
*/
public class StarDist2D implements AutoCloseable {

private final static Logger logger = LoggerFactory.getLogger(StarDist2D.class);
private static final Logger logger = LoggerFactory.getLogger(StarDist2D.class);

private static int defaultTileSize = 1024;

Expand Down Expand Up @@ -737,7 +737,7 @@ private void detectObjectsImpl(ImageData<BufferedImage> imageData, Collection<?
* @param fireUpdate if true, a hierarchy update will be fired on completion
*/
private void detectObjectsImpl(ImageData<BufferedImage> imageData, PathObject parent, boolean fireUpdate) {
Objects.nonNull(parent);
Objects.requireNonNull(parent);
// Lock early, so the user doesn't make modifications
boolean wasLocked = parent.isLocked();
parent.setLocked(true);
Expand Down Expand Up @@ -1083,7 +1083,7 @@ private List<PotentialNucleus> detectObjectsForTile(ImageDataOp op, DnnModel<?>
int y1 = (int)Math.max(0, Math.round(request.getY() - downsample * pad));
int x2 = (int)Math.min(server.getWidth(), Math.round(request.getMaxX() + downsample * pad));
int y2 = (int)Math.min(server.getHeight(), Math.round(request.getMaxY() + downsample * pad));
requestPadded = RegionRequest.createInstance(server.getPath(), downsample, x1, y1, x2-x1, y2-y1);
requestPadded = RegionRequest.createInstance(server.getPath(), downsample, x1, y1, x2-x1, y2-y1, request.getZ(), request.getT());
}

// // Hack to visualize the tiles that are computed (for debugging)
Expand Down

0 comments on commit 8204a8c

Please sign in to comment.