Function rcg::storeImageAsDisparityPFM

Function Documentation

std::string rcg::storeImageAsDisparityPFM(const std::string &name, const Image &image, int inv, float scale, float offset)

Stores the given image as disparity. The image format must be Coord3D_C16.

NOTE: An exception that is based on std::exception is thrown in case of an error, e.g. if input or output format is not supported.

Parameters:
  • name – Name of output file without suffix.

  • imageImage to be stored.

  • inv – Value to mark invalid pixels.

  • scale – Scale factor for valid values.

  • offset – Offset for valid values.