/usr/bin/pfsinme is in pfstools 2.0.4-5build1.
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 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 | #!/bin/bash
#
# This file is a part of PFS CALIBRATION package.
# ----------------------------------------------------------------------
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
# ----------------------------------------------------------------------
#
# @author Rafal Mantiuk, <mantiuk@users.sourceforge.net>
#
# $Id: pfsinme,v 1.6 2013/12/25 16:13:45 rafm Exp $
if test -z "$1" || test "$1" = "--help"; then
cat <<EOF
Read several exposures for merging them with pfshdrcalibrate
Usage: pfsinme <file> [<file>...]
Recognized file formats and extensions:
JPEG - .jpeg, .jpg
Canon 350D RAW - .cr2
(and other camera RAW formats recognized by dcraw)
All listed files must be the same type, that is mising JPEG and RAW
images is not allowed. You can use wildcards.
See the man page for more information.
EOF
exit 1
fi
extension=${1##*.}
HDRGEN_CMD="dcraw2hdrgen"
case $extension in
("jpg"|"JPG"|"jpeg"|"JPEG")
HDRGEN_CMD="jpeg2hdrgen"
;;
esac
unamestr=`uname`
if [[ "$unamestr" == 'Darwin' ]]; then
hdrgen_file=`mktemp -t pfsinme`
else
hdrgen_file=`mktemp`
fi
${HDRGEN_CMD} "$@" | sort -k 2 -n >$hdrgen_file
#echo 1>&2 $hdrgen_file
echo 1>&2 "pfsinme: Recognized exposures: "
cat 1>&2 $hdrgen_file
pfsinhdrgen $hdrgen_file
rm $hdrgen_file
|