我写了这段代码来使用直方图提取特征,但是我得到了这个错误。请帮助我们将不胜感激。提前致谢 ValueError:形状太大而不能成为矩阵
#load图像数据集长度为400000
train_x=r'/home/data/Desktop/SAT-4/train_x.mat'
train_x=loadmat(train_x)
len (train_x) = 400000
使用直方图功能的#extract功能
def train_hist():
my_hist[]
for i in range(len(train_x)):
new_train_x =histogram (array(mat(train_x)))
my_hist1 = my_hist.append(new_train_x)
return my_hist1
my_hist1 = train_hist()
ValueError:形状太大而不能成为矩阵