Macros
test_imgproc.cpp File Reference
#include <vector>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "ecvl/core.h"
#include "ecvl/core/datatype_existing_tuples.inc.h"

Go to the source code of this file.

Macros

#define ECVL_TUPLE(type, ...)
 
#define ECVL_TUPLE(type, ...)
 
#define ECVL_TUPLE(type, ...)
 

Macro Definition Documentation

◆ ECVL_TUPLE [1/3]

#define ECVL_TUPLE (   type,
  ... 
)
Value:
Image g1_##type = Image({ 1, 1, 1 }, DataType::type, "xyc", ColorType::GRAY); \
View<DataType::type> g1_##type##_v; \
Image g2_##type = Image({ 2, 2, 1 }, DataType::type, "xyc", ColorType::GRAY); \
View<DataType::type> g2_##type##_v; \
Image rgb2_##type = Image({ 2, 2, 3 }, DataType::type, "xyc", ColorType::RGB); \
View<DataType::type> rgb2_##type##_v; \
Image class.
Definition: image.h:72

Definition at line 68 of file test_imgproc.cpp.

◆ ECVL_TUPLE [2/3]

#define ECVL_TUPLE (   type,
  ... 
)
Value:
g1_##type##_v = g1_##type; \
g1_##type##_v({ 0,0,0 }) = 50; \
\
g2_##type##_v = g2_##type; \
g2_##type##_v({ 0,0,0 }) = 50; g2_##type##_v({ 1,0,0 }) = 32; \
g2_##type##_v({ 0,1,0 }) = 14; g2_##type##_v({ 1,1,0 }) = 60; \
\
rgb2_##type##_v = rgb2_##type; \
rgb2_##type##_v({ 0,0,0 }) = 50; rgb2_##type##_v({ 1,0,0 }) = 32; \
rgb2_##type##_v({ 0,1,0 }) = 14; rgb2_##type##_v({ 1,1,0 }) = 60; \
rgb2_##type##_v({ 0,0,1 }) = 50; rgb2_##type##_v({ 1,0,1 }) = 32; \
rgb2_##type##_v({ 0,1,1 }) = 14; rgb2_##type##_v({ 1,1,1 }) = 60; \
rgb2_##type##_v({ 0,0,2 }) = 50; rgb2_##type##_v({ 1,0,2 }) = 32; \
rgb2_##type##_v({ 0,1,2 }) = 14; rgb2_##type##_v({ 1,1,2 }) = 60; \

Definition at line 68 of file test_imgproc.cpp.

◆ ECVL_TUPLE [3/3]

#define ECVL_TUPLE (   type,
  ... 
)

Definition at line 68 of file test_imgproc.cpp.