Le 11-11-14 14:15, Hans-Christoph Steiner a écrit :
> 
> On Nov 14, 2011, at 12:30 PM, Ricardo Fabbri wrote:
> 
>>> i would go for [pix_colorclassify].
>>> if you agree and are willing to change the name in your branch, i'll
>>> import it as is.
>>
>> I agree and have just renamed it and it compiles cleanly here. You can
>> fetch the changes in the same 'color' branch.
>>
>>> - - it would be great if the user could modify those labels. e.g. [1 0 0]
>>> sounds like a great label for "red", but some weird user might chose to
>>> prefer [0.5 1 0.8].
>>
>> 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.
> 
> That sounds very useful!  I believe that operation is called a color mask.  
> Isn't there something like pix_mask?

Yes, it is [pix_bitmask] I use it in this patch.  It works well in
conjuction with [pix_gain]. I found a reference to it by looking at the
opencv objects in Yves' lib, some of which only exist for linux and not
OSX. I'm looking forward to new options though, keep up the good work.

Alexandre


> 
> .hc
> 
>>> it would also be nice to be able to parameterize the detection code, but
>>> i guess it is too fine tuned to the six given classes (so it would both
>>> complicate things from the dev's and the user's povs)
>>>
>>
>> I guess we should go with the simple algorithm at first, then improve
>> it if needed. I noticed that even with very bad lighting conditions
>> and offset colorbalance, at least 2 or 3 colors work robustly, so this
>> should be useful without tweaking. The parameters have already been
>> tuned on a large database of exemplars. But, I agree, decreasing the
>> sensitivity to e.g. 'red' would be nice. I say we wait for further
>> demands and beta-testing prior to making the external more complex.
>>
>> Thanks!
>>
>> Ricardo Fabbri
>> labmacambira.sf.net
>>
>> _______________________________________________
>> GEM-dev mailing list
>> [email protected]
>> http://lists.puredata.info/listinfo/gem-dev
> 
> 
> 
> ----------------------------------------------------------------------------
> 
> Terrorism is not an enemy.  It cannot be defeated.  It's a tactic.  It's 
> about as sensible to say we declare war on night attacks and expect we're 
> going to win that war.  We're not going to win the war on terrorism.        - 
> retired U.S. Army general, William Odom
> 
> 
> 
> _______________________________________________
> GEM-dev mailing list
> [email protected]
> http://lists.puredata.info/listinfo/gem-dev
> 

