CVB++ 15.0
metric_laser_line_extraction.hpp
1#pragma once
2
3#include "../_cexports/c_metric.h"
4
5#include "../image.hpp"
6#include "cvb/block.hpp"
7
8namespace Cvb
9{
10 CVB_BEGIN_INLINE_NS
11
12 namespace Foundation
13 {
14 namespace Metric
15 {
18 {
21 {
23 ArgMax = 1,
26 };
27
29 enum class FIRFilter
30 {
32 None = 1,
35 };
36
57
60
91 void ExtractLaserLineFromImage(const Image &monoImage, LineExtractionParameters parameters, int lineOut,
92 Image &rangeMap)
93 {
94 Internal::DoResCall([&]() {
95 return CVB_CALL_CAPI(CVMExtractLaserLineFromMonoImage(
96 monoImage.Handle(), *reinterpret_cast<CExports::CVMLineExtractionParameters *>(&parameters), lineOut,
97 rangeMap.Handle(), nullptr));
98 });
99 }
100
103
141 void ExtractLaserLineFromImage(const Image &monoImage, LineExtractionParameters parameters, int lineOut,
142 Image &rangeMap, Image &intensityImage)
143 {
144 Internal::DoResCall([&]() {
145 return CVB_CALL_CAPI(CVMExtractLaserLineFromMonoImage(
146 monoImage.Handle(), *reinterpret_cast<CExports::CVMLineExtractionParameters *>(&parameters), lineOut,
147 rangeMap.Handle(), intensityImage.Handle()));
148 });
149 }
150 } /* namespace LaserLineExtraction */
151 } /* namespace Metric */
152 } /* namespace Foundation */
153 CVB_END_INLINE_NS
154} /* namespace Cvb */
The Common Vision Blox image.
Definition decl_image.hpp:50
void * Handle() const noexcept
Classic API image handle.
Definition decl_image.hpp:237
Namespace for functions and classes extracting lase lines from the Foundation package.
Definition metric_laser_line_extraction.hpp:18
PeakLocalizationMethod
Peak location parameters.
Definition metric_laser_line_extraction.hpp:21
@ ArgMax
The center peak is set to the highest value in a given set.
Definition metric_laser_line_extraction.hpp:23
@ CoG
Estimation of the center peak with center of gravity (CoG).
Definition metric_laser_line_extraction.hpp:25
void ExtractLaserLineFromImage(const Image &monoImage, LineExtractionParameters parameters, int lineOut, Image &rangeMap)
Extracts the laser line from given monoImage and stores it to lineOut of the previously allocated ran...
Definition metric_laser_line_extraction.hpp:91
FIRFilter
Filter parameters.
Definition metric_laser_line_extraction.hpp:30
@ Mean
Mean filtering.
Definition metric_laser_line_extraction.hpp:34
@ None
No active filtering.
Definition metric_laser_line_extraction.hpp:32
Namespace for metric calibration.
Definition decl_metric_aqs12_calibration_piece.hpp:13
Namespace for the Foundation package.
Definition decl_metric_aqs12_calibration_piece.hpp:11
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
All necessary parameters for laser line extraction.
Definition metric_laser_line_extraction.hpp:44
int WindowSize
Size of window used for filtering and peak detection.
Definition metric_laser_line_extraction.hpp:55
PeakLocalizationMethod PeakType
Type of peak detection.
Definition metric_laser_line_extraction.hpp:46
double ThresholdPeakDetection
Threshold for peak detection (not considered yet).
Definition metric_laser_line_extraction.hpp:49
FIRFilter FilterType
Filtering method.
Definition metric_laser_line_extraction.hpp:52