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

Implementation based on a queue-based algorithm by L. Vincent [Vincent, 1993].
Definition at line 74 of file GeodesicRecBinaryImage.H.
Public Types | |
Types | |
| typedef BinaryImage::value_type | value_type |
| Type of the elements stored in the pixel map. | |
| typedef value_type & | reference |
| Reference to qgar::GeodesicRecBinaryImage::value_type. | |
| typedef const value_type & | const_reference |
| Constant reference to qgar::GeodesicRecBinaryImage::value_type. | |
| typedef value_type * | pointer |
| Pointer to qgar::GeodesicRecBinaryImage::value_type. | |
| typedef const value_type * | const_pointer |
| Constant pointer to qgar::GeodesicRecBinaryImage::value_type. | |
Public Member Functions | |
Constructors | |
| GeodesicRecBinaryImage (BinaryImage &aMarkImg, BinaryImage &aResImg) throw (QgarErrorDomain) | |
| Construct in given result image from given marker image. | |
Static Public Member Functions | |
Geodesic reconstruction | |
| static void | perform (BinaryImage *aMarkImg, BinaryImage *aResImg) |
| Perform a geodesic reconstruction in given result image from given marker image. | |
|
|
Constant pointer to qgar::GeodesicRecBinaryImage::value_type.
Reimplemented from qgar::GenImage< T, CheckPolicy >. Definition at line 111 of file GeodesicRecBinaryImage.H. |
|
|
Constant reference to qgar::GeodesicRecBinaryImage::value_type.
Reimplemented from qgar::GenImage< T, CheckPolicy >. Definition at line 101 of file GeodesicRecBinaryImage.H. |
|
|
Pointer to qgar::GeodesicRecBinaryImage::value_type.
Reimplemented from qgar::GenImage< T, CheckPolicy >. Definition at line 106 of file GeodesicRecBinaryImage.H. |
|
|
Reference to qgar::GeodesicRecBinaryImage::value_type.
Reimplemented from qgar::GenImage< T, CheckPolicy >. Definition at line 96 of file GeodesicRecBinaryImage.H. |
|
|
Type of the elements stored in the pixel map.
Reimplemented from qgar::GenImage< T, CheckPolicy >. Definition at line 91 of file GeodesicRecBinaryImage.H. |
|
||||||||||||
|
Construct in given result image from given marker image. The geodesic reconstruction first collects the boundaries of the marker image, then propagates them in the relevant connected components of the resulting image.
Definition at line 61 of file GeodesicRecBinaryImage.C. References qgar::GenImage< T, CheckPolicy >::width(). |
|
||||||||||
|
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(). |
|
||||||||||||||||
|
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(). |
|
|||||||||
|
||||||||||||||
|
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. |
|
||||||||||||
|
Perform a geodesic reconstruction in given result image from given marker image. To be used to perform a geodesic reconstruction without creating any image.
Definition at line 92 of file GeodesicRecBinaryImage.C. References qgar::GenImage< T, CheckPolicy >::height(), qgar::GenImage< T, CheckPolicy >::pPixMap(), and qgar::GenImage< T, CheckPolicy >::width(). Referenced by qgar::RegionalMaxBinaryImage::perform(). |
|
||||||||||||||||
|
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(), qgar::PruneSmallCCBinaryImage::isNeighbor(), qgar::MapleFile::MapleFile(), and qgar::PruneSmallCCBinaryImage::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. |
|
|||||||||
|
||||||||||
|
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. |
|
||||||||||||||||
|
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(). |
|
||||||||||||||||
|
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 qgar::PruneSmallCCBinaryImage::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 *=(). |
|
|||||||||
|
|||||
|
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(). |
|
|||||
|
|||||
|
|||||
|
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(). |
|
|||||