#! /bin/bash -e
# Last edited on 2025-08-10 09:07:58 by stolfi

???

# Creates a composite of the "clip_text" images at three specified
# wavelengths.

page="$1"; shift   # Page number as in "MultSpectral/davis/"
imgR="$1"; shift   # Name of band to use for Red, e.g. "MB700IR_008_F".
imgG="$1"; shift   # Name of band to use for Green.
imgB="$1"; shift   # Name of band to use for Blue.
imgOut="$1"; shift # Name suffix for composite clip, e.g. "700_545_365".

ofile="clips/davis/${page}/text_comp_${imgOut}.png"

( cd MultSpectral/davis/${page} && \
  convert \
      MB700IR_008_F_detail.png \
      MB535GN_026_F_detail.png 
      MB365UV_037_F_detail.png \
      -colorspace SRGB \
      -combine PNG:- \
) > ${ofile}
display ${ofile}

