Color-matching Shots from Different Cameras Having Unknown Gamma or Logarithmic Encoding Curves