Woolz Image Processing Version 1.4.0
|
Shade correction. More...
Functions | |
WlzObject * | WlzShadeCorrect (WlzObject *srcObj, WlzObject *shdObj, double nrmVal, int inPlace, WlzErrorNum *dstErr) |
Shade corrects the given domain object with grey values.
The shade corrected image P with values | |
WlzObject * | WlzShadeCorrectBFDF (WlzObject *srcObj, WlzObject *shdObj, WlzObject *shdDFObj, double nrmVal, int inPlace, WlzErrorNum *dstErr) |
Shade corrects the given domain object with grey values.
The shade corrected image P with values |
Shade correction.
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* WlzShadeCorrect | ( | WlzObject * | srcObj, |
WlzObject * | shdObj, | ||
double | nrmVal, | ||
int | inPlace, | ||
WlzErrorNum * | dstErr | ||
) |
Shade corrects the given domain object with grey values.
The shade corrected image P with values is created by applying a correction factor to each image value of the given image O with values
.
srcObj | Given object to be shade corrected. |
shdObj | Given bright field object. |
nrmVal | Normalization value. |
inPlace | Modify the grey values of the given object in place if non-zero. |
dstErr | Destination error pointer, may be null. |
References WlzShadeCorrectBFDF().
WlzObject* WlzShadeCorrectBFDF | ( | WlzObject * | srcObj, |
WlzObject * | shdObj, | ||
WlzObject * | shdDFObj, | ||
double | nrmVal, | ||
int | inPlace, | ||
WlzErrorNum * | dstErr | ||
) |
Shade corrects the given domain object with grey values.
The shade corrected image P with values is created by applying a correction factor to each image value of the given image O with values
.
and
are the bright and dark-field shade image values respectively.
srcObj | Given object to be shade corrected. |
shdObj | Given bright field object. |
shdDFObj | Given dark field object (may be NULL). |
nrmVal | Normalization value. |
inPlace | Modify the grey values of the given object in place if non-zero. |
dstErr | Destination error pointer, may be null. |
References AlcCalloc(), AlcFree(), _WlzValues::core, _WlzDomain::core, _WlzObject::domain, _WlzCompoundArray::n, _WlzCompoundArray::o, _WlzValues::obj, _WlzObject::type, _WlzObject::values, WLZ_2D_DOMAINOBJ, WLZ_3D_DOMAINOBJ, WLZ_BO_SUBTRACT, WLZ_COMPOUND_ARR_1, WLZ_COMPOUND_ARR_2, WLZ_EMPTY_OBJ, WLZ_ERR_DOMAIN_NULL, WLZ_ERR_MEM_ALLOC, WLZ_ERR_NONE, WLZ_ERR_OBJECT_DATA, WLZ_ERR_OBJECT_NULL, WLZ_ERR_OBJECT_TYPE, WLZ_ERR_UNIMPLEMENTED, WLZ_ERR_VALUES_NULL, WLZ_GREY_RGBA, WLZ_TRANS_OBJ, WlzFreeObj(), WlzGreyTypeFromObj(), WlzImageArithmetic(), WlzMakeCompoundArray(), WlzMakeEmpty(), WlzMakeMain(), and WlzRGBAImageArithmetic().
Referenced by WlzShadeCorrect().