stella.adapter
Interface Mirroring

All Known Implementing Classes:
NasmythGuider

public interface Mirroring

This interface defines the capabilities to remove mirrors and ghosts from a list of candidate stars. It also provides methods for estimating the mirror and ghost magnitudes.


Method Summary
 double getMirrorFaintness()
          Returns the mirror faintness.
 Point2D getMirrorPosition(Point2D direct)
          Converts a position on the direct image to the mirror position.
 List<Guiding.RawStar> removeGhosts(List<Guiding.RawStar> mirrors, List<Guiding.RawStar> stars)
          A further complication are mirrors that spark ghosts.
 List<Guiding.RawStar> removeMirrors(List<Guiding.RawStar> stars)
          Iterates through a list of stars and tries to detect mirror images.
 

Method Detail

getMirrorPosition

Point2D getMirrorPosition(Point2D direct)
Converts a position on the direct image to the mirror position. No range checks applied.


getMirrorFaintness

double getMirrorFaintness()
Returns the mirror faintness. This is the magnitude difference between the mirror image and the direct image, if the mirror image is not obstructed by the pinhole.


removeMirrors

List<Guiding.RawStar> removeMirrors(List<Guiding.RawStar> stars)
Iterates through a list of stars and tries to detect mirror images. Normally, the mirror image should be a little bit weaker, but in low S/N regimes this is not guranteed. Thus a better strategie is to go through the entire list of stars and try to detect mirrors, either as the entries itself or via its mirror image.


removeGhosts

List<Guiding.RawStar> removeGhosts(List<Guiding.RawStar> mirrors,
                                   List<Guiding.RawStar> stars)
A further complication are mirrors that spark ghosts. This is only possible on the edge of the mirror, thus from all detected mirrors, we look-up our stars to find those ghosts. The ghosts are removed from the star list and returned in a separate list.