Woolz Image Processing  Version 1.8.3
WlzCompoundArrayToScalar.c File Reference

Functions to convert vector values held in a compound array to scalar values in a domain object. More...

Functions

WlzObjectWlzCompoundArrayToScalar (WlzCompoundArray *cpd, WlzBinaryOperatorType bop, WlzErrorNum *dstErr)
 Computes an object with scalar values from the given compound array object using the given binary operator. More...
 

Detailed Description

Functions to convert vector values held in a compound array to scalar values in a domain object.

Author
Bill Hill
Date
November 2009
Version
Id
0f9f75eea6c344ede4132a860148f1aafeca682a
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

◆ WlzCompoundArrayToScalar()

WlzObject* WlzCompoundArrayToScalar ( WlzCompoundArray cpd,
WlzBinaryOperatorType  bop,
WlzErrorNum dstErr 
)

Computes an object with scalar values from the given compound array object using the given binary operator.

Returns
New object with double scalar values but the same domain as the given object.
Parameters
cpdGiven compound array in which all objects must be of the same type and have the same domain.
bopBinary operator. Currently only WLZ_BO_MODULUS is implimented.
dstErrDestiantion error pointer, may be NULL.

References _WlzValues::core, _WlzDomain::core, _WlzObject::domain, _WlzCompoundArray::n, _WlzCompoundArray::o, _WlzObject::type, _WlzCompoundArray::type, _WlzCoreDomain::type, _WlzCoreValues::type, _WlzObject::values, WLZ_2D_DOMAINOBJ, WLZ_COMPOUND_ARR_1, WLZ_ERR_DOMAIN_NULL, WLZ_ERR_DOMAIN_TYPE, WLZ_ERR_NONE, WLZ_ERR_OBJECT_DATA, WLZ_ERR_OBJECT_NULL, WLZ_ERR_OBJECT_TYPE, WLZ_ERR_VALUES_NULL, WLZ_ERR_VALUES_TYPE, WlzGreyTableIsTiled(), and WlzIntersectN().