BIOP / qupath-extension-cellpose

an extension that wraps a Cellpose environment such that WSI can be analyzed using Cellpose through QuPath.
Apache License 2.0
63 stars 11 forks source link

can not export upscaled image #39

Closed romainGuiet closed 5 months ago

romainGuiet commented 7 months ago

With the script :

def pixelSize = 0.09
def cellpose = Cellpose2D.builder( "None" )
                .pixelSize(pixelSize)
                .channels( "Channel-4" )    
                .build()

it works but if pixelSize = 0.045 (or smaller, 0.04 ... ) get the error :

WARN: Unable to write image
ERROR: Unable to write XXX  No compatible writer found.
ERROR: Troubleshooting:
 - Check that the channel names are correct in the builder.

Surprisingly , with pixelSize = 0.05, the image is exported but with a pixel size of 0.09 !

lacan commented 7 months ago

the downsampling is taken as an int, this is why there is an issue.

QuPath actually allows a double for the downsample so it is possible, I will add a check for this to allow fractions.

lacan commented 5 months ago

Fixed in latest release