IDS peak IPL v1.12.1
Loading...
Searching...
No Matches
peak_ipl_simple_types.hpp
Go to the documentation of this file.
1
11#pragma once
12
14
15#include <string>
16
20namespace peak
21{
22namespace ipl
23{
24
34
39{
41
45
49
53
57
62
65
69
71
74
76
80
84
88
92
95
98
101
104
107
109
111
132
153
164};
165
178
188
197
211
215struct Size2D
216{
217 size_t width;
218 size_t height;
219};
220
224PEAK_IPL_NO_DISCARD inline bool operator==(const Size2D& lhs, const Size2D& rhs)
225{
226 return lhs.height == rhs.height && lhs.width == rhs.width;
227}
228
232PEAK_IPL_NO_DISCARD inline bool operator!=(const Size2D& lhs, const Size2D& rhs)
233{
234 return !(lhs == rhs);
235}
240{
241 size_t x;
242 size_t y;
243};
244
248PEAK_IPL_NO_DISCARD inline bool operator==(const Point2D& lhs, const Point2D& rhs)
249{
250 return lhs.x == rhs.x && lhs.y == rhs.y;
251}
252
256PEAK_IPL_NO_DISCARD inline bool operator!=(const Point2D& lhs, const Point2D& rhs)
257{
258 return !(lhs == rhs);
259}
260
265{
266 double x;
267 double y;
268};
269
276{
277 switch (entry)
278 {
280 return "Fast";
282 return "HighQuality";
284 return "Classic";
285 }
286
287 return "INVALID CONVERSION MODE VALUE";
288}
289
296{
297 switch (entry)
298 {
300 return "Invalid";
302 return "BayerGR8";
304 return "BayerGR10";
306 return "BayerGR12";
308 return "BayerRG8";
310 return "BayerRG10";
312 return "BayerRG12";
314 return "BayerGB8";
316 return "BayerGB10";
318 return "BayerGB12";
320 return "BayerBG8";
322 return "BayerBG10";
324 return "BayerBG12";
326 return "Mono8";
328 return "Mono10";
330 return "Mono12";
332 return "Mono16";
334 return "Confidence8";
336 return "Confidence16";
338 return "Coord3D_C8";
340 return "Coord3D_C16";
342 return "Coord3D_C32f";
344 return "Coord3D_ABC32f";
346 return "YUV420_8_YY_UV_SemiplanarIDS";
348 return "YUV420_8_YY_VU_SemiplanarIDS";
350 return "YUV422_8_UYVY";
352 return "RGB8";
354 return "RGB10";
356 return "RGB12";
358 return "BGR8";
360 return "BGR10";
362 return "BGR12";
364 return "RGBa8";
366 return "RGBa10";
368 return "RGBa12";
370 return "BGRa8";
372 return "BGRa10";
374 return "BGRa12";
376 return "BayerBG10p";
378 return "BayerBG12p";
380 return "BayerGB10p";
382 return "BayerGB12p";
384 return "BayerGR10p";
386 return "BayerGR12p";
388 return "BayerRG10p";
390 return "BayerRG12p";
392 return "Mono10p";
394 return "Mono12p";
396 return "RGB10p32";
398 return "BGR10p32";
400 return "BayerRG10g40IDS";
402 return "BayerGB10g40IDS";
404 return "BayerGR10g40IDS";
406 return "BayerBG10g40IDS";
408 return "BayerRG12g24IDS";
410 return "BayerGB12g24IDS";
412 return "BayerGR12g24IDS";
414 return "BayerBG12g24IDS";
416 return "Mono10g40IDS";
418 return "Mono12g24IDS";
419 }
420
421 return "INVALID PIXEL FORMAT VALUE";
422}
423
429PEAK_IPL_NO_DISCARD inline std::string ToString(Endianness entry)
430{
431 switch (entry)
432 {
434 return "Unknown";
436 return "LittleEndian";
438 return "BigEndian";
439 }
440
441 return "INVALID ENDIANNESS VALUE";
442}
443
449PEAK_IPL_NO_DISCARD inline std::string ToString(Orientation entry)
450{
451 switch (entry)
452 {
454 return "Horizontal";
456 return "Vertical";
457 }
458
459 return "INVALID ORIENTATION VALUE";
460}
461
462} /* namespace ipl */
463} /* namespace peak */
std::string ToString(ConversionMode entry)
Convert a ConversionMode to a string.
Definition peak_ipl_simple_types.hpp:275
InterpolationAlgorithm
Enum holding the possible interpolation algorithm.
Definition peak_ipl_simple_types.hpp:202
@ linear_exact
Bit-exact bilinear interpolation.
@ lanczos4
Lanczos interpolation over 8x8 neighborhood.
@ area
resampling using pixel area relation
@ nearest_exact
Bit-exact bicubic interpolation.
@ cubic
bicubic interpolation
@ linear
bilinear interpolation
@ nearest
nearest neighbor interpolation
bool operator!=(const Sharpness::SharpnessROI &lhs, const Sharpness::SharpnessROI &rhs)
Definition peak_ipl_sharpness.hpp:427
Endianness
Enum holding the possible endianness (the byte order).
Definition peak_ipl_simple_types.hpp:183
@ BigEndian
Big endian (higher bytes first)
@ LittleEndian
Little endian (lower bytes first)
@ Unknown
Unknown endianness.
Orientation
Enum holding the possible orientation.
Definition peak_ipl_simple_types.hpp:193
@ Vertical
Vertical orientation.
@ Horizontal
Horizontal orientation.
BayerPattern
Enum holding the possible bayer patterns.
Definition peak_ipl_simple_types.hpp:170
@ Bayer_BG
BayerBG pattern.
@ Bayer_RG
BayerRG pattern.
@ Unknown
Unknown pattern.
@ Bayer_GR
BayerGR pattern.
@ Bayer_GB
BayerGB pattern.
PixelFormatName
Enum holding the possible pixel format names.
Definition peak_ipl_simple_types.hpp:39
@ BayerRG12g24IDS
BayerRG 12-Bit packed 24bit grouped pixel format.
@ Coord3D_C8
3D coordinate C 8-Bit
@ RGBa10
RGBa 10-Bit pixel format.
@ RGB8
RGB 8-Bit pixel format.
@ Mono12p
Mono 10-Bit packed pixel format.
@ Mono12
Mono 12-Bit pixel format.
@ BGR10p32
BayerBG 10-Bit packed pixel format.
@ BayerGB10
BayerGB 10-Bit pixel format.
@ BayerRG12p
BayerRG 12-Bit packed pixel format.
@ BayerBG10
BayerBG 10-Bit pixel format.
@ RGBa8
RGBa 8-Bit pixel format.
@ Mono10g40IDS
Mono 10-Bit packed 40bit grouped pixel format.
@ BayerGR10g40IDS
BayerGR 10-Bit packed 40bit grouped pixel format.
@ BayerBG10p
BayerBG 10-Bit packed pixel format.
@ RGBa12
RGBa 12-Bit pixel format.
@ BayerGB12p
BayerGB 12-Bit packed pixel format.
@ BGRa12
BGRa 12-Bit pixel format.
@ BayerGR12
BayerGR 12-Bit pixel format.
@ Invalid
Invalid Pixel Format.
@ BayerRG10p
BayerRG 10-Bit packed pixel format.
@ BayerRG12
BayerRG 12-Bit pixel format.
@ BayerGR12p
BayerGR 12-Bit packed pixel format.
@ BayerGR8
BayerGR 8-Bit pixel format.
@ BayerBG12p
BayerBG 12-Bit packed pixel format.
@ BayerBG8
BayerBG 8-Bit pixel format.
@ Confidence16
Confidence 16-Bit.
@ Mono12g24IDS
Mono 12-Bit packed 24bit grouped pixel format.
@ BayerRG10
BayerRG 10-Bit pixel format.
@ BayerGB12
BayerGB 12-Bit pixel format.
@ BayerRG8
BayerRG 8-Bit pixel format.
@ BayerGR10p
BayerGR 10-Bit packed pixel format.
@ YUV422_8_UYVY
UYVY 4:2:2 8-bit.
@ YUV420_8_YY_VU_SemiplanarIDS
YUV 4:2:0 8-bit YY/VU Semiplanar.
@ BayerGB8
BayerGB 8-Bit pixel format.
@ BGR12
BGR 12-Bit pixel format.
@ Confidence8
Confidence 8-Bit.
@ RGB10
RGB 10-Bit pixel format.
@ BayerGR12g24IDS
BayerGR 12-Bit packed 24bit grouped pixel format.
@ YUV420_8_YY_UV_SemiplanarIDS
YUV 4:2:0 8-bit YY/UV Semiplanar.
@ BayerGR10
BayerGR 10-Bit pixel format.
@ Coord3D_C32f
3D coordinate C 32-Bit floating point
@ Mono16
Mono 12-Bit pixel format.
@ Mono10
Mono 10-Bit pixel format.
@ Mono8
Mono 8-Bit pixel format.
@ BGR10
BGR 10-Bit pixel format.
@ Coord3D_ABC32f
3D coordinates A, B and C 32-Bit floating point
@ RGB12
RGB 12-Bit pixel format.
@ BayerBG12
BayerBG 12-Bit pixel format.
@ BayerBG10g40IDS
BayerBG 10-Bit packed 40bit grouped pixel format.
@ BayerGB10p
BayerGB 10-Bit packed pixel format.
@ BGRa8
BGRa 8-Bit pixel format.
@ BGRa10
BGRa 10-Bit pixel format.
@ Coord3D_C16
3D coordinate C 16-Bit
@ BGR8
BGR 8-Bit pixel format.
@ BayerBG12g24IDS
BayerBG 12-Bit packed 24bit grouped pixel format.
@ Mono10p
Mono 10-Bit packed pixel format.
@ BayerRG10g40IDS
BayerRG 10-Bit packed 40bit grouped pixel format.
@ RGB10p32
BayerBG 10-Bit packed pixel format.
@ BayerGB10g40IDS
BayerGB 10-Bit packed 40bit grouped pixel format.
@ BayerGB12g24IDS
BayerGB 12-Bit packed 24bit grouped pixel format.
ConversionMode
Enum holding the possible conversion modes.
Definition peak_ipl_simple_types.hpp:29
@ HighQuality
High-Quality conversion mode.
@ Classic
Classic conversion mode.
@ Fast
Fast conversion mode.
bool operator==(const Sharpness::SharpnessROI &lhs, const Sharpness::SharpnessROI &rhs)
Definition peak_ipl_sharpness.hpp:421
The "peak::ipl" namespace contains the whole image processing library.
Definition peak_ipl_binning.hpp:23
@ PEAK_IPL_ORIENTATION_VERTICAL
Definition peak_ipl_backend.h:215
@ PEAK_IPL_ORIENTATION_HORIZONTAL
Definition peak_ipl_backend.h:214
@ PEAK_IPL_BAYER_PATTERN_BAYER_GR
Definition peak_ipl_backend.h:195
@ PEAK_IPL_BAYER_PATTERN_BAYER_BG
Definition peak_ipl_backend.h:198
@ PEAK_IPL_BAYER_PATTERN_BAYER_RG
Definition peak_ipl_backend.h:196
@ PEAK_IPL_BAYER_PATTERN_NONE
Definition peak_ipl_backend.h:194
@ PEAK_IPL_BAYER_PATTERN_UNKNOWN
Definition peak_ipl_backend.h:193
@ PEAK_IPL_BAYER_PATTERN_BAYER_GB
Definition peak_ipl_backend.h:197
@ PEAK_IPL_ENDIANNESS_LITTLE_ENDIAN
Definition peak_ipl_backend.h:206
@ PEAK_IPL_ENDIANNESS_UNKNOWN
Definition peak_ipl_backend.h:205
@ PEAK_IPL_ENDIANNESS_BIG_ENDIAN
Definition peak_ipl_backend.h:207
@ PEAK_IPL_PIXEL_FORMAT_COORD3D_C16
Definition peak_ipl_backend.h:102
@ PEAK_IPL_PIXEL_FORMAT_BAYER_GR_12_PACKED
Definition peak_ipl_backend.h:135
@ PEAK_IPL_PIXEL_FORMAT_COORD3D_C32F
Definition peak_ipl_backend.h:103
@ PEAK_IPL_PIXEL_FORMAT_CONFIDENCE_16
Definition peak_ipl_backend.h:99
@ PEAK_IPL_PIXEL_FORMAT_MONO_12_GROUPED_24_IDS
Definition peak_ipl_backend.h:186
@ PEAK_IPL_PIXEL_FORMAT_BGR_12
Definition peak_ipl_backend.h:118
@ PEAK_IPL_PIXEL_FORMAT_MONO_8
Definition peak_ipl_backend.h:93
@ PEAK_IPL_PIXEL_FORMAT_BAYER_BG_12
Definition peak_ipl_backend.h:91
@ PEAK_IPL_PIXEL_FORMAT_BAYER_GB_12_PACKED
Definition peak_ipl_backend.h:132
@ PEAK_IPL_PIXEL_FORMAT_BAYER_BG_10_GROUPED_40_IDS
Definition peak_ipl_backend.h:162
@ PEAK_IPL_PIXEL_FORMAT_RGB_10
Definition peak_ipl_backend.h:113
@ PEAK_IPL_PIXEL_FORMAT_BAYER_RG_12
Definition peak_ipl_backend.h:83
@ PEAK_IPL_PIXEL_FORMAT_RGB_10_PACKED_32
Definition peak_ipl_backend.h:143
@ PEAK_IPL_PIXEL_FORMAT_COORD3D_C8
Definition peak_ipl_backend.h:101
@ PEAK_IPL_PIXEL_FORMAT_BAYER_RG_10_GROUPED_40_IDS
Definition peak_ipl_backend.h:150
@ PEAK_IPL_PIXEL_FORMAT_BAYER_RG_12_PACKED
Definition peak_ipl_backend.h:138
@ PEAK_IPL_PIXEL_FORMAT_RGBA_8
Definition peak_ipl_backend.h:120
@ PEAK_IPL_PIXEL_FORMAT_RGB_12
Definition peak_ipl_backend.h:114
@ PEAK_IPL_PIXEL_FORMAT_YUV420_8_YY_VU_SemiplanarIDS
Definition peak_ipl_backend.h:108
@ PEAK_IPL_PIXEL_FORMAT_BAYER_GB_12_GROUPED_24_IDS
Definition peak_ipl_backend.h:170
@ PEAK_IPL_PIXEL_FORMAT_MONO_12
Definition peak_ipl_backend.h:95
@ PEAK_IPL_PIXEL_FORMAT_BAYER_BG_12_GROUPED_24_IDS
Definition peak_ipl_backend.h:178
@ PEAK_IPL_PIXEL_FORMAT_MONO_10
Definition peak_ipl_backend.h:94
@ PEAK_IPL_PIXEL_FORMAT_BAYER_GB_12
Definition peak_ipl_backend.h:87
@ PEAK_IPL_PIXEL_FORMAT_MONO_12_PACKED
Definition peak_ipl_backend.h:141
@ PEAK_IPL_PIXEL_FORMAT_BGR_10
Definition peak_ipl_backend.h:117
@ PEAK_IPL_PIXEL_FORMAT_BAYER_GB_10_PACKED
Definition peak_ipl_backend.h:131
@ PEAK_IPL_PIXEL_FORMAT_CONFIDENCE_8
Definition peak_ipl_backend.h:98
@ PEAK_IPL_PIXEL_FORMAT_BAYER_BG_10
Definition peak_ipl_backend.h:90
@ PEAK_IPL_PIXEL_FORMAT_BAYER_RG_8
Definition peak_ipl_backend.h:81
@ PEAK_IPL_PIXEL_FORMAT_BAYER_BG_12_PACKED
Definition peak_ipl_backend.h:129
@ PEAK_IPL_PIXEL_FORMAT_RGB_8
Definition peak_ipl_backend.h:112
@ PEAK_IPL_PIXEL_FORMAT_BAYER_GR_10
Definition peak_ipl_backend.h:78
@ PEAK_IPL_PIXEL_FORMAT_BAYER_RG_10_PACKED
Definition peak_ipl_backend.h:137
@ PEAK_IPL_PIXEL_FORMAT_BAYER_BG_10_PACKED
Definition peak_ipl_backend.h:128
@ PEAK_IPL_PIXEL_FORMAT_BAYER_GB_8
Definition peak_ipl_backend.h:85
@ PEAK_IPL_PIXEL_FORMAT_BAYER_GR_10_PACKED
Definition peak_ipl_backend.h:134
@ PEAK_IPL_PIXEL_FORMAT_BGR_10_PACKED_32
Definition peak_ipl_backend.h:145
@ PEAK_IPL_PIXEL_FORMAT_BAYER_RG_10
Definition peak_ipl_backend.h:82
@ PEAK_IPL_PIXEL_FORMAT_BAYER_GR_12
Definition peak_ipl_backend.h:79
@ PEAK_IPL_PIXEL_FORMAT_MONO_16
Definition peak_ipl_backend.h:96
@ PEAK_IPL_PIXEL_FORMAT_YUV422_8_UYVY
Definition peak_ipl_backend.h:110
@ PEAK_IPL_PIXEL_FORMAT_BGRA_12
Definition peak_ipl_backend.h:126
@ PEAK_IPL_PIXEL_FORMAT_BAYER_GB_10
Definition peak_ipl_backend.h:86
@ PEAK_IPL_PIXEL_FORMAT_BGR_8
Definition peak_ipl_backend.h:116
@ PEAK_IPL_PIXEL_FORMAT_BAYER_RG_12_GROUPED_24_IDS
Definition peak_ipl_backend.h:166
@ PEAK_IPL_PIXEL_FORMAT_INVALID
Definition peak_ipl_backend.h:75
@ PEAK_IPL_PIXEL_FORMAT_BAYER_BG_8
Definition peak_ipl_backend.h:89
@ PEAK_IPL_PIXEL_FORMAT_MONO_10_GROUPED_40_IDS
Definition peak_ipl_backend.h:182
@ PEAK_IPL_PIXEL_FORMAT_RGBA_12
Definition peak_ipl_backend.h:122
@ PEAK_IPL_PIXEL_FORMAT_BAYER_GB_10_GROUPED_40_IDS
Definition peak_ipl_backend.h:154
@ PEAK_IPL_PIXEL_FORMAT_BAYER_GR_12_GROUPED_24_IDS
Definition peak_ipl_backend.h:174
@ PEAK_IPL_PIXEL_FORMAT_RGBA_10
Definition peak_ipl_backend.h:121
@ PEAK_IPL_PIXEL_FORMAT_BGRA_8
Definition peak_ipl_backend.h:124
@ PEAK_IPL_PIXEL_FORMAT_BAYER_GR_10_GROUPED_40_IDS
Definition peak_ipl_backend.h:158
@ PEAK_IPL_PIXEL_FORMAT_BAYER_GR_8
Definition peak_ipl_backend.h:77
@ PEAK_IPL_PIXEL_FORMAT_BGRA_10
Definition peak_ipl_backend.h:125
@ PEAK_IPL_PIXEL_FORMAT_MONO_10_PACKED
Definition peak_ipl_backend.h:140
@ PEAK_IPL_PIXEL_FORMAT_COORD3D_ABC32F
Definition peak_ipl_backend.h:105
@ PEAK_IPL_PIXEL_FORMAT_YUV420_8_YY_UV_SemiplanarIDS
Definition peak_ipl_backend.h:107
@ PEAK_IPL_INTERPOLATION_LANCZOS4
Definition peak_ipl_backend.h:314
@ PEAK_IPL_INTERPOLATION_NEAREST
Definition peak_ipl_backend.h:310
@ PEAK_IPL_INTERPOLATION_LINEAR_EXACT
Definition peak_ipl_backend.h:315
@ PEAK_IPL_INTERPOLATION_CUBIC
Definition peak_ipl_backend.h:312
@ PEAK_IPL_INTERPOLATION_LINEAR
Definition peak_ipl_backend.h:311
@ PEAK_IPL_INTERPOLATION_NEAREST_EXACT
Definition peak_ipl_backend.h:316
@ PEAK_IPL_INTERPOLATION_AREA
Definition peak_ipl_backend.h:313
#define PEAK_IPL_NO_DISCARD
Definition peak_ipl_backend.h:26
@ PEAK_IPL_CONVERSION_MODE_FAST
Definition peak_ipl_backend.h:66
@ PEAK_IPL_CONVERSION_MODE_HIGH_QUALITY
Definition peak_ipl_backend.h:67
@ PEAK_IPL_CONVERSION_MODE_CLASSIC
Definition peak_ipl_backend.h:68
2D position in an image.
Definition peak_ipl_simple_types.hpp:240
size_t x
X position.
Definition peak_ipl_simple_types.hpp:241
size_t y
Y position.
Definition peak_ipl_simple_types.hpp:242
Scale Factors of an image.
Definition peak_ipl_simple_types.hpp:265
double y
Y factor.
Definition peak_ipl_simple_types.hpp:267
double x
X factor.
Definition peak_ipl_simple_types.hpp:266
2D size of an image.
Definition peak_ipl_simple_types.hpp:216
size_t height
Height of size.
Definition peak_ipl_simple_types.hpp:218
size_t width
Width of size.
Definition peak_ipl_simple_types.hpp:217