Interface ModelObservationResidualN<Model,​Observation>

All Known Implementing Classes:
HomographyResidualSampson, HomographyResidualTransfer, PnPResidualReprojection, PnPStereoResidualReprojection

public interface ModelObservationResidualN<Model,​Observation>

Residual function for epipolar matrices where there are multiple outputs for a single input.

Note that "residual = predicted - observed". Typically the "error = residual^T*residual".

  • Method Summary

    Modifier and Type Method Description
    int computeResiduals​(Observation observation, double[] residuals, int index)
    Compute the residual errors for the observation
    int getN()
    The number of outputs
    void setModel​(Model model)
    Specify the model being evaluated
  • Method Details

    • setModel

      void setModel​(Model model)
      Specify the model being evaluated
      Parameters:
      model - The model.
    • computeResiduals

      int computeResiduals​(Observation observation, double[] residuals, int index)
      Compute the residual errors for the observation
      Parameters:
      observation - Observation of point feature in two views
      Returns:
      The new index. index + getN()
    • getN

      int getN()
      The number of outputs
      Returns:
      number of outputs