SynthMaker

Pixel filtering

Archive · 2010 5 old posts

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].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.