public class TLcdTranslatedRasterReferencer extends Object implements ILcdRasterReferencer
If rotation is also required, this class can be chained to
TLcdRotatedRasterReferencer
. For instance:
ILcdRasterReferencer referencer =
new TLcdRotatedRasterReferencer(new TLcdTranslatedRasterReferencer());
Constructor and Description |
---|
TLcdTranslatedRasterReferencer(double aScaleX,
double aScaleY)
Creates a new TLcdTranslatedRasterReferencer that will compute axis-aligned
raster bounds based on a least squares approximation of the tie points and
on a fixed scale.
|
Modifier and Type | Method and Description |
---|---|
ILcdRasterReference |
createRasterReference(int aImageWidth,
int aImageHeight,
ILcdPoint[] aImageTiePoints,
ILcdModelReference aModelReference,
ILcdPoint[] aModelTiePoints,
ILcdPoint[] aMappedModelTiePointsSFCT)
Creates a raster reference for an image of a given size, based on pairs of
tie points.
|
public TLcdTranslatedRasterReferencer(double aScaleX, double aScaleY)
aScaleX
- the scaling factor for going from the image ordinates to
model ordinates on the x axis.aScaleY
- the scaling factor for going from the image ordinates to
model ordinates on the y axis.public ILcdRasterReference createRasterReference(int aImageWidth, int aImageHeight, ILcdPoint[] aImageTiePoints, ILcdModelReference aModelReference, ILcdPoint[] aModelTiePoints, ILcdPoint[] aMappedModelTiePointsSFCT)
ILcdRasterReferencer
An optional array can be provided for obtaining the model tie points transformed to image coordinates on return. These reflect the effects of the referencing. The differences between the transformed model tie points (expressed in pixels) and the original image tie points (also expressed in pixels) provide a measure for the success of the referencing. With a perfect raster reference, the resulting model tie points correspond to the original image tie points.
createRasterReference
in interface ILcdRasterReferencer
aImageWidth
- the image width of the raster, expressed
in pixels.aImageHeight
- the image height of the raster, expressed
in pixels.aImageTiePoints
- the image tie points, expressed in pixels.aModelReference
- the reference of the model tie points.aModelTiePoints
- the model tie points corresponding to the
image tie points, expressed in model
coordinates.aMappedModelTiePointsSFCT
- an optional array for obtaining the
the model tie points mapped to image
coordinates upon return. This parameter
may be null
, if the mapped
points are not required.