Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Sketch.h File Reference

Templated class for an image-like Sketch. More...

#include <valarray>
#include <string>
#include "SketchTypes.h"
#include "SketchRoot.h"
#include "SketchData.h"
#include "SketchIndices.h"
#include "SketchSpace.h"
Include dependency graph for Sketch.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Sketch< T >
 Smart pointers for referencing. More...

Namespaces

namespace  DualCoding
 

Dual coding vision representations (Sketches and Shapes).


namespace  visops
 

Visual routines operators, used in DualCoding.


Defines

#define NEW_SKETCH_N(name, T, value)   DualCoding::Sketch<T> name(value,#name,false);
#define NEW_SKETCH(name, T, value)   DualCoding::Sketch<T> name(value,#name,true);
#define GET_SKETCH(name, T, space)   DualCoding::Sketch<T> name(#name,space);
#define DEF_MATHOPS_INT_H(_T1)
#define DEF_MATHOP_INT_H(_Op, _T1)   Sketch<_T1> operator _Op (const Sketch<_T1>& lhs, const int value);
#define DEF_MATHBOOL_INT_H(_Op)   Sketch<uchar> operator _Op (const Sketch<bool>& lhs, const int value);

#define DEFINE_LOGICAL_OPERATOR(_Op)
 non-member logical operators

Functions

 DEFINE_LOGICAL_OPERATOR (==) DEFINE_LOGICAL_OPERATOR(!
Sketch< bool > & operator|= (Sketch< bool > &arg1, Sketch< bool > const &arg2)
Sketch< bool > & operator^= (Sketch< bool > &arg1, Sketch< bool > const &arg2)
template<class A , class B >
void copyPixels (Sketch< A > &dest, const Sketch< B > &src)
 utility function used by type conversion operators
Sketch creation

template<class T >
DualCoding::Sketch< Tcopy (const Sketch< T > &other)
 Returns a deep copy of the sketch: actually copies the pixels.



#define DEF_MATHOPS_H(_T1, _T2, _Result)
 non-member math operators
#define DEF_MATHOP_H(_Op, _T1, _T2, _Result)
 non-member math operators
 DEF_MATHOPS_H (bool, uchar, uchar) DEF_MATHOPS_H(bool
 non-member math operators
uint DEF_MATHOPS_H (bool, float, float) DEF_MATHOPS_H(uchar
 non-member math operators
uint uchar DEF_MATHOPS_H (uchar, uchar, uchar) DEF_MATHOPS_H(uchar
 non-member math operators
uint uchar uint DEF_MATHOPS_H (uchar, float, float) DEF_MATHOPS_H(usint
 non-member math operators
uint uchar uint usint DEF_MATHOPS_H (usint, uchar, usint) DEF_MATHOPS_H(usint
 non-member math operators
uint uchar uint usint usint DEF_MATHOPS_H (usint, float, float) DEF_MATHOPS_H(uint
 non-member math operators
uint uchar uint usint usint uint DEF_MATHOPS_H (uint, uchar, uint) DEF_MATHOPS_H(uint
 non-member math operators
uint uchar uint usint usint
uint uint 
DEF_MATHOPS_H (uint, float, float) DEF_MATHOPS_H(float
 non-member math operators
uint uchar uint usint usint
uint uint float 
DEF_MATHOPS_H (float, uchar, float) DEF_MATHOPS_H(float
 non-member math operators
uint uchar uint usint usint
uint uint float float 
DEF_MATHOPS_H (float, float, float) DEF_MATHOPS_INT_H(uchar) DEF_MATHOPS_INT_H(usint) DEF_MATHOPS_INT_H(uint) DEF_MATHOPS_INT_H(float) DEF_MATHBOOL_INT_H(+) DEF_MATHBOOL_INT_H(-) DEF_MATHBOOL_INT_H(*) DEF_MATHBOOL_INT_H(/) template< class T > Sketch< T > &Sketch< T >
 non-member math operators

Detailed Description

Templated class for an image-like Sketch.

Author:
neilh (Creator)

Definition in file Sketch.h.


Define Documentation

#define DEF_MATHBOOL_INT_H ( _Op   )     Sketch<uchar> operator _Op (const Sketch<bool>& lhs, const int value);
#define DEF_MATHOP_H ( _Op,
_T1,
_T2,
_Result   ) 
Value:
Sketch<_Result> operator _Op (const Sketch<_T1> &lhs, const Sketch<_T2> &rhs); \
Sketch<_Result> operator _Op (const Sketch<_T1> &lhs, const _T2 value);

non-member math operators

Definition at line 332 of file Sketch.h.

#define DEF_MATHOP_INT_H ( _Op,
_T1   )     Sketch<_T1> operator _Op (const Sketch<_T1>& lhs, const int value);
#define DEF_MATHOPS_H ( _T1,
_T2,
_Result   ) 
Value:
DEF_MATHOP_H( +, _T1, _T2, _Result ) \
  DEF_MATHOP_H( -, _T1, _T2, _Result ) \
  DEF_MATHOP_H( *, _T1, _T2, _Result ) \
  DEF_MATHOP_H( /, _T1, _T2, _Result )

non-member math operators

Definition at line 326 of file Sketch.h.

#define DEF_MATHOPS_INT_H ( _T1   ) 
Value:
DEF_MATHOP_INT_H( +, _T1) \
  DEF_MATHOP_INT_H( -, _T1) \
  DEF_MATHOP_INT_H( *, _T1) \
  DEF_MATHOP_INT_H( /, _T1)

Referenced by DualCoding::DEF_MATHOPS_H().

#define DEFINE_LOGICAL_OPERATOR ( _Op   ) 
Value:
template <class T>                     \
Sketch<bool> operator _Op (const Sketch<T>& lhs, const Sketch<T>& rhs) {             \
  Sketch<bool> result(lhs->getName() + #_Op + rhs->getName(), lhs);                  \
    *(result.pixels) = *(lhs.pixels) _Op *(rhs.pixels);                  \
    return result;                                                                   \
}                        \
/* continued... */                     \
template <class T>                     \
Sketch<bool> operator _Op (const Sketch<T>& lhs, const T value) {        \
  Sketch<bool> result(lhs->getName() + #_Op "scalar", lhs);                          \
    *(result.pixels) = *(lhs.pixels) _Op value;              \
    return result;                     \
}                        \
/* continued... */                     \
template <class T>                     \
Sketch<bool> operator _Op (const Sketch<T>& lhs, const int value) {        \
  Sketch<bool> result(lhs->getName() + #_Op "scalar", lhs);                          \
    *(result.pixels) = *(lhs.pixels) _Op T(value);             \
    return result;                     \
}

non-member logical operators

Definition at line 412 of file Sketch.h.

#define GET_SKETCH ( name,
T,
space   )     DualCoding::Sketch<T> name(#name,space);

Definition at line 199 of file Sketch.h.


DualCoding 5.1CVS
Generated Mon May 9 04:56:29 2016 by Doxygen 1.6.3