CVB++ 15.0
range_map.hpp
1#pragma once
2
3#include "_cexports/c_core_3d.h"
4#include "core_3d.hpp"
5
6#include "global.hpp"
7#include "image.hpp"
8#include "value_range.hpp"
9#include "image.hpp"
10
11namespace Cvb
12{
13
14 CVB_BEGIN_INLINE_NS
15
17
32 inline std::unique_ptr<Image> DifferenceMap(const ImagePlane &rangeMap1, const ImagePlane &rangeMap2)
33 {
34 return Internal::DoResCallObjectOut<Image>([&](void *&img) {
35 return CVB_CALL_CAPI(CVC3DCreateDifferenceMap(rangeMap1.Map()->Handle(), rangeMap2.Map()->Handle(), img));
36 });
37 }
38
40
65 inline void FillGaps(const ImagePlane &rangeMap, const GapFillingOptions &options)
66 {
67 CVB_CALL_CAPI_CHECKED(CVC3DRangeMapFillGaps(*reinterpret_cast<const CExports::CVC3DGapFilling *>(&options),
68 rangeMap.Map()->Handle()));
69 }
70
71 CVB_END_INLINE_NS
72
73} // namespace Cvb
Image plane information container.
Definition decl_image_plane.hpp:29
std::unique_ptr< Image > Map() const
Create a map from a single image plane that shares its memory with the original plane.
Definition detail_image_plane.hpp:100
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17
void FillGaps(const ImagePlane &rangeMap, const GapFillingOptions &options)
This function fills gaps of given range map rangeMap.
Definition range_map.hpp:65
CVB_BEGIN_INLINE_NS std::unique_ptr< Image > DifferenceMap(const ImagePlane &rangeMap1, const ImagePlane &rangeMap2)
Subtracts the given rangeMap2 from rangeMap1.
Definition range_map.hpp:32
Options for gap filling with function FillGaps.
Definition core_3d.hpp:323