RachanaJayaram / Image-Encryption-Chaos-Maps

This is a project in cryptography that involves implementing image encryption using various chaos maps and comparing their merits based on key sensitivity,
MIT License
110 stars 28 forks source link

About the Adjacent Pixel Auto-Correlation #4

Open U4ay07 opened 2 years ago

U4ay07 commented 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.

kalpitpatel4999 commented 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.

ricardo2000y commented 11 months ago

image

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...