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"
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
|
|
|
template<class T > |
DualCoding::Sketch< T > | copy (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 |
|
) |
|
#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; \
} \
\
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; \
} \
\
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.
Definition at line 197 of file Sketch.h.
Referenced by PolygonData::convexHull(), BrickData::extractBrick(), EllipseData::extractEllipses(), LineData::extractLine(), LineData::extractLines(), NaughtData::extractNaughts(), PyramidData::extractPyramid(), SphereData::extractSpheres(), AgentData::findCirclesManual(), BlobData::findCornersDiagonal(), BlobData::findCornersShapeFit(), SphereData::get_spheres(), LineData::houghExtractLines(), and LineData::houghTransform().
|