|
Namespaces |
| namespace | visops |
Sketch creation |
| Sketch< bool > | visops::zeros (SketchSpace &space) |
| | Returns an all-zero Sketch<bool> in the specified sketch space.
|
| Sketch< bool > | visops::zeros (const SketchRoot &sketch) |
| | Returns an all-zero Sketch<bool> of same size as parent sketch.
|
| template<class T> |
| DualCoding::Sketch< T > | visops::copy (const Sketch< T > &other) |
| | Returns a copy of the sketch.
|
Min/max functions |
| template<class T> |
| Sketch< T > | visops::max (const Sketch< T > &src, const T value) |
| | Max of each pixel with a constant.
|
| template<class T> |
| Sketch< T > | visops::max (const Sketch< T > &src, const int value) |
| | Max of each pixel with a constant.
|
| template<class T> |
| Sketch< T > | visops::max (const Sketch< T > &arg1, const Sketch< T > &arg2) |
| | Pixel-wise max of two sketches.
|
| template<class T> |
| Sketch< T > | visops::min (const Sketch< T > &src, const T value) |
| | Min of each pixel with a constant.
|
| template<class T> |
| Sketch< T > | visops::min (const Sketch< T > &src, const int value) |
| | Min of each pixel with a constant.
|
| template<class T> |
| Sketch< T > | visops::min (const Sketch< T > &arg1, const Sketch< T > &arg2) |
| | Pixel-wise min of two sketches.
|
Miscellaneous functions |
| Sketch< bool > | visops::colormask (const Sketch< uchar > &src, const std::string colorname) |
| | Returns all the pixels of the named color.
|
| Sketch< bool > | visops::colormask (const Sketch< uchar > &src, int color_idx) |
| | Returns all the pixels with the specified color index.
|
| Sketch< bool > | visops::seedfill (const Sketch< bool > &borders, size_t index) |
| | Fills a region bounded by borders, starting at position given by index.
|
| Sketch< uchar > | visops::neighborSum (const Sketch< bool > &im, Connectivity_t connectivity=EightWayConnect) |
| | For each pixel, calculate the sum of its neighbors.
|
| Sketch< bool > | visops::fillin (const Sketch< bool > &im, int iter, uchar min_thresh, uchar max_thresh, bool remove_only=false) |
| | Produces a filled in image based on the Sketch, using 8-way connectivity.
|
Wavefront algorithms: distance, connected components |
| Sketch< usint > | visops::bdist (const Sketch< bool > &dest, const Sketch< bool > &obst, const int maxdist=100) |
| | Calculates the distance from each pixel in the image to the closest true pixel in dest, using the wavefront algorithm. Obstacles indicated by true values in pixels of obst.
|
| Sketch< usint > | visops::edist (const Sketch< bool > &dest) |
| | Euclidean distance to the nearest true pixel in dest.
|
| Sketch< usint > | visops::labelcc (const Sketch< bool > &source, int minarea=1) |
| | Connected components labeling using CMVision. Components numbered sequentially from 1.
|
| Sketch< usint > | visops::oldlabelcc (const Sketch< bool > &source, Connectivity_t connectivity=EightWayConnect) |
| | Old connected-components code written using pure sketch primitives.
|
| Sketch< usint > | visops::areacc (const Sketch< bool > &source, Connectivity_t connectivity=EightWayConnect) |
| | Each pixel of the result is the area of that connected component.
|
| Sketch< usint > | visops::areacc (const Sketch< usint > &labels) |
| | Each pixel of the result is the area of that connected component.
|
| Sketch< bool > | visops::minArea (const Sketch< bool > &sketch, int minval=5) |
| | Low-pass filter by eliminating small regions.
|
Conditional assignment |
| template<typename T> |
| Sketch< T > | visops::ifNot (const Sketch< T > &A, const Sketch< T > &B) |
| | Result holds non-zero pixels of A, with zero pixels filled in by B.
|
| template<typename T, typename Tv> |
| Sketch< T > | visops::maskedAssign (const Sketch< T > &sketch, const Sketch< bool > &mask, const Tv value) |
| | Returns a result where pixels of sketch for which mask is true have been replaced by value.
|
| template<typename T> |
| Sketch< T > | visops::maskedAssign (const Sketch< T > &sketch, const Sketch< bool > &mask, const Sketch< T > &value) |
| | Returns a result where pixels of sketch for which mask is true have been replaced by corresponding pixels of value.
|
Edge and symmetry detection |
| Sketch< bool > | visops::edge (const Sketch< bool > &im) |
| | Simple edge finding. Use SUSAN for more sophisticated edge detection.
|
| Sketch< bool > | visops::horsym (const Sketch< bool > &sketch, int minskip=3, int maxskip=80) |
| | Horizontal symmetry points. Returns non-zero values along points of horizontal symmetry, with each of these values equal to the distance to the symmetric points.
|
| Sketch< bool > | visops::versym (const Sketch< bool > &sketch, int minskip=3, int maxskip=80) |
| | Vertical symmetry points. Returns non-zero values along points of vertical symmetry, with each of these values equal to the distance to the symmetric points.
|
| Sketch< bool > | visops::skel (const Sketch< bool > &sketch) |
| | returns a skeleton of sketch, with pixel values corresponding to distance of symmetry
|
Sketch dissection |
| Sketch< bool > | visops::leftHalfPlane (const Shape< LineData > &ln) |
| | Half-plane functions fill in the half plane on one side of a line.
|
| Sketch< bool > | visops::rightHalfPlane (const Shape< LineData > &ln) |
| | Half-plane functions fill in the half plane on one side of a line.
|
| Sketch< bool > | visops::topHalfPlane (const Shape< LineData > &ln) |
| Sketch< bool > | visops::bottomHalfPlane (const Shape< LineData > &ln) |
| | Half-plane functions fill in the half plane on one side of a line.
|
| Sketch< bool > | visops::non_bounds (const Sketch< bool > &im, int offset) |
| | Returns a copy of im except that its pixels within offset from boundaries are removed.
|
Image manipulation primitives |
| Sketch< uchar > | visops::susan_edges (const Sketch< uchar > &im, int brightness) |
| | Runs the SUSAN edge detector on a grayscale image.
|
| Sketch< bool > | visops::susan_edge_points (const Sketch< uchar > &im, int brightness) |
| | Returns a Sketch<bool> indicating edge points found by SUSAN.
|
| Sketch< usint > | visops::convolve (const Sketch< uchar > &sketch, Sketch< uchar > &kernel, int i, int j, int width, int height) |
| | Convolves a kernel with an image.
|
| Sketch< usint > | visops::templateMatch (const Sketch< uchar > &sketch, Sketch< uchar > &kernel, int i, int j, int width, int height) |
| | Convolves a kernel with an image, normalizing the kernel to zero mean.
|
Enumerations |
| enum | visops::Connectivity_t { visops::FourWayConnect,
visops::EightWayConnect
} |
| | Connectivity used by oldlabelcc and neighborsum. More...
|