Woolz Image Processing
Version 1.8.3
|
Files | |
file | WlzRaster.c |
Functions to rasterize geometric Woolz objects into 2D or 3D domain objects. | |
Functions | |
WlzObject * | WlzRasterObj (WlzObject *gObj, WlzErrorNum *dstErr) |
Rasterizes the given geometric object, creating a new domain object. More... | |
void | WlzRasterLineSetItv2D (WlzIntervalDomain *iDom, WlzIVertex2 v0, WlzIVertex2 v1) |
Given an interval domain which has a single interval per line, which covers the line range of the two given vertices, this function updates the intervals by setting the left/right fields for a line drawn between the two given vertices. It may be used to set the intervals for any convex polygon simply by initialising the intervals to always false values (eg min = max of object and max = min of object) then calling this function for each ordered pair of boundary vertices. Both vertices must be relative to idom->(kol1,line1). More... | |
WlzObject* WlzRasterObj | ( | WlzObject * | gObj, |
WlzErrorNum * | dstErr | ||
) |
Rasterizes the given geometric object, creating a new domain object.
gObj | Given geometric object. |
dstErr | Destination ptr for error code, may be NULL. |
References _WlzDomain::core, _WlzObject::domain, _WlzObject::type, WLZ_CONTOUR, WLZ_EMPTY_OBJ, WLZ_ERR_DOMAIN_NULL, WLZ_ERR_NONE, WLZ_ERR_OBJECT_NULL, WlzBoundingBox3I(), and WlzMakeEmpty().
void WlzRasterLineSetItv2D | ( | WlzIntervalDomain * | iDom, |
WlzIVertex2 | v0, | ||
WlzIVertex2 | v1 | ||
) |
Given an interval domain which has a single interval per line, which covers the line range of the two given vertices, this function updates the intervals by setting the left/right fields for a line drawn between the two given vertices. It may be used to set the intervals for any convex polygon simply by initialising the intervals to always false values (eg min = max of object and max = min of object) then calling this function for each ordered pair of boundary vertices. Both vertices must be relative to idom->(kol1,line1).
iDom | Interval domain for which intervals are to be set. |
v0 | First vertex. |
v1 | Second vertex. |
References _WlzInterval::ileft, _WlzIntervalDomain::intvlines, _WlzInterval::iright, _WlzIVertex2::vtX, and _WlzIVertex2::vtY.
Referenced by WlzMakeQuadrilateral().