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."
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
It's discrete, not discreet.
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
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.
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.
Search Google for "color by numbers software" http://www.stoik.com/hobby/Color_By_Number/ Is it really that hard?
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.
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.
>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'
When I was a kid, they still roamed the Earth.
> Since when are Dinosaurs boring?
Jurassic Park III
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
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.