Woolz Image Processing
Version 1.7.5
|
Implements a Laplacian edge enhancement filter. More...
Functions | |
WlzObject * | WlzLaplacian (WlzObject *srcObj, int kSize, int newObjFlag, int modFlag, WlzErrorNum *dstErr) |
Applies a Laplacian edge enhancement filter to the given woolz object. More... | |
Implements a Laplacian edge enhancement filter.
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* WlzLaplacian | ( | WlzObject * | srcObj, |
int | kSize, | ||
int | newObjFlag, | ||
int | modFlag, | ||
WlzErrorNum * | dstErr | ||
) |
Applies a Laplacian edge enhancement filter to the given woolz object.
srcObj | Given source object. |
kSize | Kernel size, must be 3, 5 or 7. |
newObjFlag | If zero the convolution is done in place, else a new object is created. However, if the given object has RGBA values then a new object will always be created irrespective of this flags value. |
modFlag | Take the absolute value of the convolution if non zero (this is always the case for a WlzUByte object). |
dstErr | Destination error pointer, may be NULL. |
References _WlzValues::core, _WlzDomain::core, _WlzConvolution::cv, _WlzConvolution::divscale, _WlzObject::domain, _WlzConvolution::linkcount, _WlzConvolution::modflag, _WlzConvolution::offset, _WlzObject::type, _WlzCoreValues::type, _WlzConvolution::type, _WlzObject::values, WLZ_2D_DOMAINOBJ, WLZ_CONVOLVE_FLOAT, WLZ_CONVOLVE_INT, WLZ_DBG, WLZ_DBG_LVL_1, WLZ_DBG_LVL_FN, WLZ_ERR_DOMAIN_NULL, WLZ_ERR_GREY_DATA, WLZ_ERR_NONE, WLZ_ERR_OBJECT_NULL, WLZ_ERR_OBJECT_TYPE, WLZ_ERR_PARAM_DATA, WLZ_ERR_VALUES_NULL, WLZ_GREY_DOUBLE, WLZ_GREY_FLOAT, WLZ_GREY_INT, WLZ_GREY_RGBA, WLZ_GREY_SHORT, WLZ_GREY_UBYTE, WlzAssignObject(), WlzConvertPix(), WlzConvolveObj(), WlzFreeObj(), WlzGreyTableTypeToGreyType(), _WlzConvolution::xsize, and _WlzConvolution::ysize.
Referenced by WlzMeshFromObjBox().