Skip to main content
added 919 characters in body
Source Link
gnostradamus
  • 32.1k
  • 10
  • 60
  • 117

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:

enter image description here

Here's what it spit outIt will automatically resize, pad, and recolor the image, adding the knit pattern:

enter image description hereenter image description here

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:

enter image description hereenter image description here

Cheaty? Perhaps. Had to try itWorks on myself!me too:

enter image description hereenter image description here

And a small gift to balpha for the hinthere's balpha:

enter image description hereenter image description here

Hmmm... I wonder what someone could do with a utility that can quickly and easily generate a whole bunch of knitted images...

Never gonna give you up Stack Overflow!

You've been knit-rolled!

If only sweaters could be animated.

Some of us MATLAB dorks are trying to figure out how to automatically format a picture to upload to the knitting tool. Thanks to a hint from balpha I was able to improve upon my results...

Here's what I fed to my function:

enter image description here

Here's what it spit out:

enter image description here

And here's what the tool shows after uploading:

enter image description here

Cheaty? Perhaps. Had to try it on myself!

enter image description here

And a small gift to balpha for the hint:

enter image description here

Some of us MATLAB dorks decided to try and figure out how to automatically format a picture to upload to the knitting tool. After balpha gave us a hint, we realized that much of what we were doing was pointless. 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.

Regardless, I threw together what I had 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:

enter image description here

It will automatically resize, pad, and recolor the image, adding the knit pattern:

enter image description here

But you can also turn on a background filling option to get rid of all that white:

enter image description here

Works on me too:

enter image description here

And here's balpha:

enter image description here

Hmmm... I wonder what someone could do with a utility that can quickly and easily generate a whole bunch of knitted images...

Never gonna give you up Stack Overflow!

You've been knit-rolled!

If only sweaters could be animated.

added 319 characters in body
Source Link
gnostradamus
  • 32.1k
  • 10
  • 60
  • 117

Some of us MATLAB dorks are trying to figure out how to automatically format a picture to upload to the knitting tool. Thankfully the knitting tool is forgiving and will adjust a not-so-perfect resultThanks to a hint from balpha I was able to improve upon my results. ;)..

Here's what I fed to my function:

enter image description here

Here's what it spit out (a little rough around the edges):

enter image description hereenter image description here

And here's what the tool shows after uploading:

enter image description hereenter image description here

Cheaty? Perhaps. Had to try it on myself!

enter image description here

And a small gift to balpha for the hint:

enter image description here

Some of us MATLAB dorks are trying to figure out how to automatically format a picture to upload to the knitting tool. Thankfully the knitting tool is forgiving and will adjust a not-so-perfect result. ;)

Here's what I fed to my function:

enter image description here

Here's what it spit out (a little rough around the edges):

enter image description here

And here's what the tool shows after uploading:

enter image description here

Cheaty? Perhaps.

Some of us MATLAB dorks are trying to figure out how to automatically format a picture to upload to the knitting tool. Thanks to a hint from balpha I was able to improve upon my results...

Here's what I fed to my function:

enter image description here

Here's what it spit out:

enter image description here

And here's what the tool shows after uploading:

enter image description here

Cheaty? Perhaps. Had to try it on myself!

enter image description here

And a small gift to balpha for the hint:

enter image description here

Source Link
gnostradamus
  • 32.1k
  • 10
  • 60
  • 117

Some of us MATLAB dorks are trying to figure out how to automatically format a picture to upload to the knitting tool. Thankfully the knitting tool is forgiving and will adjust a not-so-perfect result. ;)

Here's what I fed to my function:

enter image description here

Here's what it spit out (a little rough around the edges):

enter image description here

And here's what the tool shows after uploading:

enter image description here

Cheaty? Perhaps.