Re: ValueError: operands could not be broadcast together with shapes

2017-08-06 Thread Peter Otten
py", line 27, in mse > err = np.sum((imageA.astype("float") - imageB.astype("float")) ** 2) > ValueError: operands could not be broadcast together with shapes (7,29,3) > (7,37,3) These are probably images represented as numpy arrays. To calculate the pixelwise differen

ValueError: operands could not be broadcast together with shapes

2017-08-06 Thread Ho Yeung Lee
ers\\hello\\Documents\\words\\"+ yy) mserr = mse(original, later) Traceback (most recent call last): File "words29.py", line 135, in mserr = mse(original, later) File "words29.py", line 27, in mse err = np.sum((imageA.astype("float") - imageB.astype(&qu