[GEM-dev] pix_equal (was Re: new pix_colordetect)

Ricardo Fabbri rfabbri at gmail.com
Fri Feb 24 19:23:51 CET 2012


Hi,

following up on the color classification thread, I had promised a
pix_equal object to mark the pixels that are equal to a given RGBA
value/range. It is quite useful in the present form;
perhaps another solution could be sought for the long term, but for
now this does a useful job,
in particular being required to decode the output of
pix_colorclassify. pix_bitmask doesn't work for this,
as what I need is an "and" interval test on all RGBA channels.

The code for pix_equal and its documentation is are in the
'pix_equal_new' branch at this repo:
git://github.com/rfabbri/Gem.git

I rebased the branch on the latest Gem git master branch.

I look forward to your feedback on this simple object, and your
opinion about incorporating
it into Gem.
Ricardo Fabbri
--
Linux registered user #175401
www.lems.brown.edu/~rfabbri
pt.wikipedia.org/wiki/IPRJ
labmacambira.sf.net



2011/11/14 IOhannes zmölnig <zmoelnig at iem.at>:
> On 11/14/2011 06:30 PM, Ricardo Fabbri wrote:
>> That will come with a later contribution. I wrote a [pix_equal]
>> external which can change any pixels "equal" to some value within a
>> given cosed r & g & b range. I use it to separate the colors into
>> different images, change the color label, etc.
>
>
> actually, i think what we really would need was a (high-performant,
> jit-compiled) [pix_expr] object, that would allow to create such objects
> in Pd space rather than in C++ space.
>
> fgmasdr
> IOhannes
>
>
> _______________________________________________
> GEM-dev mailing list
> GEM-dev at iem.at
> http://lists.puredata.info/listinfo/gem-dev
>



More information about the GEM-dev mailing list