Skip to content

Commit

Permalink
Removing unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibaud EHRET committed Sep 16, 2019
1 parent 594e357 commit d731791
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
4 changes: 2 additions & 2 deletions multiscaler/decompose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ using std::cerr;
using std::endl;

int main(int argc, char *argv[]) {
float ratio = atof(pick_option(&argc, argv, "r", "2."));
int ratio = 2.;
bool usage = pick_option(&argc, argv, "h", nullptr);
int type = atoi(pick_option(&argc, argv, "t", "0"));
if (argc != 5 || usage) {
cerr << "Usage: " << argv[0] << " input prefix levels suffix [-r ratio] [-t type: 0=DCT, 1=Gaussian, 2=Lanczos]" << endl;
cerr << "Usage: " << argv[0] << " input prefix levels suffix [-t type: 0=DCT, 1=Gaussian, 2=Lanczos]" << endl;
exit(EXIT_FAILURE);
}
string input = argv[1];
Expand Down
8 changes: 2 additions & 6 deletions src/utils/VBM3Ddenoising_OF_multiscale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,9 @@ if [ -n "$9" ]; then
MSTYPE=$9
fi
if [ -n "${10}" ]; then
R_PYR=${10}
fi
if [ -n "${11}" ]; then
PAR_PYR=${11}
PAR_PYR=${10}
fi

DEC_ARGS="-r ${R_PYR}"
MS_ARGS="-c ${PAR_PYR}"

# Clean noisy
Expand All @@ -72,7 +68,7 @@ done
wait
for ((frame=FIRST; frame<=LAST; ++frame))
do
$PATH_MULTISCALE/recompose denoised/level_ ${LEVELS} _$(printf "%04d" $frame).tiff $(printf $OUT/$OUTPUT $frame) -t $MSTYPE
$PATH_MULTISCALE/recompose denoised/level_ ${LEVELS} _$(printf "%04d" $frame).tiff $(printf $OUT/$OUTPUT $frame) -t $MSTYPE ${MS_ARGS}
done

./psnr -i $OUT/$OUTPUT -r ${INPUT} -f ${FIRST} -l ${LAST} > $OUT/psnr.txt
Expand Down
9 changes: 2 additions & 7 deletions src/utils/VBM3Ddenoising_multiscale.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ LEVELS=3
FIRST=1
LAST=100
MSTYPE=0
R_PYR=2
PAR_PYR=0.7


Expand All @@ -39,13 +38,9 @@ if [ -n "$9" ]; then
MSTYPE=$9
fi
if [ -n "${10}" ]; then
R_PYR=${10}
fi
if [ -n "${11}" ]; then
PAR_PYR=${11}
PAR_PYR=${10}
fi

DEC_ARGS="-r ${R_PYR}"
MS_ARGS="-c ${PAR_PYR}"

# Clean noisy
Expand All @@ -72,7 +67,7 @@ done
wait
for ((frame=FIRST; frame<=LAST; ++frame))
do
$PATH_MULTISCALE/recompose denoised/level_ ${LEVELS} _$(printf "%04d" $frame).tiff $(printf $OUT/$OUTPUT $frame) -t $MSTYPE
$PATH_MULTISCALE/recompose denoised/level_ ${LEVELS} _$(printf "%04d" $frame).tiff $(printf $OUT/$OUTPUT $frame) -t $MSTYPE ${MS_ARGS}
done

./psnr -i $OUT/$OUTPUT -r ${INPUT} -f ${FIRST} -l ${LAST} > $OUT/psnr.txt
Expand Down

0 comments on commit d731791

Please sign in to comment.