#N canvas 176 166 639 504 10;
#X declare -lib Gem;
#X text 462 18 GEM object;
#X obj 18 206 cnv 15 430 210 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X text 49 208 Inlets:;
#X text 49 301 Outlets:;
#X obj 18 168 cnv 15 430 30 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 27 167 Arguments:;
#X obj 18 86 cnv 15 430 75 empty empty empty 20 12 0 14 #e0e0e0 #404040 0;
#X obj 459 87 cnv 15 170 250 empty empty empty 20 12 0 14 #dce4fc #404040 0;
#X text 463 70 Example:;
#X obj 524 271 cnv 15 100 60 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X obj 460 151 cnv 15 160 90 empty empty empty 20 12 0 14 #14e814 #404040 0;
#X obj 461 94 gemhead;
#X text 81 41 Class: pix object;
#X obj 520 95 bng 15 250 50 0 empty empty pix_load 20 8 0 8 #fcfcfc #000000 #000000;
#N canvas 4 49 587 366 image 0;
#X obj 77 48 inlet;
#X obj 77 344 outlet;
#X obj 77 205 pix_image examples/data/fractal.JPG;
#X obj 223 55 inlet;
#X msg 223 123 open \$1;
#X obj 223 100 openpanel;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X connect 3 0 5 0;
#X connect 4 0 2 0;
#X connect 5 0 4 0;
#X restore 461 123 pd image;
#X text 73 178 <none>;
#X text 526 115 open an image;
#X text 519 128 (JPEG \, TIFF \, ..);
#X obj 18 424 cnv 15 430 30 empty empty empty 20 12 0 14 #bcbcbc #404040 0;
#X text 26 425 See Also:;
#X text 83 424 examples/04.video/08.color_detection.pd;
#X text 66 229 Inlet 1: gemlist \, RGBA image;
#X text 26 459 Author: Ricardo Fabbri labmacambira.sf.net rfabbri at gmail;
#X text 60 22 Synopsis: [pix_equal];
#X text 38 107 [pix_equal] outputs a binary image where 'white' marks those pixels that are equal to a given value (within given closed bounds) \, and 'black' marks the remaining ones.;
#X text 67 248 Inlet 2(resp.3): list of lower(resp.upper) bounds [R G B A( \, with each value ranging from 0 to 1 \, and A being optional and equal to 0(resp.1) by default.;
#X text 67 319 Outlet 1: gemlist \, a binary RGBA image with white pixels marking only those pixels that are within the specified (closed) RGBA ranges simultaneously on all four channels. This can be used \, for instance \, in separating color blobs from [pix_colorclassify].;
#X text 39 87 Description: marks the pixels nearly equal to a given color;
#X obj 461 209 pix_equal;
#X msg 528 172 0.8 0.7 0 0;
#X text 524 156 lower bound;
#X text 526 204 upper bound;
#X msg 528 192 1 1 0.2 1;
#X text 456 373 and having any alpha;
#X text 457 342 e.g. marks whatever is within;
#X text 456 358 a certain bright yellow range;
#N canvas 484 243 450 300 META 0;
#X obj 10 25 declare -lib Gem;
#X text 10 45 DESCRIPTION marks the pixels nearly equal to a given color;
#X text 10 65 KEYWORDS Gem pix image;
#X text 20 85 INLET_0 gemlist RGBA;
#X text 20 105 OUTLET_0 gemlist;
#X text 10 125 AUTHOR IOhannes m zmölnig;
#X text 10 145 LICENSE GPL-2.0-or-later;
#X restore 528 18 pd META;
#X obj 531 280 _gemwin;
#X obj 461 250 _pix2rectangle 3;
#X connect 11 0 14 0;
#X connect 13 0 14 1;
#X connect 14 0 28 0;
#X connect 28 0 38 0;
#X connect 29 0 28 1;
#X connect 32 0 28 2;
