Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Image Puzzle
#1
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.
Reply


Messages In This Thread
Image Puzzle - by Digitalchemist - May-29-2017, 08:38 PM
RE: Image Puzzle - by micseydel - May-29-2017, 11:24 PM
RE: Image Puzzle - by Digitalchemist - May-31-2017, 12:01 AM
RE: Image Puzzle - by micseydel - May-31-2017, 04:00 PM
RE: Image Puzzle - by nilamo - May-31-2017, 07:12 PM
RE: Image Puzzle - by Digitalchemist - Jun-05-2017, 07:48 PM
RE: Image Puzzle - by micseydel - Jun-05-2017, 07:56 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  8 puzzle game aliyark145 4 10,767 May-30-2020, 05:54 PM
Last Post: Alkis
  A sign-Reversal Puzzle HY2000 2 2,509 Dec-05-2019, 11:55 AM
Last Post: HY2000
  Cross word puzzle solve using python constraint library aliyark145 1 3,320 Nov-29-2018, 10:53 AM
Last Post: Larz60+
  Simple Eight-Puzzle not working! BenjaminDJ 2 3,216 May-04-2018, 12:17 PM
Last Post: BenjaminDJ
  Magic Square Puzzle Harnick 1 4,919 Aug-09-2017, 04:51 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020