This commit is contained in:
tth 2020-10-05 09:16:20 +02:00
parent 95475b9c60
commit 3e0b227520
2 changed files with 6 additions and 4 deletions

View File

@ -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);

View File

@ -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 \