Woolz Image Processing  Version 1.8.3
WlzRaster

Files

file  WlzRaster.c
 Functions to rasterize geometric Woolz objects into 2D or 3D domain objects.
 

Functions

WlzObjectWlzRasterObj (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...
 

Detailed Description

Function Documentation

◆ WlzRasterObj()

WlzObject* WlzRasterObj ( WlzObject gObj,
WlzErrorNum dstErr 
)

Rasterizes the given geometric object, creating a new domain object.

Returns
Woolz domain object, NULL on error.
Parameters
gObjGiven geometric object.
dstErrDestination 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().

◆ WlzRasterLineSetItv2D()

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).

Parameters
iDomInterval domain for which intervals are to be set.
v0First vertex.
v1Second vertex.

References _WlzInterval::ileft, _WlzIntervalDomain::intvlines, _WlzInterval::iright, _WlzIVertex2::vtX, and _WlzIVertex2::vtY.

Referenced by WlzMakeQuadrilateral().