VOL_TRANS Function

Standard Library routine that returns a 3D volume of data transformed by a 4-by-4 matrix.

Usage

result = VOL_TRANS(volume, dim, trans)

Input Parameters

volumeThe 3D volume of data to transform.

dimA scalar value specifying the x, y, and z dimensions of the transformed volume to return. Normally, dim is the largest of the three dimensions of the original volume. Generally, the original volume should “fit” inside the transformed volume.

transThe 4-by-4 transformation matrix to use for the transformation. trans is often the system viewing transformation matrix !P.T. (For more information, see the PV‑WAVE User Guide.)

Returned Value

resultA 3D volume of data transformed by a 4-by-4 matrix.

Keywords

None.

Discussion

The returned volume is scaled into the range of bytes. For best results, the volume to transform should first be processed using the VOL_PAD function. For more information, see the PV‑WAVE User Guide.

Examples

See the Examples sections of the VOL_MARKER Procedure and VOL_REND Function.

For another example, see the vol_demo4 demonstration program in:

<wavedir>/demo/arl
<wavedir>\demo\arl

Where <wavedir> is the main PV-WAVE directory.

See Also

VOL_PAD, VOL_REND