Volume Cartographer 2.27.0
ApplyLUT.hpp
Go to the documentation of this file.
1#pragma once
2
5#include <cstddef>
6
7#include <opencv2/core.hpp>
8
9namespace volcart
10{
11
24cv::Mat ApplyLUT(
25 const cv::Mat& img,
26 const cv::Mat& lut,
27 float min,
28 float max,
29 bool invert = false);
30
46cv::Mat ApplyLUT(
47 const cv::Mat& img,
48 const cv::Mat& lut,
49 float min,
50 float mid,
51 float max,
52 bool invert = false);
53
68cv::Mat ApplyLUT(
69 const cv::Mat& img,
70 const cv::Mat& lut,
71 bool invert = false,
72 const cv::Mat& mask = cv::Mat());
73
87 const cv::Mat& lut,
88 bool invert = false,
89 std::size_t height = 36,
90 std::size_t width = 256);
91
92} // namespace volcart
cv::Mat ApplyLUT(const cv::Mat &img, const cv::Mat &lut, float min, float max, bool invert=false)
Apply a LUT to an image.
cv::Mat GenerateLUTScaleBar(const cv::Mat &lut, bool invert=false, std::size_t height=36, std::size_t width=256)
Generate a LUT scale bar image.
Volume Cartographer library