我正在尝试在HE去卷积中使用skimage.color separate_stains。
i_hdx = separate_stains(ihc, conv_matrix)
返回错误ValueError: total size of new array must be unchanged
skimage.color(0.10.0)的版本,np.reshape
的问题或单独的问题是否存在问题?
编辑:图像的大小似乎在获取错误中起作用,这使我相信它可能是一个numpy问题。
File "/usr/local/lib/python2.7/site-packages/skimage/color/colorconv.py", line 1131, in separate_stains
stains = np.dot(np.reshape(-np.log(rgb), (-1, 3)), conv_matrix)
File "/usr/local/lib/python2.7/site-packages/numpy/core/fromnumeric.py", line 221, in reshape
return reshape(newshape, order=order)