Macros
test_volproc.cpp File Reference
#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 g1_spacing_##type = Image({ 1, 1, 1, 1 }, DataType::type, "xyzt", ColorType::GRAY, {1, 2, 3, 4}); \
View<DataType::type> g1_spacing_##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 rgb2_spacing_##type = Image({ 2, 2, 3, 1 }, DataType::type, "xyzt", ColorType::RGB, {2, 4, 7, 1}); \
View<DataType::type> rgb2_spacing_##type##_v;
Image class.
Definition: image.h:72

Definition at line 81 of file test_volproc.cpp.

◆ ECVL_TUPLE [2/3]

#define ECVL_TUPLE (   type,
  ... 
)
Value:
g1_##type##_v = g1_##type; \
g1_##type##_v({ 0,0,0 }) = 50; \
\
g1_spacing_##type##_v = g1_spacing_##type; \
g1_spacing_##type##_v({ 0,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; \
\
rgb2_spacing_##type##_v = rgb2_spacing_##type; \
rgb2_spacing_##type##_v({ 0,0,0,0 }) = 50; rgb2_spacing_##type##_v({ 1,0,0,0 }) = 32; \
rgb2_spacing_##type##_v({ 0,1,0,0 }) = 14; rgb2_spacing_##type##_v({ 1,1,0,0 }) = 60; \
rgb2_spacing_##type##_v({ 0,0,1,0 }) = 50; rgb2_spacing_##type##_v({ 1,0,1,0 }) = 32; \
rgb2_spacing_##type##_v({ 0,1,1,0 }) = 14; rgb2_spacing_##type##_v({ 1,1,1,0 }) = 60; \
rgb2_spacing_##type##_v({ 0,0,2,0 }) = 50; rgb2_spacing_##type##_v({ 1,0,2,0 }) = 32; \
rgb2_spacing_##type##_v({ 0,1,2,0 }) = 14; rgb2_spacing_##type##_v({ 1,1,2,0 }) = 60;

Definition at line 81 of file test_volproc.cpp.

◆ ECVL_TUPLE [3/3]

#define ECVL_TUPLE (   type,
  ... 
)

Definition at line 81 of file test_volproc.cpp.