Peter554 / StainTools

Tools for tissue image stain normalisation and augmentation in Python 3
MIT License
321 stars 107 forks source link

bad_array_new_length via vahadane/macenko on very large image #41

Open dchen71 opened 4 years ago

dchen71 commented 4 years ago

I am running on anaconda py35 and getting this error with a large slide image.

terminate called after throwing an instance of 'std::bad_array_new_length' what(): std::bad_array_new_length Aborted (core dumped)

Reference Shape (39060, 17973, 3)

Target Shape (73838, 27392, 3)

This is an image that is bigger than openable via cv2 so I do load it in via skimage which returns the same type of array object that cv2 does so I don't know if it's unexpected behavior because this image is large.

Via reinhard, I just get memory issues on a 240gb of ram vm.