forked from tTh/FloatImg
vroum...
This commit is contained in:
parent
95475b9c60
commit
3e0b227520
@ -58,7 +58,6 @@ for (y=0; y<psrc->height; y++) {
|
|||||||
dr = rgb[0] - baryc[0];
|
dr = rgb[0] - baryc[0];
|
||||||
dg = rgb[1] - baryc[1];
|
dg = rgb[1] - baryc[1];
|
||||||
db = rgb[2] - baryc[2];
|
db = rgb[2] - baryc[2];
|
||||||
|
|
||||||
dist = sqrtf( (dr*dr) + (dg*dg) + (db*db) );
|
dist = sqrtf( (dr*dr) + (dg*dg) + (db*db) );
|
||||||
|
|
||||||
#if DEBUG_LEVEL
|
#if DEBUG_LEVEL
|
||||||
@ -67,10 +66,12 @@ for (y=0; y<psrc->height; y++) {
|
|||||||
|
|
||||||
/* action !!! */
|
/* action !!! */
|
||||||
if (dist > range) {
|
if (dist > range) {
|
||||||
rgb[0] = 0; on++;
|
rgb[0] = rgb[1] = rgb[2] =
|
||||||
|
(rgb[0] + rgb[1] + rgb[2]) / 3.0;
|
||||||
|
on++;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
rgb[1] = 0; off++;
|
off++;
|
||||||
}
|
}
|
||||||
|
|
||||||
fimg_put_rgb(pdst, x, y, rgb);
|
fimg_put_rgb(pdst, x, y, rgb);
|
||||||
|
@ -4,8 +4,9 @@ cp libfloatimg.a /usr/local/lib
|
|||||||
cp floatimg.h /usr/local/include
|
cp floatimg.h /usr/local/include
|
||||||
|
|
||||||
cp tools/mkfimg tools/fimg2pnm tools/fimgops \
|
cp tools/mkfimg tools/fimg2pnm tools/fimgops \
|
||||||
tools/fimg2png tools/fimg2tiff \
|
tools/fimg2png tools/fimg2tiff tools/fimg2fits \
|
||||||
tools/png2fimg tools/fimgstats tools/fimgfx \
|
tools/png2fimg tools/fimgstats tools/fimgfx \
|
||||||
|
tools/cumulfimgs \
|
||||||
/usr/local/bin
|
/usr/local/bin
|
||||||
|
|
||||||
cp v4l2/grabvidseq v4l2/video-infos \
|
cp v4l2/grabvidseq v4l2/video-infos \
|
||||||
|
Loading…
Reference in New Issue
Block a user