Class PairwiseGUI
java.lang.Object
net.preibisch.mvrecon.fiji.plugin.interestpointregistration.pairwise.PairwiseGUI
- Direct Known Subclasses:
CenterOfMassGUI,FRGLDMGUI,GeometricHashingGUI,IterativeClosestPointGUI,LoadCorrespondencesGUI,RGLDMGUI
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic booleanstatic intstatic booleanstatic int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidstatic voidAdds 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).abstract Stringabstract TransformationModelGUIabstract doubleabstract doubleabstract PairwiseGUInewInstance(SpimData2 spimData) 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)abstract MatcherPairwise<InterestPoint> abstract booleanstatic RANSACParametersReads the fields added byaddRansacQuery(GenericDialog)(in the same order) and returns the resultingRANSACParameters, ornullif the user cancels the advanced sub-dialog.protected static booleanqueryAdvancedRANSAC(boolean advanced) If the user enabled "Advanced_RANSAC_options", query maxTrust / minimal inlier ratio / filter-RANSAC in a follow-up dialog, updating theRANSACParametersstatics that the GUI uses to build itsRANSACParameters.
-
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
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
Reads the fields added byaddRansacQuery(GenericDialog)(in the same order) and returns the resultingRANSACParameters, ornullif 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 theRANSACParametersstatics that the GUI uses to build itsRANSACParameters. 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
-
parseDialog
-
newInstance
- Parameters:
spimData- the current spimdata object (needed to load corresponding points)- Returns:
- - a new instance without any special properties
-
getDescription
- Returns:
- - to be displayed in the generic dialog
-
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
- 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
-