以下是引发错误的行:
cv2.calcHist([patch],[0], fmasks[count], [num_hist_bins], [0,256])
补丁是nxm numpy数组 mask是nxm numpy数组(大小相同) num_hist_bins = 8 两个数组都在uint8的dtype中
这是错误:
OpenCV/opencv-2.4.10/modules/core/src/matrix.cpp:236: error: (-215) step[dims-1] == (size_t)CV_ELEM_SIZE(flags) in function create
即使我尝试了所有dtype和数据形状变化结果与此错误相同。对解决方案的任何建议?