master
tth 2 years ago
parent 95475b9c60
commit 3e0b227520
  1. 7
      funcs/classif.c
  2. 3
      install.sh

@ -58,7 +58,6 @@ for (y=0; y<psrc->height; y++) {
dr = rgb[0] - baryc[0];
dg = rgb[1] - baryc[1];
db = rgb[2] - baryc[2];
dist = sqrtf( (dr*dr) + (dg*dg) + (db*db) );
#if DEBUG_LEVEL
@ -67,10 +66,12 @@ for (y=0; y<psrc->height; y++) {
/* action !!! */
if (dist > range) {
rgb[0] = 0; on++;
rgb[0] = rgb[1] = rgb[2] =
(rgb[0] + rgb[1] + rgb[2]) / 3.0;
on++;
}
else {
rgb[1] = 0; off++;
off++;
}
fimg_put_rgb(pdst, x, y, rgb);

@ -4,8 +4,9 @@ cp libfloatimg.a /usr/local/lib
cp floatimg.h /usr/local/include
cp tools/mkfimg tools/fimg2pnm tools/fimgops \
tools/fimg2png tools/fimg2tiff \
tools/fimg2png tools/fimg2tiff tools/fimg2fits \
tools/png2fimg tools/fimgstats tools/fimgfx \
tools/cumulfimgs \
/usr/local/bin
cp v4l2/grabvidseq v4l2/video-infos \

Loading…
Cancel
Save