Woolz Image Processing  Version 1.7.5
WlzLaplacian.c File Reference

Implements a Laplacian edge enhancement filter. More...

Functions

WlzObjectWlzLaplacian (WlzObject *srcObj, int kSize, int newObjFlag, int modFlag, WlzErrorNum *dstErr)
 Applies a Laplacian edge enhancement filter to the given woolz object. More...
 

Detailed Description

Implements a Laplacian edge enhancement filter.

Author
Bill Hill
Date
March 1999
Version
Id
fdc6c82b81399ed0e99ce10c53d213bb69159f09
Address: MRC Human Genetics Unit, MRC Institute of Genetics and Molecular Medicine, University of Edinburgh, Western General Hospital, Edinburgh, EH4 2XU, UK.
Copyright (C), [2012], The University Court of the University of Edinburgh, Old College, Edinburgh, UK.

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.

Function Documentation

WlzObject* WlzLaplacian ( WlzObject srcObj,
int  kSize,
int  newObjFlag,
int  modFlag,
WlzErrorNum dstErr 
)

Applies a Laplacian edge enhancement filter to the given woolz object.

Returns
Laplacian filtered object.
Parameters
srcObjGiven source object.
kSizeKernel size, must be 3, 5 or 7.
newObjFlagIf 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.
modFlagTake the absolute value of the convolution if non zero (this is always the case for a WlzUByte object).
dstErrDestination 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().