Skip to content

[BUG] Anisotropy is ignored in CLI, creates an error in the GUI #1191

@RpfR2000

Description

@RpfR2000

If I enter a value >1 for the anisotropy flag in the CLI (for a zstack), cellpose still analyzes the image as if the zstack were isotropic (no resizing is done). When using the GUI, the analysis seems to treat the stack correctly and make it isotropic prior to segmentation, but then I get an opencv error related to resizing at the mask creation step. This is using v4.0.3. This is the error message:

2025-05-20 08:41:31,452 [WARNING] Resizing is depricated in v4.0.1+ 2025-05-20 08:41:32,596 [INFO] masks created in 5.33s GUI_INFO: resizing flows to original image size ERROR: OpenCV(4.11.0) D:\a\opencv-python\opencv-python\opencv\modules\imgproc\src\resize.cpp:3845: error: (-215:Assertion failed) !dsize.empty() in function 'cv::hal::resize'

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions