Volume Cartographer 2.27.0
Canny.hpp
Go to the documentation of this file.
1#pragma clang diagnostic push
2#pragma ide diagnostic ignored "cppcoreguidelines-avoid-magic-numbers"
3#pragma once
4
7#include <cstddef>
8#include <string>
9#include <vector>
10
11#include <opencv2/core.hpp>
12
13namespace volcart
14{
15
17 int blurSize = 1;
18 int closingSize = 4;
19 int apertureSize = 0;
20 int minThreshold = 100;
21 int maxThreshold = 150;
22 bool contour = false;
23 bool bilateral = false;
24 bool midpoint = false;
25 char projectionFrom = 'L';
26 std::vector<std::string> fromMeshes = {};
27 cv::Mat mask;
28 std::size_t zMin = 0;
29 std::size_t zMax = 1;
30};
31
37auto Canny(cv::Mat src, const CannySettings& settings) -> cv::Mat;
38
39} // namespace volcart
40
41#pragma clang diagnostic pop
auto Canny(cv::Mat src, const CannySettings &settings) -> cv::Mat
Perform Canny edge segmentation on an image.
Volume Cartographer library