Volume Cartographer 2.27.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
ImageConversion.hpp
Go to the documentation of this file.
1#pragma once
2
5#include <opencv2/core.hpp>
6#include <opencv2/imgproc.hpp>
7
8namespace volcart
9{
10
12auto DepthToString(int depth) -> std::string;
13
25 const cv::Mat& m, int depth = CV_16U, bool scaleMinMax = true) -> cv::Mat;
26
32auto ColorConvertImage(const cv::Mat& m, int channels = 1) -> cv::Mat;
33
34} // namespace volcart
auto QuantizeImage(const cv::Mat &m, int depth=CV_16U, bool scaleMinMax=true) -> cv::Mat
Convert image to specified depth using max scaling.
auto ColorConvertImage(const cv::Mat &m, int channels=1) -> cv::Mat
Convert image to specified number of channels.
Volume Cartographer library
auto DepthToString(int depth) -> std::string
Convert an OpenCV depth enum value to a human-readable string.