Some of us MATLAB dorks are tryingdecided to try and figure out how to automatically format a picture to upload to the knitting tool. Thanks toAfter abalpha gave us a hint from balpha I, we realized that much of what we were doing was able to improve upon my resultspointless. It turns out that you can upload any picture as long as it is a given size: 442 pixels high by 1190 pixels wide. The knitting tool will do all of the resampling and color quantizing for you.
Here'sRegardless, I threw together what I fed to my functionhad been working on and put it up on GitHub for anyone interested. knitwit
can pretty closely recreate the results of the knitting tool, with a couple extra options. Given an image like this:
Here's what it spit outIt will automatically resize, pad, and recolor the image, adding the knit pattern:
And here's what the tool shows after uploadingBut you can also turn on a background filling option to get rid of all that white:
Cheaty? Perhaps. Had to try itWorks on myself!me too:
And a small gift to balpha for the hinthere's balpha:
Hmmm... I wonder what someone could do with a utility that can quickly and easily generate a whole bunch of knitted images...
You've been knit-rolled!
If only sweaters could be animated.