Class InterestPointMatchCreator
java.lang.Object
net.preibisch.mvrecon.process.interestpointregistration.global.pointmatchcreating.strong.InterestPointMatchCreator
- All Implemented Interfaces:
PointMatchCreator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intMaximum number of per-pair "Connecting … <-> …" lines to print fromassignPointMatches(java.util.HashMap<mpicbg.spim.data.sequence.ViewId, mpicbg.models.Tile<M>>, java.util.ArrayList<net.preibisch.mvrecon.process.interestpointregistration.pairwise.constellation.grouping.Group<mpicbg.spim.data.sequence.ViewId>>, java.util.Collection<mpicbg.spim.data.sequence.ViewId>)before the per-pair output is suppressed. -
Constructor Summary
ConstructorsConstructorDescriptionInterestPointMatchCreator(List<? extends net.imglib2.util.Pair<? extends net.imglib2.util.Pair<mpicbg.spim.data.sequence.ViewId, mpicbg.spim.data.sequence.ViewId>, ? extends PairwiseResult<?>>> pairs, Map<mpicbg.spim.data.sequence.ViewId, ? extends Map<String, Double>> labelMap) -
Method Summary
Modifier and TypeMethodDescription<M extends mpicbg.models.Model<M>>
voidassignPointMatches(HashMap<mpicbg.spim.data.sequence.ViewId, mpicbg.models.Tile<M>> tileMap, ArrayList<Group<mpicbg.spim.data.sequence.ViewId>> groups, Collection<mpicbg.spim.data.sequence.ViewId> fixedViews) assign pointmatches for all views that this object knows and that are present in tileMap.keySet(), which comes from getAllViews() plus what is in the group definition of the globalopt called last<M extends mpicbg.models.Model<M>>
voidassignWeights(HashMap<mpicbg.spim.data.sequence.ViewId, mpicbg.models.Tile<M>> tileMap, ArrayList<Group<mpicbg.spim.data.sequence.ViewId>> groups, Collection<mpicbg.spim.data.sequence.ViewId> fixedViews) By default all weights are 1, if wanted one can adjust them here, otherwise simply return.static <M extends mpicbg.models.Model<M>>
voidassignWeights(List<? extends net.imglib2.util.Pair<? extends net.imglib2.util.Pair<mpicbg.spim.data.sequence.ViewId, mpicbg.spim.data.sequence.ViewId>, ? extends PairwiseResult<?>>> pairs, ArrayList<Group<mpicbg.spim.data.sequence.ViewId>> groups, HashMap<mpicbg.spim.data.sequence.ViewId, mpicbg.models.Tile<M>> tileMap)
-
Field Details
-
maxPerPairLog
public static int maxPerPairLogMaximum number of per-pair "Connecting … <-> …" lines to print fromassignPointMatches(java.util.HashMap<mpicbg.spim.data.sequence.ViewId, mpicbg.models.Tile<M>>, java.util.ArrayList<net.preibisch.mvrecon.process.interestpointregistration.pairwise.constellation.grouping.Group<mpicbg.spim.data.sequence.ViewId>>, java.util.Collection<mpicbg.spim.data.sequence.ViewId>)before the per-pair output is suppressed. Set toInteger.MAX_VALUEto print everything (legacy behavior). The end-of-run summary (per-(labelA,labelB) pair-count + min/avg/max correspondences) is always emitted regardless of this threshold.
-
-
Constructor Details
-
InterestPointMatchCreator
public InterestPointMatchCreator(List<? extends net.imglib2.util.Pair<? extends net.imglib2.util.Pair<mpicbg.spim.data.sequence.ViewId, mpicbg.spim.data.sequence.ViewId>, ? extends PairwiseResult<?>>> pairs, Map<mpicbg.spim.data.sequence.ViewId, ? extends Map<String, Double>> labelMap)
-
-
Method Details
-
getAllViews
- Specified by:
getAllViewsin interfacePointMatchCreator- Returns:
- - all views that this class knows and that are part of the global opt, called first
-
assignPointMatches
public <M extends mpicbg.models.Model<M>> void assignPointMatches(HashMap<mpicbg.spim.data.sequence.ViewId, mpicbg.models.Tile<M>> tileMap, ArrayList<Group<mpicbg.spim.data.sequence.ViewId>> groups, Collection<mpicbg.spim.data.sequence.ViewId> fixedViews) Description copied from interface:PointMatchCreatorassign pointmatches for all views that this object knows and that are present in tileMap.keySet(), which comes from getAllViews() plus what is in the group definition of the globalopt called last- Specified by:
assignPointMatchesin interfacePointMatchCreator- Type Parameters:
M- model type- Parameters:
tileMap- - the map from viewId to Tilegroups- - which groups exist (one might need it?)fixedViews- - which views are fixed (one might need it?)
-
assignWeights
public <M extends mpicbg.models.Model<M>> void assignWeights(HashMap<mpicbg.spim.data.sequence.ViewId, mpicbg.models.Tile<M>> tileMap, ArrayList<Group<mpicbg.spim.data.sequence.ViewId>> groups, Collection<mpicbg.spim.data.sequence.ViewId> fixedViews) Description copied from interface:PointMatchCreatorBy default all weights are 1, if wanted one can adjust them here, otherwise simply return. The idea is to modify the weights in the PointMatchGeneric objects, that are later on just added called second- Specified by:
assignWeightsin interfacePointMatchCreator- Type Parameters:
M- model type- Parameters:
tileMap- - the map from viewId to Tilegroups- - which groups existfixedViews- - which views are fixed (one might need it?)
-
assignWeights
public static <M extends mpicbg.models.Model<M>> void assignWeights(List<? extends net.imglib2.util.Pair<? extends net.imglib2.util.Pair<mpicbg.spim.data.sequence.ViewId, mpicbg.spim.data.sequence.ViewId>, ? extends PairwiseResult<?>>> pairs, ArrayList<Group<mpicbg.spim.data.sequence.ViewId>> groups, HashMap<mpicbg.spim.data.sequence.ViewId, mpicbg.models.Tile<M>> tileMap)
-