/usr/bin/batch_rubber_sheet is in libvips-tools 7.40.6-2+b1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #!/bin/sh
# Corrects a set of image files for lens distortion using a preprepared
# recombination matrix
# usage:
#
# example% batch_rubber_sheet matrix_file image1 image2 ..
#
# writes output images rsc_image1.v, rsc_image2.v ..
# default prefix
VIPSHOME=${VIPSHOME-/usr}
# get name we were run as
name=`basename $0`
# check args
if [ $# -lt 2 ]; then
echo "usage: $name matrix image1 image2 ..."
echo "writes rsc_image1, rsc_image2, ..."
echo
echo "$name uses VIPS to correct a set of images for lens distortion"
echo "using a matrix calculated by the 'resample' function."
exit 1
fi
rec=$1
shift
# transform each argument
for i in $*; do
echo "Transforming $i to rsc_$i ..."
# bilinear interp., don't wrap edges
$VIPSHOME/bin/vips im_transform $i rsc_$i $rec 1 0
done
|