Nightpanda / nonogram

Produces the japanese nonogram image brain puzzle from pixel data. Pixel data is a given image, represented whether a pixel is existent 1 or non existent. Pixel data is an array of array depicting the picture.
Eclipse Public License 1.0
0 stars 0 forks source link

Add a way of importing a picture to use for the nonogram #2

Closed Nightpanda closed 6 years ago

Nightpanda commented 6 years ago

DoD for the feature.

  1. You can call nonogram and give it a path to a picture file as an argument
  2. The picture is either converted to black/white or it must be as such when given.
  3. The picture is converted into a pixel-vector that the nonogram creator can use. Meaning a vector containing 0 for white pixel and 1 for black pixel for the entirety of the picture, however large.
  4. The nonogram succesfully creates a puzzle from this data.
Nightpanda commented 6 years ago

Master now has imagez which allows the use of images. Now it uses it to create a random image. But it can also load an image. So all we need to do now is get an argument from commandline as the path and it should work. But we should also be allowed to give a number to create a random image of that size.