You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, xfuse convert visium works perfectly on colour images, but fails when using a black and white image. I get the same error as mentioned in #17:
WARNING : UserWarning (/home//.local/lib/python3.8/site-packages/xfuse/utility/mask.py:74): Failed to mask tissue
OpenCV(4.6.0) /io/opencv/modules/imgproc/src/grabcut.cpp:557: error: (-5:Bad argument) image must have CV_8UC3 type in function 'grabCut'
I am not confident with OpenCV, it would be much appreciated if you could help out here!
Best,
Simon
The text was updated successfully, but these errors were encountered:
Sorry for my late reply. I would guess your image is probably single channel but opencv expects it to have three channels. The easiest way to fix this would be to convert your image to RGB. This can for example be done using imagemagick: convert -colorspace RGB input.jpg output.jpg. RGB is redundant for grayscale images, though, so we should think about fixing this in the code if this is a common use case.
Hi, xfuse convert visium works perfectly on colour images, but fails when using a black and white image. I get the same error as mentioned in #17:
I am not confident with OpenCV, it would be much appreciated if you could help out here!
Best,
Simon
The text was updated successfully, but these errors were encountered: