Woolz Image Processing
Version 1.7.5
|
Functions for performing arithmetic on a pair of domain objects with grey values. More...
Typedefs | |
typedef void(* | WlzBinaryOperatorFn) (WlzGreyP, WlzGreyP, int) |
Functions | |
WlzObject * | WlzImageArithmetic (WlzObject *obj0, WlzObject *obj1, WlzBinaryOperatorType op, int overwrite, WlzErrorNum *dstErr) |
Performs arithmetic on a pair of domain objects. If the overwrite flag is set and the grey values of the object to be overwritten are of the wrong type then the returned object has new values as though the overwrite flag was not set. More... | |
Functions for performing arithmetic on a pair of domain objects with grey values.
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* WlzImageArithmetic | ( | WlzObject * | obj0, |
WlzObject * | obj1, | ||
WlzBinaryOperatorType | op, | ||
int | overwrite, | ||
WlzErrorNum * | dstErr | ||
) |
Performs arithmetic on a pair of domain objects. If the overwrite flag is set and the grey values of the object to be overwritten are of the wrong type then the returned object has new values as though the overwrite flag was not set.
obj0 | First object. |
obj1 | Second object. |
op | Binary operator. |
overwrite | Allow the destination object to share values with one of the given objects if non zero.
|
dstErr | Destination error pointer, may be NULL. |
References _WlzValues::core, _WlzDomain::core, _WlzObject::domain, _WlzObject::type, _WlzCoreValues::type, _WlzObject::values, WLZ_2D_DOMAINOBJ, WLZ_3D_DOMAINOBJ, WLZ_EMPTY_OBJ, WLZ_ERR_DOMAIN_NULL, WLZ_ERR_NONE, WLZ_ERR_OBJECT_NULL, WLZ_ERR_OBJECT_TYPE, WLZ_ERR_PARAM_DATA, WLZ_ERR_VALUES_NULL, WLZ_ERR_VALUES_TYPE, WlzAssignObject(), WlzFreeObj(), WlzGreyTableIsTiled(), WlzIntersect2(), WlzMakeEmpty(), and WlzMakeMain().
Referenced by WlzNObjGreyStats(), WlzOffsetDist(), WlzRegConCalcRCC(), WlzRGBAImageArithmetic(), WlzSepFilter(), WlzShadeCorrectBFDF(), and WlzSobel().