Woolz Image Processing
Version 1.8.3
|
Files | |
file | WlzError.c |
Error related functions for the Woolz library. | |
file | WlzError.h |
Definitions of Woolz error codes. | |
file | WlzVerifyObj.c |
Functions for verifying and fixing objects. | |
Functions | |
WlzErrorNum | WlzErrorFromAlg (AlgError algErr) |
Converts an Alg error code to a Woolz error code. More... | |
WlzErrorNum | WlzVerifyObject (WlzObject *obj, int fix) |
Verify the object data, fix if possible if paramter fix != 0 . Curretnly only the domains of 2D and 3D objects can be verified. More... | |
WlzErrorNum | WlzVerifyIntervalDomain (WlzDomain dom, int fix) |
Verify the input interval domain, check domain parameters, intervals etc. Fix errors if requested. More... | |
WlzErrorNum | WlzVerifyIntervalLine (WlzIntervalLine *intvline, int fix) |
Detect errors in an interval line structure, fix if requested. More... | |
WlzErrorNum | WlzVerifyInterval (WlzInterval *intv, int fix) |
Check an interval structure, fix if requested. More... | |
enum _WlzErrorNum |
Woolz error codes (or error numbers) have an integer value with WLZ_ERR_NONE, the no error code, defined to be zero. Typedef: WlzErrorNum.
WlzErrorNum WlzErrorFromAlg | ( | AlgError | algErr | ) |
Converts an Alg error code to a Woolz error code.
algErr | Given Alg error code. |
References ALG_ERR_CONVERGENCE, ALG_ERR_DIVZERO, ALG_ERR_FUNC, ALG_ERR_MALLOC, ALG_ERR_MATRIX_CONDITION, ALG_ERR_MATRIX_HOMOGENEOUS, ALG_ERR_MATRIX_SINGULAR, ALG_ERR_MATRIX_TYPE, ALG_ERR_NONE, ALG_ERR_NONGLOBAL, ALG_ERR_READ, ALG_ERR_UNIMPLEMENTED, ALG_ERR_UNKNOWN, ALG_ERR_WRITE, WLZ_ERR_ALG, WLZ_ERR_ALG_CONDITION, WLZ_ERR_ALG_CONVERGENCE, WLZ_ERR_ALG_HOMOGENEOUS, WLZ_ERR_ALG_NONGLOBAL, WLZ_ERR_ALG_SINGULAR, WLZ_ERR_MEM_ALLOC, WLZ_ERR_NONE, WLZ_ERR_PARAM_DATA, WLZ_ERR_PARAM_TYPE, WLZ_ERR_READ_INCOMPLETE, WLZ_ERR_UNIMPLEMENTED, and WLZ_ERR_WRITE_INCOMPLETE.
Referenced by WlzAffineTransformLSqDQ2D(), WlzAffineTransformLSqDQ3D(), WlzAffineTransformLSqReg2D(), WlzAffineTransformLSqReg3D(), WlzAffineTransformLSqRegWlz2D(), WlzBasisFnConf2DFromCPts(), WlzBasisFnPoly2DFromCPts(), WlzBSplineEval(), WlzBSplineFromVertices(), WlzFitPlaneSVD(), WlzGeomCurvature(), WlzGeometryLSqOPlane(), WlzKrigOSetModelSV2D(), WlzKrigOSetModelSV3D(), and WlzKrigOWeightsSolve().
WlzErrorNum WlzVerifyObject | ( | WlzObject * | obj, |
int | fix | ||
) |
Verify the object data, fix if possible if paramter fix != 0
. Curretnly only the domains of 2D and 3D objects can be verified.
obj | Input object to be verified |
fix | If fix != 0 then attempt to fix the error detected. |
References _WlzValues::core, _WlzObject::domain, _WlzPlaneDomain::domains, _WlzPlaneDomain::lastpl, _WlzDomain::p, _WlzPlaneDomain::plane1, _WlzObject::type, _WlzPlaneDomain::type, _WlzObject::values, _WlzVoxelValues::values, _WlzValues::vox, WLZ_2D_DOMAINOBJ, WLZ_3D_DOMAINOBJ, WLZ_ERR_NONE, WLZ_ERR_OBJECT_NULL, WLZ_ERR_PLANEDOMAIN_DATA, WLZ_PLANEDOMAIN_DOMAIN, WlzFreeObj(), WlzMakeMain(), and WlzVerifyIntervalDomain().
WlzErrorNum WlzVerifyIntervalDomain | ( | WlzDomain | dom, |
int | fix | ||
) |
Verify the input interval domain, check domain parameters, intervals etc. Fix errors if requested.
WLZ_ERR_INTERVALDOMAIN_NULL, WLZ_ERR_LINE_DATA, WLZ_ERR_COLUMN_DATA, WLZ_ERR_NONE
and errors from WlzVerifyIntervalLine(). dom | Input interval domain to be checked. |
fix | Attempt to fix errors if fix != 0 |
References _WlzDomain::i, _WlzIntervalDomain::intvlines, _WlzIntervalDomain::kol1, _WlzIntervalDomain::lastkl, _WlzIntervalDomain::lastln, _WlzIntervalDomain::line1, _WlzIntervalDomain::type, WLZ_ERR_COLUMN_DATA, WLZ_ERR_INTERVALDOMAIN_NULL, WLZ_ERR_LINE_DATA, WLZ_ERR_NONE, WLZ_INTERVALDOMAIN_INTVL, and WlzVerifyIntervalLine().
Referenced by WlzVerifyObject().
WlzErrorNum WlzVerifyIntervalLine | ( | WlzIntervalLine * | intvline, |
int | fix | ||
) |
Detect errors in an interval line structure, fix if requested.
WLZ_ERR_NONE, WLZ_ERR_INTERVALLINE_NULL, WLZ_ERR_INTERVAL_ADJACENT
or errors returned by WlzVerifyInterval(). intvline | Interval line to be checked |
fix | Fix error if parameter fix != 0 |
References _WlzIntervalLine::intvs, _WlzInterval::iright, _WlzIntervalLine::nintvs, WLZ_ERR_INTERVAL_ADJACENT, WLZ_ERR_INTERVAL_NUMBER, WLZ_ERR_INTERVALLINE_NULL, WLZ_ERR_NONE, and WlzVerifyInterval().
Referenced by WlzVerifyIntervalDomain().
WlzErrorNum WlzVerifyInterval | ( | WlzInterval * | intv, |
int | fix | ||
) |
Check an interval structure, fix if requested.
WLZ_ERR_INTERVAL_NULL, WLZ_ERR_INTERVAL_DATA, WLZ_ERR_INTERVAL_BOUND, WLZ_ERR_NONE
. intv | Interval structure to be tested. |
fix | Fix error if parameter fix != 0 . |
References _WlzInterval::ileft, _WlzInterval::iright, WLZ_ERR_INTERVAL_BOUND, WLZ_ERR_INTERVAL_DATA, WLZ_ERR_INTERVAL_NULL, and WLZ_ERR_NONE.
Referenced by WlzVerifyIntervalLine().