21#include <vigra/tinyvector.hxx>
22#include <vigra/numerictraits.hxx>
28template <
class T,
int SIZE>
33 for (
unsigned int i = 0;
i < SIZE; ++
i) {
39 for (
unsigned int i = 0;
i < SIZE; ++
i) {
54 for (
unsigned int i = 0;
i < SIZE; ++
i) {
62 for (
unsigned int i = 0;
i < SIZE; ++
i) {
70 for (
unsigned int i = 0;
i < SIZE; ++
i) {
78 for (
unsigned int i = 0;
i < SIZE; ++
i) {
86 for (
unsigned int i = 0;
i < SIZE; ++
i) {
95 for (
unsigned int i = 0;
i < SIZE; ++
i) {
102 for (
unsigned int i = 0;
i < SIZE; ++
i) {
112template <
class T,
int SIZE>
123 typedef typename NumericTraits<T>::isSigned
isSigned;
Fixed size vector with scalar multiplication and element-wise substraction and addition.
AlgTinyVector & operator=(const AlgTinyVector< T, SIZE > &t)
const AlgTinyVector operator+(const AlgTinyVector< T, SIZE > &t) const
const AlgTinyVector operator-(const AlgTinyVector< T, SIZE > &t) const
const T operator*(const AlgTinyVector< T, SIZE > &t) const
const T operator[](int i) const
AlgTinyVector(const AlgTinyVector< T, SIZE > &t)
AlgTinyVector(T t=NumericTraits< T >::zero())
AlgTinyVector & operator=(const TinyVector< T, SIZE > &t)
const AlgTinyVector operator*(const int t) const
const AlgTinyVector operator/(const int t) const
Implementation of fast vector type with support of linear algebra operations Copyright (C) 2009 Lukáš...
AlgTinyVector< T, SIZE > Type
static RealPromote toRealPromote(const AlgTinyVector< T, SIZE > &v)
static AlgTinyVector< T, SIZE > nonZero()
AlgTinyVector< typename NumericTraits< T >::RealPromote, SIZE > RealPromote
NumericTraits< T >::isIntegral isIntegral
static AlgTinyVector< T, SIZE > one()
static AlgTinyVector< T, SIZE > zero()
NumericTraits< T >::isSigned isSigned
static Promote toPromote(const AlgTinyVector< T, SIZE > &v)
AlgTinyVector< typename NumericTraits< T >::ComplexPromote, SIZE > ComplexPromote
AlgTinyVector< typename NumericTraits< T >::Promote, SIZE > Promote
std::vector< deghosting::BImagePtr > threshold(const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
Threshold function used for creating alpha masks for images.