#N canvas 900 22 1020 969 10;
#X obj 236 103 pix_film;
#X obj 314 15 tgl 15 0 empty empty empty 17 7 0 10 -257985 -1 -1 0
1;
#X obj 53 59 gemwin;
#X msg 38 24 create \, 1;
#X obj 32 144 openpanel;
#X obj 32 122 bng 15 250 50 0 empty empty empty 17 7 0 10 -4034 -1
-1;
#X msg 32 175 open \$1;
#X obj 388 359 print;
#X obj 346 360 spigot;
#X obj 379 337 tgl 15 0 empty empty empty 17 7 0 10 -257985 -1 -1 0
1;
#X msg 146 20 dimen 720 480;
#X msg 144 64 0 \, destroy;
#X floatatom 303 288 5 0 0 0 - - -;
#X obj 236 136 pix_rgba;
#X obj 236 466 rectangle 6 4;
#X obj 236 444 pix_texture;
#X obj 236 304 pix_gain;
#X obj 236 263 pix_bitmask;
#X obj 236 46 gemhead;
#X floatatom 382 258 3 0 100 2 threshold - -;
#X obj 382 275 / 100;
#X msg 382 296 treshold \$1;
#X floatatom 472 258 3 0 100 2 blobsize - -;
#X obj 472 275 / 100;
#X msg 472 296 blobSize \$1;
#X floatatom 339 101 5 0 0 0 - - -;
#X obj 314 48 metro 50;
#X obj 236 359 pix_multiblob;
#X obj 236 197 pix_separator;
#X obj 635 201 pix_separator;
#X obj 236 163 separator;
#X obj 733 414 print;
#X obj 733 387 spigot;
#X obj 769 359 tgl 15 0 empty empty empty 17 7 0 10 -257985 -1 -1 0
1;
#X floatatom 703 305 5 0 0 0 - - -;
#X obj 636 466 rectangle 6 4;
#X obj 636 444 pix_texture;
#X obj 636 324 pix_gain;
#X obj 636 283 pix_bitmask;
#X floatatom 782 266 3 0 100 2 threshold - -;
#X obj 782 283 / 100;
#X msg 782 304 treshold \$1;
#X floatatom 872 266 3 0 100 2 blobsize - -;
#X obj 872 283 / 100;
#X msg 872 304 blobSize \$1;
#X msg 835 391 \$3 \$4;
#X obj 836 425 unpack;
#X floatatom 828 471 5 0 0 0 - - -;
#X floatatom 873 471 5 0 0 0 - - -;
#X obj 781 612 rectangle 0.1 0.1;
#X obj 781 587 pix_texture;
#X obj 782 518 gemhead;
#X obj 781 559 translateXYZ;
#X obj 840 501 * 12;
#X obj 837 530 - 6;
#X obj 880 501 * -8;
#X obj 877 530 + 4;
#X obj 636 359 pix_multiblob;
#X obj 636 419 spigot;
#X obj 669 397 tgl 15 0 empty empty empty 17 7 0 10 -257985 -1 -1 0
1;
#X obj 236 415 spigot;
#X obj 269 393 tgl 15 0 empty empty empty 17 7 0 10 -257985 -1 -1 0
1;
#X obj 313 72 counter 1150;
#X obj 688 550 color 0 0 1;
#X msg 299 241 20 0 0;
#X msg 699 261 0 0 50;
#X connect 0 0 13 0;
#X connect 1 0 26 0;
#X connect 3 0 2 0;
#X connect 4 0 6 0;
#X connect 5 0 4 0;
#X connect 6 0 0 0;
#X connect 8 0 7 0;
#X connect 9 0 8 1;
#X connect 10 0 2 0;
#X connect 11 0 2 0;
#X connect 12 0 16 1;
#X connect 13 0 30 0;
#X connect 15 0 14 0;
#X connect 16 0 27 0;
#X connect 17 0 16 0;
#X connect 18 0 0 0;
#X connect 19 0 20 0;
#X connect 20 0 21 0;
#X connect 21 0 27 0;
#X connect 22 0 23 0;
#X connect 23 0 24 0;
#X connect 24 0 27 0;
#X connect 26 0 62 0;
#X connect 27 0 60 0;
#X connect 27 1 8 0;
#X connect 28 0 17 0;
#X connect 29 0 38 0;
#X connect 30 0 28 0;
#X connect 30 0 29 0;
#X connect 32 0 31 0;
#X connect 33 0 32 1;
#X connect 34 0 37 1;
#X connect 36 0 35 0;
#X connect 37 0 57 0;
#X connect 38 0 37 0;
#X connect 39 0 40 0;
#X connect 40 0 41 0;
#X connect 41 0 57 0;
#X connect 42 0 43 0;
#X connect 43 0 44 0;
#X connect 44 0 57 0;
#X connect 45 0 46 0;
#X connect 46 0 47 0;
#X connect 46 1 48 0;
#X connect 47 0 53 0;
#X connect 48 0 55 0;
#X connect 50 0 49 0;
#X connect 51 0 63 0;
#X connect 52 0 50 0;
#X connect 53 0 54 0;
#X connect 54 0 52 1;
#X connect 55 0 56 0;
#X connect 56 0 52 2;
#X connect 57 0 58 0;
#X connect 57 1 32 0;
#X connect 57 1 45 0;
#X connect 58 0 36 0;
#X connect 59 0 58 1;
#X connect 60 0 15 0;
#X connect 61 0 60 1;
#X connect 62 0 0 1;
#X connect 62 0 25 0;
#X connect 63 0 52 0;
#X connect 64 0 17 2;
#X connect 65 0 38 2;
_______________________________________________
GEM-dev mailing list
[email protected]
http://lists.puredata.info/listinfo/gem-dev

Reply via email to