view
Interface Morphing

All Known Subinterfaces:
DeltaFormattingMorphing, FormattingMorphing
All Known Implementing Classes:
BasicMorpher, OrthographicMorpher

public interface Morphing

An interface describing the property to convert pixel positions within two different coordinate systems. Normally, the primary coordinate system is pixel coordinates, while the second one is an underlying system, like ra/dec.


Method Summary
 Point2D toPrimary(Point2D radec)
          Converts a point from the secondary system to the primary.
 Point2D toSecondary(Point2D pixel)
          Converts a point from the primary to the secondary system.
 

Method Detail

toSecondary

Point2D toSecondary(Point2D pixel)
Converts a point from the primary to the secondary system. Normally this converts pixel coordinates to the underlying system.

Parameters:
pixel - The image coordinates.
Returns:
A Point in the secondary system, e.g. ra/dec
Throws:
UnsupportedOperationException

toPrimary

Point2D toPrimary(Point2D radec)
Converts a point from the secondary system to the primary. Normally this converts some coordinates like ra/dec into pixel coordinates.

Parameters:
radec - A point in the secondary system.
Returns:
Pixel coordinates.
Throws:
UnsupportedOperationException