Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

Sketch.h File Reference


Detailed Description

Templated class for an image-like Sketch.

Author:
neilh (Creator)
Author
dst
Name
tekkotsu-4_0
Revision
1.23
State
Exp
Date
2007/08/25 01:49:15

Definition in file Sketch.h.

#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.

Namespaces

namespace  DualCoding
namespace  visops

Classes

class  Sketch
 Smart pointers for referencing. More...
#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(uint
 non-member math operators
uint uchar uint uint DEF_MATHOPS_H (uint, uchar, uint) DEF_MATHOPS_H(uint
 non-member math operators
uint uchar uint uint uint DEF_MATHOPS_H (uint, float, float) DEF_MATHOPS_H(float
 non-member math operators
uint uchar uint uint uint float DEF_MATHOPS_H (float, uchar, float) DEF_MATHOPS_H(float
 non-member math operators
uint uchar uint uint uint
float float 
DEF_MATHOPS_H (float, float, float) DEF_MATHOPS_INT_H(uchar) 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

Defines

#define NEW_SKETCH_N(name, T, value)   Sketch<T> name(value,#name,false);
#define NEW_SKETCH(name, T, value)   Sketch<T> name(value,#name,true);
#define GET_SKETCH(name, T, space)   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< T > copy (const Sketch< T > &other)
 Returns a deep copy of the sketch: actually copies the pixels.


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 327 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 321 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 401 of file Sketch.h.

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

Definition at line 196 of file Sketch.h.


DualCoding 4.0
Generated Thu Nov 22 00:53:34 2007 by Doxygen 1.5.4