|
NAMEvpClassifyScalars - create a preclassified volume from scalar dataSYNOPSIS#include <volpack.h>vpResult vpClassifyScalars(vpc, scalar_data, length, scalar_field, gradient_field, norm_field)
ARGUMENTS
DESCRIPTIONvpClassifyScalars combines the functionality of vpVolumeNormals and vpClassifyVolume to produce a preclassified volume directly from a 3D array of scalar values without creating a 3D voxel array. This routine is useful for preparing large data sets for rendering with a fixed classification function, especially if the 3D voxel array would be too large to fit in main memory. The primary limitation is that the only fields each voxel may contain are the fields produced by vpVolumeNormals: an 8-bit scalar value, and 8-bit gradient and/or a 16-bit surface normal vector. See also vpClassifyScanline for processing one scanline of a scalar array at a time.To use the function, first define the volume size, voxel size, and voxel fields as you would before calling vpVolumeNormals. However, there is no need to call vpSetRawVoxels. Also define the opacity transfer function (see vpSetClassifierTable(3)). Then call vpClassifyScalars with the same arguments you would use for vpVolumeNormals; see vpVolumeNormals(3) for more details. The result is a preclassified volume, as described in vpClassifyVolume(3). If a voxel array has been declared it is not used or modified. Any existing preclassified volume data is destroyed. STATE VARIABLESInformation about the current preclassified volume can be retrieved with the following state variable codes (see vpGeti(3)): VP_VIEW_X_SIZE, VP_VIEW_Y_SIZE, VP_VIEW_Z_SIZE, VP_VIEW_X_AXIS, VP_VIEW_Y_AXIS, VP_VIEW_Z_AXIS.ERRORSThe normal return value is VP_OK. The following error return values are possible:
SEE ALSOVolPack(3), vpCreateContext(3), vpVolumeNormals(3), vpSetClassifierTable(3), vpClassifyVolume(3), vpClassifyScanline(3)
Visit the GSP FreeBSD Man Page Interface. |