May-29-2017, 08:38 PM
Hi, i am trying to solve this problem,
I have a test image (A) , this image is the scrambled form of original image (O).
The goal is to determine the number in the scrambled image.
some details are
1- orignal image has been scrambled with the Mersenne Twister with 2 as seed number.
2- flatten of numpy is used to conver the image (two-dimension) to a (one-dimension) array.
3- also function shuffle of random (we did not utilize the numpy shuffle) to shuffle a list of numbers [0, 1, 2, …, n-1] , here N is equal to pixels in the image.
4- The list shuffled is used to assign the pixels in the scrambled image like Y[i] = X[shuffled[i]] for all i in [0, 1, 2, …, n-1].
Image Url : https ://ibb.co/f0PGna
The original task is in python but due to my skills in java I am trying to solve this problem in java.
Starting from point 3 , I generated a list equal to pixels in the image and shuffled it, and while iterating the list i assign the pixels from the scrambled image, which did not delivered the req results.
Please if you can guide me, so i can solve this problem.
I have a test image (A) , this image is the scrambled form of original image (O).
The goal is to determine the number in the scrambled image.
some details are
1- orignal image has been scrambled with the Mersenne Twister with 2 as seed number.
2- flatten of numpy is used to conver the image (two-dimension) to a (one-dimension) array.
3- also function shuffle of random (we did not utilize the numpy shuffle) to shuffle a list of numbers [0, 1, 2, …, n-1] , here N is equal to pixels in the image.
4- The list shuffled is used to assign the pixels in the scrambled image like Y[i] = X[shuffled[i]] for all i in [0, 1, 2, …, n-1].
Image Url : https ://ibb.co/f0PGna
The original task is in python but due to my skills in java I am trying to solve this problem in java.
Starting from point 3 , I generated a list equal to pixels in the image and shuffled it, and while iterating the list i assign the pixels from the scrambled image, which did not delivered the req results.
Please if you can guide me, so i can solve this problem.