Woolz Image Processing
Version 1.8.3
|
A non-maximal supression filter, which constructs a new domain object using a Canny-like non-maximal suppression algorithm. The domain is the non-maximally suppressed domain and the values are the encoded gradient direction. More...
Functions | |
WlzObject * | WlzNMSuppress (WlzObject *grdM, WlzObject *grdZ, WlzObject *grdY, WlzObject *grdX, WlzPixelV minThrV, WlzErrorNum *dstErr) |
Computes the maximal domain and gradient direction of given Woolz domain object. More... | |
A non-maximal supression filter, which constructs a new domain object using a Canny-like non-maximal suppression algorithm. The domain is the non-maximally suppressed domain and the values are the encoded gradient direction.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
WlzObject* WlzNMSuppress | ( | WlzObject * | grdM, |
WlzObject * | grdZ, | ||
WlzObject * | grdY, | ||
WlzObject * | grdX, | ||
WlzPixelV | minThrV, | ||
WlzErrorNum * | dstErr | ||
) |
Computes the maximal domain and gradient direction of given Woolz domain object.
^ Y axis (downwards when displayed) | +----------+---------+ | \ | /| | \128 + 2|128 + 1/ | | \ | / | | \ | / | | \ | / | | \ | / | | \ | / | |128 + 3 \ | /128 + 0| | \|/ | +----------O---------+--> X axis | /|\ | |128 + 4 / | \128 + 7| | / | \ | | / | \ | | / | \ | | / | \ | | / | \ | | /128 + 5|128 + 6\ | | / | \| +----------+---------+
grdM | Gradient magnitude. |
grdZ | Gradient (partial derivative) through planes. |
grdY | Gradient (partial derivative) through lines. |
grdX | Gradient (partial derivative) through columns. |
minThrV | Minimum gradient value to consider. |
dstErr | Destination error pointer, may be null. |
References _WlzObject::domain, _WlzObject::type, _WlzObject::values, WLZ_2D_DOMAINOBJ, WLZ_ERR_NONE, WLZ_ERR_OBJECT_NULL, WlzIntersectN(), and WlzMakeMain().
Referenced by WlzCannyDeriche().