-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathimmdebug.cpp
More file actions
52 lines (48 loc) · 1.36 KB
/
Copy pathimmdebug.cpp
File metadata and controls
52 lines (48 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#include "immdebug/immdebug.h"
#include "immdebug/immdebug_internal.h"
namespace ImmVision
{
static void ImmDebugImpl(
const ImageBuffer & image,
const std::string & legend,
const Point2d & zoomCenter,
double zoomRatio,
const std::string& zoomKey,
const std::string& colorAdjustmentsKey,
bool isColorOrderBGR
)
{
ImmDebug_Internal::ImagePayload imagePayload {
image.clone(),
legend,
zoomCenter,
zoomRatio,
zoomKey,
colorAdjustmentsKey,
isColorOrderBGR
};
ImmDebug_Internal::SaveImagePayload(imagePayload);
}
void ImmDebug(
const ImageBuffer & image,
const std::string & legend,
const Point2d & zoomCenter,
double zoomRatio,
const std::string& zoomKey,
const std::string& colorAdjustmentsKey
)
{
ImmDebugImpl(image, legend, zoomCenter, zoomRatio, zoomKey, colorAdjustmentsKey, false);
}
void ImmDebugBgr(
const ImageBuffer & image,
const std::string & legend,
const Point2d & zoomCenter,
double zoomRatio,
const std::string& zoomKey,
const std::string& colorAdjustmentsKey
)
{
ImmDebugImpl(image, legend, zoomCenter, zoomRatio, zoomKey, colorAdjustmentsKey, true);
}
}