当我尝试绘制时,我得到了错误 AttributeError: 'AxesSubplot' object has no attribute 'ravel' 下面是代码,附件是一个截图。import SimpleITK as sitkimport numpy as np
from skimage.filters import threshold_otsu#THRESHOLDOT
这需要我输出一个灰度图像,以便使用OpenCV识别对象。method"Otsu_Threshold = threshold_otsu(Img_Original)
BW_Original= Img_Original < Otsu_Threshold # must set object region as 1, backgro
_subplots.AxesSubplot object at 0x0000000018D47EB8>, <matplotlib.axes._subplots.AxesSubplot object at 0x000000001C1EADD8>,
<matplotlib.axes.plot.savefig(os.path.