inline void CopyFrom()

in IsometricPatternMatcher/Image.h [143:151]


  inline void CopyFrom(const Image<TOther, OtherMaxValue>& img) {
    if (IsValid() && img.IsValid()) {
      CHECK(w >= img.w && h >= img.h);
      details::PitchedCopy((char*)ptr, pitch, (const char*)img.ptr, img.pitch,
                           std::min(img.w, w) * sizeof(T), std::min(img.h, h));
    } else if (img.IsValid() != IsValid()) {
      CHECK(false && "Cannot copy from / to an unasigned image.");
    }
  }