ImagerTransform.mesa
This interface provides the internal view of the procedures, structures, etc. involved in setting, modifying and using transformations in the imager.
Last Edited by:
Crow, May 27, 1983 11:20 am
DIRECTORY
ImagerBasic USING [Vec, IntVec, Context, TransformRecord, Transformation, ImagingSpace,
       TransformType];
ImagerTransform: CEDAR DEFINITIONS
= BEGIN
Vec: TYPE = ImagerBasic.Vec;   -- ( [x, y: REAL] )
IntVec: TYPE = ImagerBasic.IntVec;  -- ( [x, y: INTEGER] )
Context: TYPE = ImagerBasic.Context;
TransformRecord: TYPE = ImagerBasic.TransformRecord;
Transformation: TYPE = ImagerBasic.Transformation;
ImagingSpace: TYPE = ImagerBasic.ImagingSpace;
TransformType: TYPE = ImagerBasic.TransformType;
TransformTypeNone: SIGNAL;
SetTransform: PROC [context: Context, transformSpace: ImagingSpace,
       transform: TransformRecord];
fast for setting common types of flips and rotates
GetTransform: PROC [context: Context, transformSpace: ImagingSpace]
     RETURNS [TransformRecord];
ConcatToContext: PROC [context: Context, transformSpace: ImagingSpace, transform: Transformation];
for rolling your own transforms
Transform: PROC [transform: TransformRecord, p: Vec] RETURNS [Vec];
InverseTransform: PROC [transform: TransformRecord, p: Vec] RETURNS [Vec];
TransformVec: PROC [transform: TransformRecord, p: Vec] RETURNS [Vec];
InverseTransformVec: PROC [transform: TransformRecord, p: Vec] RETURNS [Vec];
IntTransform: PROC [transform: TransformRecord, p: IntVec] RETURNS [IntVec];
InverseIntTransform: PROC [transform: TransformRecord, p: IntVec] RETURNS [IntVec];
TransformIntVec: PROC [transform: TransformRecord, p: IntVec] RETURNS [IntVec];
InverseTransformIntVec: PROC [transform: TransformRecord, p: IntVec] RETURNS [IntVec];
END.