From the original SynthMaker forum (2004–2014), with its members’ names and dates.
mwvdlee ·
Here's a short and simple example of pixel filtering on any image.
It's based on the standard image control. If you look inside it, you'll see a "Filter" module and input, which are the only changes I made; everything else is untouched.
The filter itself is as simple as can be; just invert the blue pixels, but as you can imagine more complex things can be done.
Performance is okay on small pictures (tested 200x200) but unusably slow on bigger ones (tested 900x1280). Obviously SM isn't designed to do this kind of work so it's no wonder it's slow but it may be useful on small pictures should your UI design require it (luckily, mine doesn't 😉)
I should note that for this particular filter (inverting blue), a color matrix would probably have been much faster. I'm not that familiar with color matrixes though, so I haven't tested this assumption. As I understand it, color matrixes can do whole-image color manipulation only, but at high speed.
philter5 ·
thx man . fits perfect to what i am doing atm... 😍
trogluddite ·
mwvdlee wrote: As I understand it, color matrixes can do whole-image color manipulation only, but at high speed.
The colour matrix acts a bit like Photoshop's channel mixer by acting on the R,G and B channels. Your method is much more flexible in that you could filter pixels with certain ranges, or of a specific colour. - the speed may not be a problem in many applications as you could use a bitmap create to buffer the result.
Good Work! 🙂
mwvdlee ·
trogluddite wrote:
mwvdlee wrote: As I understand it, color matrixes can do whole-image color manipulation only, but at high speed.
The colour matrix acts a bit like Photoshop's channel mixer by acting on the R,G and B channels. Your method is much more flexible in that you could filter pixels with certain ranges, or of a specific colour. - the speed may not be a problem in many applications as you could use a bitmap create to buffer the result.
Good Work! 🙂
This filter method would also allow you to do geometric manipulation; i.e. mirroring, rotating, waves and other deforms, blurring, sharpening, contrast... basically anything Photoshop can do, albeit quite a bit slower. The speed really is a problem for bigger images, taking several seconds for bigger pictures.
I understand the basic idea of Color matrixes, I just havent seen any convincing examples that its able to do anything you cant do easier & faster in another way. Besides, I have never been good at matrix calculations 🙂 Perhaps somebody could demonstrate what Color matrixes can do? More specifically, what Color matrixes can do that one cant do easier & faster some other way.
rl ·
mwvdlee wrote: Perhaps somebody could demonstrate what Color matrixes can do? More specifically, what Color matrixes can do that one cant do easier & faster some other way.
Here's an old post of mine:
Colour Transformations Using New Colour Matrix Modules
Wrote something here? To have a post removed or your name hidden, write to [email protected].