Here we represent tensors as an image set with 4 images indexed as: More...
#include <Image/TensorOps.H>
Public Member Functions | |
TensorField (Dims dims, InitPolicy policy) | |
TensorField | operator+ (const TensorField &_tf) const |
TensorField & | operator+= (const TensorField &tf) |
TensorField & | operator/= (const float s) |
void | setVal (const uint i, float val) |
void | setVal (const uint i, const uint j, float val) |
void | setMax (const TensorField &tf) |
Get another tensor field, and set this tensor field to the max between the two. | |
Public Attributes | |
Image< float > | t1 |
Image< float > | t2 |
Image< float > | t3 |
Image< float > | t4 |
Here we represent tensors as an image set with 4 images indexed as:
Definition at line 59 of file TensorOps.H.
void TensorField::setMax | ( | const TensorField & | tf | ) | [inline] |
Get another tensor field, and set this tensor field to the max between the two.
Definition at line 127 of file TensorOps.H.
References ASSERT, Image< T >::getVal(), Image< T >::setVal(), Image< T >::size(), sqrt(), and trace().