java.lang.Object
net.preibisch.mvrecon.fiji.plugin.interestpointregistration.pairwise.PairwiseGUI
Direct Known Subclasses:
CenterOfMassGUI, FRGLDMGUI, GeometricHashingGUI, IterativeClosestPointGUI, LoadCorrespondencesGUI, RGLDMGUI

public abstract class PairwiseGUI extends Object
  • Field Details

    • defaultAdvancedRANSAC

      public static boolean defaultAdvancedRANSAC
    • defaultMinNumMatches

      public static int defaultMinNumMatches
    • defaultRANSACIterationChoice

      public static int defaultRANSACIterationChoice
    • defaultMultiConsensus

      public static boolean defaultMultiConsensus
  • Constructor Details

    • PairwiseGUI

      public PairwiseGUI()
  • Method Details

    • addRansacQuery

      public static void addRansacQuery(ij.gui.GenericDialog gd)
      Adds the standard RANSAC parameters to a dialog: allowed error, minimal number of inliers, number of iterations, multi-consensus, and an "Advanced_RANSAC_options" checkbox (maxTrust / inlier ratio / filter-RANSAC). Reusable by any plugin so the RANSAC GUI is defined in exactly one place.
    • parseRansacQuery

      public static RANSACParameters parseRansacQuery(ij.gui.GenericDialog gd)
      Reads the fields added by addRansacQuery(GenericDialog) (in the same order) and returns the resulting RANSACParameters, or null if the user cancels the advanced sub-dialog.
    • queryAdvancedRANSAC

      protected static boolean queryAdvancedRANSAC(boolean advanced)
      If the user enabled "Advanced_RANSAC_options", query maxTrust / minimal inlier ratio / filter-RANSAC in a follow-up dialog, updating the RANSACParameters statics that the GUI uses to build its RANSACParameters. Returns false if the user cancels the follow-up dialog.
      Parameters:
      advanced - - whether the user ticked the advanced-options checkbox
      Returns:
      false if the follow-up dialog was canceled, true otherwise
    • addQuery

      public abstract void addQuery(ij.gui.GenericDialog gd)
    • parseDialog

      public abstract boolean parseDialog(ij.gui.GenericDialog gd)
    • newInstance

      public abstract PairwiseGUI newInstance(SpimData2 spimData)
      Parameters:
      spimData - the current spimdata object (needed to load corresponding points)
      Returns:
      - a new instance without any special properties
    • getDescription

      public abstract String getDescription()
      Returns:
      - to be displayed in the generic dialog
    • pairwiseMatchingInstance

      public abstract MatcherPairwise<InterestPoint> pairwiseMatchingInstance()
      Returns:
      - the object that will perform a pairwise matching and can return a result
    • pairwiseGroupedMatchingInstance

      public abstract MatcherPairwise<GroupedInterestPoint<mpicbg.spim.data.sequence.ViewId>> pairwiseGroupedMatchingInstance()
      This is not good style, but when creating the object we do not know which generic parameter will be required as the user specifies this later (could be a factory)
      Returns:
      - the object that will perform a pairwise matching and can return a result for grouped interestpoints
    • getMatchingModel

      public abstract TransformationModelGUI getMatchingModel()
      Returns:
      - the model the user chose to perform the registration with
    • getMaxError

      public abstract double getMaxError()
      Returns:
      - a maximal error as selected by the user or Double.NaN if not applicable
    • globalOptError

      public abstract double globalOptError()
      Returns:
      - the error allowed for the global optimization