Manipulating a picture
I am very new to max/msp + jitter, but have been playing around a little bit with it and I need help. What I would like to do is make a program where I can upload a picture file and then decide the number of colors and exactly what colors that picture can use. I want to play around with reducing the number of colors in a picture to make it more of a mosaic look. Any help would be greatly appreciated.
firstly, check the tutorials, they cover this in a lot of ways. a
couple of tips: a mosaic look will come more from playing with the
pixel resolution of a picture than with the number of colors.
reducing the number of colors will result in more of what is know as
"posterization" – a breaking of the colors down into a series of flat
"zones." and away you go…
On Sep 22, 2008, at 4:44 PM, John OHearn wrote:
> I am very new to max/msp + jitter, but have been playing around a
> little bit with it and I need help. What I would like to do is make
> a program where I can upload a picture file and then decide the
> number of colors and exactly what colors that picture can use. I
> want to play around with reducing the number of colors in a picture
> to make it more of a mosaic look. Any help would be greatly
"Reality is whatever refuses to go away when I stop believing in it.."
Philip K. Dick
The basic concept that I think you’re after is "downsampling" and "upsampling" to reduce the resolution, as shown in the example below. (It’s also discussed in Jitter Tutorial 14.)
There are many other more complicated ways to get a "mosaic"-like effect (and several Jitter objects to support them), but this is probably about the simplest way.
----------begin_max5_patcher---------- 1325.3oc2ZszbqZCEds8uBJycQ6TWe0Cd1U2NcQW1Y5zcc5jQ1H6nT.QAbha uy8+dQOH1NAHxbA4LMKLFYP5b9zmNmOcT97xEta3GoUtN+nye3rXwmWtXgrI QCKz2uvMibbaJoR9Xta4YYz7Z2UpeqldrV1NKulVVvSI0Tmc7RmMoGJKY46c n61Q297ymxxoa4GxkuDR2X9gLVdJsVNBvSMxOT21JP25NddcE6eoxmLZcayE j5s22LZ2UJFKo63CD+rCx2SbABwhKdn0.m+T+RrDoky27vO.cOq+yIYx9282 YYzJmeimQxcE+7WVtT7wJCgpZ998oTWycx1VUMU+OETkqH.W2mM6N8UjzWUN Izu8ytbUj6y8SYii1LqcGMmrIUNVfQ3lMXTEYOsGFgyGfch.nAQfdlleEvXD pfkWfZ9POL.bmLfelenjQKGyreeKT9ke0cNo8ABmLR9IVxCPdc6vdyAkuOtP Ikj3jvptmVsNi+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