#include <qgarlib/PruneSmallCCBinaryImage.H>
Inheritance diagram for qgar::PruneSmallCCBinaryImage:

This class provides a fast method to prune small connected components of a binary image, without actually constructing any component. For advanced operations on connected components, see class qgar::ConnectedComponents.
This class is based on the method described in [Jain et al, 1995].
Definition at line 72 of file PruneSmallCCBinaryImage.H.
Public Types | |
Types | |
| typedef T | value_type |
| Type of the elements stored in the pixel map. | |
| typedef value_type & | reference |
| Reference to qgar::GenImage::value_type. | |
| typedef const value_type & | const_reference |
| Constant reference to qgar::GenImage::value_type. | |
| typedef value_type * | pointer |
| Pointer to qgar::GenImage::value_type. | |
| typedef const value_type * | const_pointer |
| Constant pointer to qgar::GenImage::value_type. | |
Public Member Functions | |
| PruneSmallCCBinaryImage (const BinaryImage img, int size) | |
| Constructor. | |
Access to image characteristics | |
| int | width () const |
| Get the image width. | |
| int | height () const |
| Get the image height. | |
| int | bytesPerPixel () const |
| Get the number of bytes per pixel. | |
Access to pixel values | |
| value_type | pixel (unsigned int aX, unsigned int aY) const |
| Get a pixel value. | |
| void | row (unsigned int aRowIdx, pointer aRow) const |
| Get a row of pixels. | |
| void | column (unsigned int aColIdx, pointer aCol) const |
| Get a column of pixels. | |
Access to direct transformations of the pixel map | |
| pointer | pPixel (unsigned int aRowIdx, unsigned int aColIdx) const |
| Get a pointer on a given pixel of the image. | |
| pointer | pRow (unsigned int aRowIdx) const |
| Get a pointer on a row of pixels. | |
| pointer | pColumn (unsigned int aColIdx) const |
| Get a pointer on a column of pixels. | |
| pointer | pPixMap () const |
| Get the pointer to the pixel map. | |
Set pixel values | |
| void | setPixel (unsigned int aX, unsigned int aY, value_type aPixVal) |
| Set a pixel value. | |
| void | setRow (unsigned int aRowIdx, const_pointer const aRow) |
| Set a given row of pixels. | |
| void | setColumn (unsigned int aColIdx, const_pointer const aCol) |
| Set a given column of pixels. | |
Draw in the pixel map | |
| void | draw (const Segment &aSeg, value_type aPixVal=(value_type) 1) |
| Draw a segment in the pixel map. | |
Copy | |
| GenImage | shallowCopy () |
| Shallow copy: The pixel map of the current image is not duplicated. | |
Operators | |
| |
| template<template< class > class OtherCheckPolicy> | |
| GenImage< value_type, GenImage_NoCheck > | operator+ (const GenImage< value_type, OtherCheckPolicy > &anImg) const |
| Same as function qgar::GenImage::plus. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage & | operator+= (const GenImage< value_type, OtherCheckPolicy > &anImg) |
| Same as function qgar::GenImage::plusEqual. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage< value_type, GenImage_NoCheck > | operator- (const GenImage< value_type, OtherCheckPolicy > &anImg) const |
| Same as function qgar::GenImage::minus. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage & | operator-= (const GenImage< value_type, OtherCheckPolicy > &anImg) |
| Same as function qgar::GenImage::minusEqual. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage< value_type, GenImage_NoCheck > | operator * (const GenImage< value_type, OtherCheckPolicy > &anImg) const |
| Same as function qgar::GenImage::times. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage & | operator *= (const GenImage< value_type, OtherCheckPolicy > &anImg) |
| Same as function qgar::GenImage::timesEqual. | |
Functional operators | |
| |
| template<template< class > class OtherCheckPolicy> | |
| GenImage< value_type, GenImage_NoCheck > | plus (const GenImage< value_type, OtherCheckPolicy > &anImg) const |
| Add each pixel of the given image to the corresponding pixel of the current image and store each result in a new pixel map. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage & | plusEqual (const GenImage< value_type, OtherCheckPolicy > &anImg) throw (QgarErrorDomain) |
| Add a given image to the current image. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage< value_type, GenImage_NoCheck > | minus (const GenImage< value_type, OtherCheckPolicy > &anImg) const |
| Subtract each pixel of the given image to the corresponding pixel of the current image and store each result in a new pixel map. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage & | minusEqual (const GenImage< value_type, OtherCheckPolicy > &anImg) throw (QgarErrorDomain) |
| Subtract a given image to the current image. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage< value_type, GenImage_NoCheck > | times (const GenImage< value_type, OtherCheckPolicy > &anImg) const |
| Multiply each pixel of the given image to the corresponding pixel of the current image and store each result in a new pixel map. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage & | timesEqual (const GenImage< value_type, OtherCheckPolicy > &anImg) throw (QgarErrorDomain) |
| Multiply a given image by the current image. | |
File storage | |
| void | save (AbstractPbmPlusFile &aPbmPlusFile) const |
| Store current image into a PBM+ file. | |
Border mirroring | |
| int | borderRows (int aRowIdx) const |
| Mirror border rows for convolutions. | |
| int | borderCols (int aColIdx) const |
| Mirror border columns for convolutions. | |
Access to image characteristics | |
| int | width () const |
| Get the image width. | |
| int | height () const |
| Get the image height. | |
| int | bytesPerPixel () const |
| Get the number of bytes per pixel. | |
Access to pixel values | |
| value_type | pixel (unsigned int aX, unsigned int aY) const |
| Get a pixel value. | |
| void | row (unsigned int aRowIdx, pointer aRow) const |
| Get a row of pixels. | |
| void | column (unsigned int aColIdx, pointer aCol) const |
| Get a column of pixels. | |
Access to direct transformations of the pixel map | |
| pointer | pPixel (unsigned int aRowIdx, unsigned int aColIdx) const |
| Get a pointer on a given pixel of the image. | |
| pointer | pRow (unsigned int aRowIdx) const |
| Get a pointer on a row of pixels. | |
| pointer | pColumn (unsigned int aColIdx) const |
| Get a pointer on a column of pixels. | |
| pointer | pPixMap () const |
| Get the pointer to the pixel map. | |
Set pixel values | |
| void | setPixel (unsigned int aX, unsigned int aY, value_type aPixVal) |
| Set a pixel value. | |
| void | setRow (unsigned int aRowIdx, const_pointer const aRow) |
| Set a given row of pixels. | |
| void | setColumn (unsigned int aColIdx, const_pointer const aCol) |
| Set a given column of pixels. | |
Draw in the pixel map | |
| void | draw (const Segment &aSeg, value_type aPixVal=(value_type) 1) |
| Draw a segment in the pixel map. | |
Copy | |
| GenImage | shallowCopy () |
| Shallow copy: The pixel map of the current image is not duplicated. | |
Operators | |
| |
| template<template< class > class OtherCheckPolicy> | |
| GenImage< value_type, GenImage_NoCheck > | operator+ (const GenImage< value_type, OtherCheckPolicy > &anImg) const |
| Same as function qgar::GenImage::plus. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage & | operator+= (const GenImage< value_type, OtherCheckPolicy > &anImg) |
| Same as function qgar::GenImage::plusEqual. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage< value_type, GenImage_NoCheck > | operator- (const GenImage< value_type, OtherCheckPolicy > &anImg) const |
| Same as function qgar::GenImage::minus. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage & | operator-= (const GenImage< value_type, OtherCheckPolicy > &anImg) |
| Same as function qgar::GenImage::minusEqual. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage< value_type, GenImage_NoCheck > | operator * (const GenImage< value_type, OtherCheckPolicy > &anImg) const |
| Same as function qgar::GenImage::times. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage & | operator *= (const GenImage< value_type, OtherCheckPolicy > &anImg) |
| Same as function qgar::GenImage::timesEqual. | |
Functional operators | |
| |
| template<template< class > class OtherCheckPolicy> | |
| GenImage< value_type, GenImage_NoCheck > | plus (const GenImage< value_type, OtherCheckPolicy > &anImg) const |
| Add each pixel of the given image to the corresponding pixel of the current image and store each result in a new pixel map. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage & | plusEqual (const GenImage< value_type, OtherCheckPolicy > &anImg) throw (QgarErrorDomain) |
| Add a given image to the current image. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage< value_type, GenImage_NoCheck > | minus (const GenImage< value_type, OtherCheckPolicy > &anImg) const |
| Subtract each pixel of the given image to the corresponding pixel of the current image and store each result in a new pixel map. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage & | minusEqual (const GenImage< value_type, OtherCheckPolicy > &anImg) throw (QgarErrorDomain) |
| Subtract a given image to the current image. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage< value_type, GenImage_NoCheck > | times (const GenImage< value_type, OtherCheckPolicy > &anImg) const |
| Multiply each pixel of the given image to the corresponding pixel of the current image and store each result in a new pixel map. | |
| template<template< class > class OtherCheckPolicy> | |
| GenImage & | timesEqual (const GenImage< value_type, OtherCheckPolicy > &anImg) throw (QgarErrorDomain) |
| Multiply a given image by the current image. | |
File storage | |
| void | save (AbstractPbmPlusFile &aPbmPlusFile) const |
| Store current image into a PBM+ file. | |
Border mirroring | |
| int | borderRows (int aRowIdx) const |
| Mirror border rows for convolutions. | |
| int | borderCols (int aColIdx) const |
| Mirror border columns for convolutions. | |
Protected Member Functions | |
| void | processPixel (int i, int j) |
| Process a black pixel. | |
| int | createNewEntry (int i, int j) |
| Create a new component entry. | |
| void | attachPixel (int i, int j, int entry) |
| Attach a pixel to an existing entry. | |
| void | attachPixelTwoEntries (int i, int j, int e1, int e2) |
| Attach a pixel to existing entries and mark these entries as unificable. | |
| void | attachPixelThreeEntries (int i, int j, int e1, int e2, int e3) |
| Attach a pixel to existing entries and mark these entries as unificable. | |
| void | endOfLineProcess (int j) |
| Process executed after an end of line. | |
| void | addEquivEntries (int e1, int e2) |
| Add 2 entries in the equivalence table. | |
| void | unification () |
| Unify entries matching the same connected component. | |
| void | searchAndRemoveSmallComponents (int j) |
| Search small connected components and remove them from the image. | |
| void | removeComponent (int x, int y) |
| Remove a connected component recursively, by starting from one of its points. | |
| bool | isNeighbor (int i, int j, int *a, int *b) |
| Return true if it exists a black neighbor connected to the argument point. | |
Auxiliaries | |
| void | copyBox (const GenImage< value_type, CheckPolicy > &anImg, unsigned int aXTopLeft, unsigned int aYTopLeft, unsigned int aXBottomRight, unsigned int aYBottomRight, value_type aPixVal=static_cast< value_type >(0)) |
| Copy a rectangular area of the given image into the current image. | |
Auxiliaries | |
| void | copyBox (const GenImage< value_type, CheckPolicy > &anImg, unsigned int aXTopLeft, unsigned int aYTopLeft, unsigned int aXBottomRight, unsigned int aYBottomRight, value_type aPixVal=static_cast< value_type >(0)) |
| Copy a rectangular area of the given image into the current image. | |
Protected Attributes | |
| std::vector< ComponentEntry > | _theEntries |
| std::list< int > | _unusedEntries |
| std::list< std::set< int > > | _equivTable |
| int * | _lastRow |
| int * | _curRow |
| int | _size |
Representation of an image | |
| unsigned int | _bytesPerPixel |
| Number of bytes per pixel. | |
| int * | _pRefCnt |
| Reference counter. | |
| int | _width |
| Image width. | |
| int | _height |
| Image height. | |
| pointer | _pPixMap |
| Pointer to the pixel map, organized as consecutive rows. | |
Representation of an image | |
| unsigned int | _bytesPerPixel |
| Number of bytes per pixel. | |
| int * | _pRefCnt |
| Reference counter. | |
| int | _width |
| Image width. | |
| int | _height |
| Image height. | |
| pointer | _pPixMap |
| Pointer to the pixel map, organized as consecutive rows. | |
Classes | |
| class | ComponentEntry |
|
|||||
|
|||||
|
|||||
|
|||||
|
|||||
|
||||||||||||
|
Constructor.
Definition at line 80 of file PruneSmallCCBinaryImage.C. References _curRow, _lastRow, endOfLineProcess(), qgar::GenImage< T, CheckPolicy >::height(), qgar::GenImage< T, CheckPolicy >::pixel(), processPixel(), qgar::PRUNESMALLCC_BLACK, qgar::PRUNESMALLCC_NOCOMP, and qgar::GenImage< T, CheckPolicy >::width(). |
|
||||||||||||
|
Add 2 entries in the equivalence table.
Definition at line 403 of file PruneSmallCCBinaryImage.C. References _equivTable. Referenced by attachPixelThreeEntries(), and attachPixelTwoEntries(). |
|
||||||||||||||||
|
Attach a pixel to an existing entry.
Definition at line 229 of file PruneSmallCCBinaryImage.C. References _curRow, and _theEntries. Referenced by attachPixelThreeEntries(), attachPixelTwoEntries(), and processPixel(). |
|
||||||||||||||||||||||||
|
Attach a pixel to existing entries and mark these entries as unificable.
Definition at line 254 of file PruneSmallCCBinaryImage.C. References addEquivEntries(), attachPixel(), and attachPixelTwoEntries(). Referenced by processPixel(). |
|
||||||||||||||||||||
|
Attach a pixel to existing entries and mark these entries as unificable.
Definition at line 238 of file PruneSmallCCBinaryImage.C. References addEquivEntries(), and attachPixel(). Referenced by attachPixelThreeEntries(), and processPixel(). |
|
||||||||||
|
Mirror border columns for convolutions.
Definition at line 1052 of file GenImage.TCC. |
|
||||||||||
|
Mirror border rows for convolutions.
Definition at line 1036 of file GenImage.TCC. |
|
|||||||||
|
Get the number of bytes per pixel.
Definition at line 369 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::_bytesPerPixel. |
|
||||||||||||||||
|
Get a column of pixels.
|
|
||||||||||||||||||||||||||||||||
|
Copy a rectangular area of the given image into the current image. The sides of the rectangle are parallel to the coordinate axis.
Definition at line 1074 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::_pPixMap, qgar::GenImage< T, CheckPolicy >::height(), qgar::GenImage< T, CheckPolicy >::pPixMap(), qgar::qgFill(), and qgar::GenImage< T, CheckPolicy >::width(). Referenced by qgar::GenImage< T, CheckPolicy >::GenImage(). |
|
||||||||||||
|
Create a new component entry.
Definition at line 206 of file PruneSmallCCBinaryImage.C. References _theEntries, and _unusedEntries. Referenced by processPixel(). |
|
||||||||||||||||
|
Draw a segment in the pixel map. The segment pixels are set using Bresenham's algorithm. See W.M. Newman and R.F. Sproull, Principles of Interactive Computer Graphics, pp. 25-26.
Definition at line 535 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::setPixel(), qgar::AbstractGenPrimitive< T >::source(), qgar::AbstractGenPrimitive< T >::target(), qgar::GenPoint< T >::x(), and qgar::GenPoint< T >::y(). |
|
|
Process executed after an end of line.
Definition at line 310 of file PruneSmallCCBinaryImage.C. References _curRow, _lastRow, searchAndRemoveSmallComponents(), and unification(). Referenced by PruneSmallCCBinaryImage(). |
|
|||||||||
|
||||||||||||||||||||
|
Return true if it exists a black neighbor connected to the argument point.
Definition at line 508 of file PruneSmallCCBinaryImage.C. References qgar::GenImage< T, CheckPolicy >::height(), qgar::GenImage< T, CheckPolicy >::pixel(), qgar::PRUNESMALLCC_BLACK, and qgar::GenImage< T, CheckPolicy >::width(). Referenced by removeComponent(). |
|
||||||||||||||
|
Subtract each pixel of the given image to the corresponding pixel of the current image and store each result in a new pixel map.
Definition at line 867 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::GenImage(). Referenced by qgar::GenImage< T, CheckPolicy >::operator-(). |
|
||||||||||||||
|
Subtract a given image to the current image.
Definition at line 877 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::height(), qgar::GenImage< T, CheckPolicy >::pPixMap(), and qgar::GenImage< T, CheckPolicy >::width(). Referenced by qgar::GenImage< T, CheckPolicy >::operator-=(). |
|
||||||||||||||
|
Same as function qgar::GenImage::times.
Definition at line 926 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::times(). |
|
||||||||||||||
|
Same as function qgar::GenImage::timesEqual.
Definition at line 937 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::timesEqual(). |
|
||||||||||||||
|
Same as function qgar::GenImage::plus.
Definition at line 767 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::plus(). |
|
||||||||||||||
|
Same as function qgar::GenImage::plusEqual.
Definition at line 778 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::plusEqual(). |
|
||||||||||||||
|
Same as function qgar::GenImage::minus.
Definition at line 846 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::minus(). |
|
||||||||||||||
|
Same as function qgar::GenImage::minusEqual.
Definition at line 857 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::minusEqual(). |
|
||||||||||
|
Get a pointer on a column of pixels.
Definition at line 453 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::_pPixMap. |
|
||||||||||||||||
|
Get a pixel value.
Definition at line 384 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::_pPixMap, and qgar::GenImage< T, CheckPolicy >::_width. Referenced by qgar::AbstractGradientImage::dxPixel(), qgar::AbstractGradientImage::dyPixel(), isNeighbor(), qgar::MapleFile::MapleFile(), and PruneSmallCCBinaryImage(). |
|
||||||||||||||
|
Add each pixel of the given image to the corresponding pixel of the current image and store each result in a new pixel map.
Definition at line 788 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::GenImage(). Referenced by qgar::GenImage< T, CheckPolicy >::operator+(). |
|
||||||||||||||
|
Add a given image to the current image. Add each pixel of the given image to the corresponding pixel of the current image and store each result in the pixel map of the current image.
Definition at line 797 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::height(), qgar::GenImage< T, CheckPolicy >::pPixMap(), and qgar::GenImage< T, CheckPolicy >::width(). Referenced by qgar::GenImage< T, CheckPolicy >::operator+=(). |
|
||||||||||||||||
|
Get a pointer on a given pixel of the image.
Definition at line 432 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::_pPixMap, and qgar::GenImage< T, CheckPolicy >::_width. |
|
|||||||||
|
||||||||||||
|
Process a black pixel.
Definition at line 120 of file PruneSmallCCBinaryImage.C. References _curRow, _lastRow, attachPixel(), attachPixelThreeEntries(), attachPixelTwoEntries(), createNewEntry(), qgar::PRUNESMALLCC_NOCOMP, and qgar::GenImage< T, CheckPolicy >::width(). Referenced by PruneSmallCCBinaryImage(). |
|
||||||||||
|
Get a pointer on a row of pixels.
Definition at line 443 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::_pPixMap, and qgar::GenImage< T, CheckPolicy >::_width. |
|
||||||||||||
|
Remove a connected component recursively, by starting from one of its points.
Definition at line 492 of file PruneSmallCCBinaryImage.C. References isNeighbor(), qgar::PRUNESMALLCC_WHITE, and qgar::GenImage< T, CheckPolicy >::setPixel(). Referenced by searchAndRemoveSmallComponents(). |
|
||||||||||||||||
|
Get a row of pixels.
Referenced by qgar::CleanedBinaryImage::CleanedBinaryImage(), qgar::LinDilatedImage::dilateAll(), qgar::LinDilatedBinaryImage::dilateAll(), qgar::LinErodedImage::erodeAll(), qgar::LinErodedBinaryImage::erodeAll(), qgar::IsotropicDilatedBinaryImage::IsotropicDilatedBinaryImage(), qgar::NiblackBinaryImage::NiblackBinaryImage(), and qgar::GenImage< T, CheckPolicy >::save(). |
|
||||||||||
|
Store current image into a PBM+ file. The given PBM+ file is opened (in WRITE ONLY mode) at the call, and closed before returning.
Definition at line 1005 of file GenImage.TCC. References qgar::AbstractFile::close(), qgar::AbstractFile::openWONLY(), qgar::AbstractPbmPlusFile::pRow(), qgar::GenImage< T, CheckPolicy >::row(), qgar::AbstractPbmPlusFile::setColCnt(), qgar::AbstractPbmPlusFile::setRowCnt(), and qgar::AbstractPbmPlusFile::writeRow(). |
|
|
Search small connected components and remove them from the image.
Definition at line 463 of file PruneSmallCCBinaryImage.C. References _size, _theEntries, _unusedEntries, and removeComponent(). Referenced by endOfLineProcess(). |
|
||||||||||||||||
|
Set a given column of pixels.
|
|
||||||||||||||||||||
|
Set a pixel value.
Definition at line 478 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::_pPixMap, and qgar::GenImage< T, CheckPolicy >::_width. Referenced by qgar::GenImage< T, CheckPolicy >::draw(), and removeComponent(). |
|
||||||||||||||||
|
Set a given row of pixels.
Referenced by qgar::CleanedBinaryImage::CleanedBinaryImage(), qgar::LinDilatedImage::dilateAll(), qgar::LinDilatedBinaryImage::dilateAll(), qgar::LinErodedImage::erodeAll(), qgar::LinErodedBinaryImage::erodeAll(), qgar::GenImage< T, CheckPolicy >::GenImage(), qgar::IsotropicDilatedBinaryImage::IsotropicDilatedBinaryImage(), and qgar::NiblackBinaryImage::NiblackBinaryImage(). |
|
|||||||||
|
Shallow copy: The pixel map of the current image is not duplicated.
Definition at line 691 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::_bytesPerPixel, qgar::GenImage< T, CheckPolicy >::_pPixMap, and qgar::GenImage< T, CheckPolicy >::_pRefCnt. Referenced by qgar::AbstractGradientImage::shallowCopy(). |
|
||||||||||||||
|
Multiply each pixel of the given image to the corresponding pixel of the current image and store each result in a new pixel map.
Definition at line 947 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::GenImage(). Referenced by qgar::GenImage< T, CheckPolicy >::operator *(). |
|
||||||||||||||
|
Multiply a given image by the current image. Multiply each pixel of the given image by the corresponding pixel of the current image and store each result in the pixel map of the current image.
Definition at line 958 of file GenImage.TCC. References qgar::GenImage< T, CheckPolicy >::height(), qgar::GenImage< T, CheckPolicy >::pPixMap(), and qgar::GenImage< T, CheckPolicy >::width(). Referenced by qgar::GenImage< T, CheckPolicy >::operator *=(). |
|
|
Unify entries matching the same connected component.
Definition at line 328 of file PruneSmallCCBinaryImage.C. References _curRow, _equivTable, _lastRow, _theEntries, _unusedEntries, qgar::PRUNESMALLCC_NOCOMP, and qgar::GenImage< T, CheckPolicy >::width(). Referenced by endOfLineProcess(). |
|
|||||||||
|
|||||
|
Number of bytes per pixel.
Definition at line 1096 of file GenImage.H. Referenced by qgar::GenImage< T, CheckPolicy >::bytesPerPixel(), and qgar::GenImage< T, CheckPolicy >::shallowCopy(). |
|
|
Definition at line 170 of file PruneSmallCCBinaryImage.H. Referenced by attachPixel(), endOfLineProcess(), processPixel(), PruneSmallCCBinaryImage(), and unification(). |
|
|
Definition at line 168 of file PruneSmallCCBinaryImage.H. Referenced by addEquivEntries(), and unification(). |
|
|||||
|
|
Definition at line 169 of file PruneSmallCCBinaryImage.H. Referenced by endOfLineProcess(), processPixel(), PruneSmallCCBinaryImage(), and unification(). |
|
|||||
|
|||||
|
Reference counter. Its value represent the number of other images with which the current image shares its pixel map. Definition at line 1104 of file GenImage.H. Referenced by qgar::GenImage< T, CheckPolicy >::shallowCopy(), and qgar::GenImage< T, CheckPolicy >::~GenImage(). |
|
|
Definition at line 171 of file PruneSmallCCBinaryImage.H. Referenced by searchAndRemoveSmallComponents(). |
|
|
Definition at line 166 of file PruneSmallCCBinaryImage.H. Referenced by attachPixel(), createNewEntry(), searchAndRemoveSmallComponents(), and unification(). |
|
|
Definition at line 167 of file PruneSmallCCBinaryImage.H. Referenced by createNewEntry(), searchAndRemoveSmallComponents(), and unification(). |
|
|||||