Slashdot Mirror


Software to Divide an Image Into Discrete Patterns

slashyslashy asks: "My preschooler son is fond of color-by-number pages. We have already exhausted most of the online sites that offer somewhat limited sets of coloring pages that he can print to a paper and color. Besides, most of them offer extremely basic (read boring) sets of simple images (flowers, dinosaurs, etc). We were wondering if we can take any regular picture image and convert it into a pattern suitable (divide up the black and white picture into series of random patterns) for color-by-number pages. Is there any good software that allows converting a picture to a pattern suitable for coloring by numbers? Linux is preferable but Windows is also fine. Thank you."

17 of 109 comments (clear)

  1. Jesus H Christ by Monkelectric · · Score: 5, Insightful

    Just goto the 99 cent store and get him some books. Not everything needs to involve a computer

    --

    Religion is a gateway psychosis. -- Dave Foley

    1. Re:Jesus H Christ by bcat24 · · Score: 4, Interesting

      This is Slashdot, a geek site. Of course the submitter could just go to the store and buy some books, but where's the fun in that? Maybe just wants to see if it's possible to do it himself.

  2. Could you at least spell-check the title? by ptbarnett · · Score: 4, Informative

    It's discrete, not discreet.

    1. Re:Could you at least spell-check the title? by mad.frog · · Score: 3, Insightful

      To the bonehead moderators who marked the parent "offtopic" and "troll" --

      what the fuck is wrong with you?

      Offtopic, maybe a little, but geez, it's a grade-school level grammar mistake in the headline, for fuck's sake. The editors deserve to be slapped around for it; they should know better.

      And if you think that proper spelling and grammar are optional, well, I just feel sorry for you.

    2. Re:Could you at least spell-check the title? by arb · · Score: 4, Funny

      If only Slashdot had editors - they could proof-read the submissions and fix errors like this.

  3. Possible approach... by Sam+Nitzberg · · Score: 3, Interesting

    This could be wrong, and it could be like trying to kill an ant with a sledgehammer, but here's a possible approach.
    A program like photoshop with lug-ins and image processing / manipulation capabilities may do the job.

    Scan an image, and using a combination of options such as color-reduction, "mattisify" (or others, e.g. Bas-Relief, etc), etc... may produce an acceptable result.

    Good luck

    Sam

  4. Quick by labratuk · · Score: 5, Informative

    Open inkscape. Drag image in. Select imported image. Go Path -> Trace bitmap. You'll probably want to use the 'multiple scanning' options. Probably with fewer than the default 8 scans. Select created vectors. Open the fill & stroke dialog and set it to 'no fill' and a plain black stroke.

    As always, you'll want to play with parameters to get good results.

    --
    Malike Bamiyi wanted my assistance.
  5. Saving Money by WindozeSux · · Score: 3, Insightful

    If you want to save money and have a picture of anything you want, you could draw one for him or encourage him to be creative to make his own. I always liked being creative when I was younger(and I still do).

    --
    Fallout 3 will suck.
  6. Google it by quaker5567 · · Score: 5, Informative

    Search Google for "color by numbers software" http://www.stoik.com/hobby/Color_By_Number/ Is it really that hard?

    1. Re:Google it by pixelfood · · Score: 3, Informative

      I downloaded the free trial of this product, and the company was either brave or stupid to offer a free trial.

  7. Two Options... by WhyCause · · Score: 4, Informative

    First, The Gimp makes something like this pretty easy. Open an image and go to 'Image -> Mode -> Indexed...', select the Generate Optimized Palette, and select the number of colors you want to use (10 might last your son 5 minutes, 200 might last him four years). Turn dithering off and hit OK. Next, go to 'Image -> Mode -> RGB' to switch it back to RGB color, then go to 'Filters -> Artistic -> Cartoon...', tweak the settings (Mask radius=10 and Percent black=1.0 seem to work), and hit OK. With these two, I was able to get a 'completed-looking' color-by-numbers image from a photo in about 10 seconds. The rest is up to you (I would start by selecting by color, getting the black outlines, and copying them into a new layer. Add in numbers and a legend, and you're good to go). If you want to get fancy, you could use some python-jitsu and whip up some script-fu to do it automagically.

    Second, you can keep it hardcore and use a program like NIH Image (or its PC counterpart, ScionImage) and use a procedeure called thresholding to get different levels of black and white from an image. The program is scriptable, and if you google around enough (or poke through the sample scripts) you might be able to hack something together pretty easily. I've used this software to track points glued onto soft tissues (ligaments), and if I recall correctly, it was fairly easy to get it to do this sort of thing (i.e., Biomedical Engineering undergrads were able to get it to work). N.B. This is a serious research-level program, so it is not super user-friendly. I also doubt you'll find anything in the help forums if you search for color-by-number. Search instead for thresholding.

    The first option is likely to be waaay easier than the second.

  8. Photoshop! by Peganthyrus · · Score: 5, Informative

    It's called Photoshop.

    1. image->adjustments->posterize
    2. filter->stylize->find edges
    3. image->adjustments->desaturate
    4. image->adjustments->levels, pull the leftmost triangle all the way to the right

    You can skip the first step, but then it'll be reeeeally complex.

    You might also want to scale your images up a lot before processing them.

    Or you could use autotrace tools like Streamline, or the "LiveTrace" feature built into Illustrator.

    Or you could pop up another layer over it and trace the image by hand, then turn off the original image layer and print it out.

    Or, yeah, you could just go buy some coloring books, they're reeeeeeally cheap!

    --
    egypt urnash minimal art.
  9. pimpin' aint easy by weierstrass · · Score: 3, Informative

    >It's easy to write but no one has done it.

    It's actually, both mathematically and computationally, a very difficult problem.
    Image Segmentation
    I'm sure if you know how to do it, and write a nice paper, those folks will be very interested though..

    A tip: most things that are obvious problems that 'no one has done' are actually quite difficult if you think about them for more then 10 seconds.

    --
    my password really is 'stinkypants'
  10. Re:Since when are Dinosaurs boring by keithmo · · Score: 3, Funny
    When I was a kid, Dinosaurs were really cool.

    When I was a kid, they still roamed the Earth.

  11. Re:Since when are Dinosaurs boring by eam · · Score: 5, Funny

    > Since when are Dinosaurs boring?

    Jurassic Park III

  12. Potrace plus some stuff by toothfish · · Score: 3, Funny

    Peter Selinger's Potrace could probably be a good start. He links to a dude who uses Potrace in conjunction with a few other tools to create stained glass. He also links to one of my projects, although he calls it pocopo instead of pacopo. I don't think that pacopo is what you're looking for although it may give you some ideas.

    cheers
    p

  13. Re:How discreet do you need them? by Apro+im · · Score: 3, Insightful

    I almost went into grammar nazi mode to correct your use of "it's" in lieu of "its". However, re-parsing the sentence, I prefer to interpret it as "I'd still recommend the comic, for it's intelligent humour," because it's a construction that needs to be used more often. So, feel duly admonished for leaving out the comma.