Compare commits
3 Commits
aa42aa99fb
...
414bff491b
Author | SHA1 | Date | |
---|---|---|---|
414bff491b | |||
6b95c2dba6 | |||
cc909c85d4 |
@ -58,9 +58,9 @@ int x, y, szimg;
|
|||||||
pix *ppix, *ptr;
|
pix *ppix, *ptr;
|
||||||
float rgb[3];
|
float rgb[3];
|
||||||
|
|
||||||
// #if DEBUG_LEVEL
|
#if DEBUG_LEVEL
|
||||||
fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, psrc, pdst, notused);
|
fprintf(stderr, ">>> %s ( %p %p %d )\n", __func__, psrc, pdst, notused);
|
||||||
// #endif
|
#endif
|
||||||
|
|
||||||
szimg = pdst->width * pdst->height;
|
szimg = pdst->width * pdst->height;
|
||||||
fprintf(stderr, "%s : %d pixels\n", __func__, szimg);
|
fprintf(stderr, "%s : %d pixels\n", __func__, szimg);
|
||||||
|
@ -19,8 +19,6 @@ float global_fvalue;
|
|||||||
* nouveau 7 octobre 2020 pendant sonoptic
|
* nouveau 7 octobre 2020 pendant sonoptic
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//
|
|
||||||
|
|
||||||
int essai_qsort_rgb(char *infile)
|
int essai_qsort_rgb(char *infile)
|
||||||
{
|
{
|
||||||
FloatImg src, dst;
|
FloatImg src, dst;
|
||||||
|
@ -6,7 +6,7 @@ out=out.fimg
|
|||||||
maxi=99
|
maxi=99
|
||||||
W="640"
|
W="640"
|
||||||
H="480"
|
H="480"
|
||||||
grabopt=" -s 640x480 -v -p 0 -n 100 -c cos01 "
|
grabopt=" -s 640x480 -v -p 0 -n 500 -c cos01 "
|
||||||
|
|
||||||
mkdir /tmp/V
|
mkdir /tmp/V
|
||||||
|
|
||||||
@ -15,12 +15,12 @@ G=$(printf "%dx%d+0+0" $W $H)
|
|||||||
for foo in $(seq 0 $maxi)
|
for foo in $(seq 0 $maxi)
|
||||||
do
|
do
|
||||||
|
|
||||||
echo
|
echo ; echo
|
||||||
|
|
||||||
grabvidseq -$grabopt -o $src
|
grabvidseq -$grabopt -o $src
|
||||||
|
|
||||||
fval=$(echo "$foo / $maxi" | bc -l)
|
fval=$(echo "$foo / $maxi" | bc -l)
|
||||||
./t -k $fval -v qsortrgb $src
|
./t -k $fval qsortrgb $src
|
||||||
echo $foo ' = ' $fval
|
echo $foo ' = ' $fval
|
||||||
|
|
||||||
dst=$(printf "/tmp/V/%03d.png" $foo)
|
dst=$(printf "/tmp/V/%03d.png" $foo)
|
||||||
@ -29,4 +29,4 @@ do
|
|||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
convert -delay 10 V/*.png foo.gif
|
convert -delay 20 /tmp/V/*.png foo.gif
|
||||||
|
Loading…
Reference in New Issue
Block a user