Skip to content
Snippets Groups Projects
Commit dcdbdfdf authored by nick87720z's avatar nick87720z
Browse files

Bottom vertical space for header comments

parent ed7bb14f
No related branches found
No related tags found
No related merge requests found
...@@ -29,6 +29,7 @@ rotate_fft() { ...@@ -29,6 +29,7 @@ rotate_fft() {
} }
# Command line arguments # Command line arguments
self=img-resynth self=img-resynth
bc_prec=20 bc_prec=20
...@@ -151,6 +152,7 @@ convert ${tmpdir}/src.miff -fft +adjoin ${tmpdir}/fft.miff ...@@ -151,6 +152,7 @@ convert ${tmpdir}/src.miff -fft +adjoin ${tmpdir}/fft.miff
ifft_size=$( identify ${tmpdir}/fft-0.miff | cut -f3 -d' ' | cut -f1 -dx ) ifft_size=$( identify ${tmpdir}/fft-0.miff | cut -f3 -d' ' | cut -f1 -dx )
# Find transform parameters # Find transform parameters
echo 'Find transform parameters' echo 'Find transform parameters'
rez=( $( bc <<< " rez=( $( bc <<< "
scale=$bc_prec scale=$bc_prec
...@@ -173,6 +175,7 @@ echo 'Done (Find transform parameters)' ...@@ -173,6 +175,7 @@ echo 'Done (Find transform parameters)'
echo isize $isize osize ${ow}x${oh} ifft_size $ifft_size offt_size $offt_size d $d echo isize $isize osize ${ow}x${oh} ifft_size $ifft_size offt_size $offt_size d $d
# Resizing # Resizing
if [ $b_incr == 1 ] if [ $b_incr == 1 ]
then then
# Find FFT border size # Find FFT border size
...@@ -186,6 +189,7 @@ fi ...@@ -186,6 +189,7 @@ fi
rotate_fft rotate_fft
# Filtering # Filtering
side=$( identify ${tmpdir}/fft-0.miff | cut -f3 -d' ' | cut -f1 -dx ) side=$( identify ${tmpdir}/fft-0.miff | cut -f3 -d' ' | cut -f1 -dx )
if [ -n "${bands}" ] ; then if [ -n "${bands}" ] ; then
echo Preparing filter echo Preparing filter
...@@ -205,6 +209,7 @@ if [ -n "${bands}" ] ; then ...@@ -205,6 +209,7 @@ if [ -n "${bands}" ] ; then
fi fi
# IFT # IFT
echo Inverse transform echo Inverse transform
convert ${tmpdir}/fft-{0,1}.miff -ift -crop "${geom}" -repage "${geom}" ${tmpdir}/dest.miff convert ${tmpdir}/fft-{0,1}.miff -ift -crop "${geom}" -repage "${geom}" ${tmpdir}/dest.miff
convert ${tmpdir}/dest.miff ${ofile} convert ${tmpdir}/dest.miff ${ofile}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment