Open U4ay07 opened 2 years ago
In the Adjacent Pixel Auto-Correlation for Arnold Cat it is giving an error telling that color is not defined in getImageMatrix_gray() function. The error was like this: NameError Traceback (most recent call last) in () 1 image = "HorizonZero" 2 ext = ".png" ----> 3 ImageMatrix,image_size = getImageMatrix_gray(image+ext) 4 samples_x = [] 5 samples_y = []
in getImageMatrix_gray(imageName) 9 row.append((pix[width,height])) 10 image_matrix.append(row) ---> 11 return image_matrix, image_size[0], image_size[1],color
NameError: name 'color' is not defined
While I did do some changes in getImageMatrix_gray() function it was still showing some other error.
same issue happen in my side how can we solve this one do u know then reply me asap.
This solves the issue (I reckon it's a year late but only working with this today xD) @kalpitpatel4999 @U4ay07
Basicly discard the returns that are not used and delete the _gray part...
In the Adjacent Pixel Auto-Correlation for Arnold Cat it is giving an error telling that color is not defined in getImageMatrix_gray() function. The error was like this: NameError Traceback (most recent call last) in ()
1 image = "HorizonZero"
2 ext = ".png"
----> 3 ImageMatrix,image_size = getImageMatrix_gray(image+ext)
4 samples_x = []
5 samples_y = []
NameError: name 'color' is not defined
While I did do some changes in getImageMatrix_gray() function it was still showing some other error.