Developer documentation
Version 3.0.3-105-gd3941f44
image_helpers.h File Reference
#include "datatype.h"
#include "apply.h"
#include "debug.h"

Go to the source code of this file.

Macros

#define MRTRIX_OP(ARG)
 
#define MRTRIX_OP(ARG)
 
#define MRTRIX_OP(ARG)
 

Macro Definition Documentation

◆ MRTRIX_OP [1/3]

#define MRTRIX_OP (   ARG)
Value:
template <class Derived> \
FORCE_INLINE void operator ARG (const Eigen::MatrixBase<Derived>& vec) { \
assert (vec.rows() == image.size(axis)); \
assert (vec.cols() == 1); \
for (image.index(axis) = 0; image.index(axis) < image.size(axis); ++image.index(axis)) \
image.value() ARG vec[image.index(axis)]; \
}
int axis

◆ MRTRIX_OP [2/3]

#define MRTRIX_OP (   ARG)
Value:
FORCE_INLINE void operator ARG (value_type val) { \
for (image.index(axis) = 0; image.index(axis) < image.size(axis); ++image.index(axis)) \
image.value() ARG val; \
}
MR::default_type value_type
Definition: typedefs.h:33
#define FORCE_INLINE
Definition: types.h:156

◆ MRTRIX_OP [3/3]

#define MRTRIX_OP (   ARG)
Value:
template <class OtherImageType> \
FORCE_INLINE void operator ARG (ConstRow<OtherImageType>&& other) { \
assert (image.size(axis) == other.image.size(other.axis)); \
for (image.index(axis) = 0, other.image.index(other.axis) = 0; \
image.index(axis) < image.size(axis); \
++image.index(axis), ++other.image.index(other.axis)) \
image.value() ARG typename OtherImageType::value_type (other.image.value()); \
}