message: Added to_mat function for Image1d (e.g. depthbuffer image)
diff: @@ -46,6 +46,18 @@ inline cv::Mat to_mat(const Image4u& image)
  return opencv_matrix;
  };
  +inline cv::Mat to_mat(const Image1d& image)
  +{
  + cv::Mat opencv_matrix(image.rows, image.cols, CV_64FC1);
  + for (int c = 0; c < image.cols; ++c) { // size_t
  + for (int r = 0; r < image.rows; ++r) {
  + //auto vals = image(r, c);
  + opencv_matrix.at<double>(r, c) = image(r, c);
  + }
  + }
  + return opencv_matrix;
  +};
  +
  inline Image3u from_mat(const cv::Mat& image)
  {
  if (image.type() != CV_8UC3)
  