Sketch.h File Reference
Detailed Description
Templated class for an image-like Sketch.
- Author:
- neilh (Creator)
- Author
- dst
- Name
- tekkotsu-3_0
- Revision
- 1.20
- State
- Exp
- Date
- 2006/08/11 03:16:57
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
|
| | DualCoding::DEF_MATHOPS_H (bool, uchar, uchar) DEF_MATHOPS_H(bool |
| | non-member math operators
|
| usint | DualCoding::DEF_MATHOPS_H (bool, float, float) DEF_MATHOPS_H(uchar |
| | non-member math operators
|
| usint uchar | DualCoding::DEF_MATHOPS_H (uchar, uchar, uchar) DEF_MATHOPS_H(uchar |
| | non-member math operators
|
| usint uchar usint | DualCoding::DEF_MATHOPS_H (uchar, float, float) DEF_MATHOPS_H(usint |
| | non-member math operators
|
| usint uchar usint usint | DualCoding::DEF_MATHOPS_H (usint, uchar, usint) DEF_MATHOPS_H(usint |
| | non-member math operators
|
| usint uchar usint usint usint | DualCoding::DEF_MATHOPS_H (usint, float, float) DEF_MATHOPS_H(float |
| | non-member math operators
|
usint uchar usint usint usint
float | DualCoding::DEF_MATHOPS_H (float, uchar, float) DEF_MATHOPS_H(float |
| | non-member math operators
|
usint uchar usint usint usint
float float | DualCoding::DEF_MATHOPS_H (float, float, float) DEF_MATHOPS_INT_H(uchar) DEF_MATHOPS_INT_H(usint) 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
|
| | DualCoding::usint |
| | non-member math operators
|
| usint | DualCoding::bool |
| | non-member math operators
|
| usint uchar | DualCoding::usint |
| | non-member math operators
|
| usint uchar usint | DualCoding::bool |
| | non-member math operators
|
| usint uchar usint usint | DualCoding::usint |
| | non-member math operators
|
| usint uchar usint usint usint | DualCoding::bool |
| | non-member math operators
|
usint uchar usint usint usint
float | DualCoding::usint |
| | non-member math operators
|
| #define | DEFINE_LOGICAL_OPERATOR(_Op) |
| | non-member logical operators
|
Sketch creation |
| template<class T> |
| DualCoding::Sketch< T > | visops::copy (const Sketch< T > &other) |
| | Returns a copy of the sketch.
|
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); |
Functions |
| | DualCoding::DEFINE_LOGICAL_OPERATOR (==) DEFINE_LOGICAL_OPERATOR(! |
| Sketch< bool > & | DualCoding::operator|= (Sketch< bool > &arg1, Sketch< bool > const &arg2) |
| template<class A, class B> |
| void | DualCoding::copyPixels (Sketch< A > &dest, const Sketch< B > &src) |
| | utility function used by type conversion operators
|
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 |
|
) |
|
| #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 401 of file Sketch.h.
| #define GET_SKETCH |
( |
name, |
|
|
T, |
|
|
space |
|
) |
Sketch<T> name(#name,space); |
| #define NEW_SKETCH |
( |
name, |
|
|
T, |
|
|
value |
|
) |
Sketch<T> name(value,#name,true); |
| #define NEW_SKETCH_N |
( |
name, |
|
|
T, |
|
|
value |
|
) |
Sketch<T> name(value,#name,false); |
Definition at line 194 of file Sketch.h.
Referenced by visops::areacc(), visops::bottomHalfPlane(), PolygonData::convexHull(), BrickData::extractBrick(), EllipseData::extractEllipses(), LineData::extractLine(), LineData::extractLines(), PyramidData::extractPyramid(), SphereData::extractSpheres(), BlobData::findCornersDiagonal(), BlobData::findCornersShapeFit(), MapBuilder::getCamEllipses(), MapBuilder::getCamLines(), MapBuilder::getCamPolygons(), MapBuilder::getCamSpheres(), MapBuilder::getCamWalls(), visops::horsym(), LineData::houghTransform(), visops::leftHalfPlane(), visops::minArea(), visops::non_bounds(), PolygonData::render(), visops::rightHalfPlane(), visops::seedfill(), visops::skel(), LineData::splitLine(), visops::topHalfPlane(), and visops::versym().
|