FloatImg4PythonBinding/tools/essai.sh

59 lines
1.3 KiB
Bash
Raw Normal View History

2020-03-26 09:12:25 +01:00
#!/bin/bash
#
# essai des differents outils
#
# -----------------------------------------------------
2021-03-25 11:11:16 +01:00
TMPF="../funcs/in.fimg"
2020-03-26 09:12:25 +01:00
# -----------------------------------------------------
function essai_rot90
{
echo "=== " $0 " ==="
./mkfimg -v -t hdeg $TMPF 800 600
./fimg2png -v $TMPF foo.png
./fimgfx -v rot90 $TMPF bar.fimg
}
# -----------------------------------------------------
2020-06-11 15:56:32 +02:00
function essai_drand48
{
2020-06-24 12:37:02 +02:00
./mkfimg -vv -t drand48 $TMPF 800 600
2020-06-11 15:56:32 +02:00
./fimgstats -vv $TMPF
}
# -----------------------------------------------------
function essai_cmixa
{
2020-06-24 12:37:02 +02:00
./mkfimg -vv -t tpat0 $TMPF 800 600
./fimgfx -vv cmixa $TMPF bar.fimg
2020-09-22 00:43:21 +02:00
}
# -----------------------------------------------------
function essai_cumulator
{
D=" 800 600 "
./mkfimg -v -t hdeg hdeg.fimg $D
./mkfimg -v -t vdeg vdeg.fimg $D
./mkfimg -v -t drand48 rand.fimg $D
2020-10-03 15:52:27 +02:00
./mkfimg -v -t tpat0 pat0.fimg $D
2020-09-22 00:43:21 +02:00
2020-10-03 15:52:27 +02:00
./cumulfimgs -v -g -o foo.fimg \
hdeg.fimg pat0.fimg rand.fimg vdeg.fimg
}
# -----------------------------------------------------
2020-10-07 15:26:34 +02:00
function essai_contour
{
./mkfimg -vv -t tpat0 $TMPF 800 600
./fimgfx -vv ctr2x2 $TMPF bar.fimg
}
# -----------------------------------------------------
2021-03-25 11:11:16 +01:00
function essai_hilight
{
./fimgfx -vv hilightr $TMPF bar.fimg
}
# -----------------------------------------------------
2020-03-26 09:12:25 +01:00
2021-03-25 11:11:16 +01:00
essai_hilight
2020-03-26 09:12:25 +01:00
# -----------------------------------------------------