Macros
test_core.cpp File Reference
#include <gtest/gtest.h>
#include "ecvl/core.h"
#include "ecvl/core/datatype_existing_tuples.inc.h"
#include "ecvl/core/datatype_existing_tuples_signed.inc.h"

Go to the source code of this file.

Macros

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

Macro Definition Documentation

◆ ECVL_TUPLE [1/4]

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

Definition at line 342 of file test_core.cpp.

◆ ECVL_TUPLE [2/4]

#define ECVL_TUPLE (   type,
  ... 
)
Value:
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;

Definition at line 342 of file test_core.cpp.

◆ ECVL_TUPLE [3/4]

#define ECVL_TUPLE (   type,
  ... 
)

Definition at line 342 of file test_core.cpp.

◆ ECVL_TUPLE [4/4]

#define ECVL_TUPLE (   type,
  ... 
)
Value:
TEST_F(CoreArithmetics, Neg##type) \
{ \
g2_##type.Neg(); \
EXPECT_TRUE(g2_##type##_v({ 0,0,0 }) == -50); EXPECT_TRUE(g2_##type##_v({ 1,0,0 }) == -32); \
EXPECT_TRUE(g2_##type##_v({ 0,1,0 }) == -14); EXPECT_TRUE(g2_##type##_v({ 1,1,0 }) == -60); \
}
void Neg(const Image &src, Image &dst, DataType dst_type=DataType::none, bool saturate=true)
Negation of an Image.
Definition: arithmetic.h:146

Definition at line 342 of file test_core.cpp.