Class GlobalOptTwoRound
java.lang.Object
net.preibisch.mvrecon.process.interestpointregistration.global.GlobalOptTwoRound
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassembleViews(Set<mpicbg.models.Tile<?>> set, HashMap<mpicbg.spim.data.sequence.ViewId, ? extends mpicbg.models.Tile<?>> models) static <M extends mpicbg.models.Model<M> & mpicbg.models.Affine3D<M>>
HashMap<mpicbg.spim.data.sequence.ViewId, M> computeModels(M model, boolean preAlign, PointMatchCreator pmc, IterativeConvergenceStrategy csStrong, LinkRemovalStrategy lms, Collection<net.imglib2.util.Pair<Group<mpicbg.spim.data.sequence.ViewId>, Group<mpicbg.spim.data.sequence.ViewId>>> removedInconsistentPairs, WeakLinkFactory wlf, ConvergenceStrategy csWeak, Collection<mpicbg.spim.data.sequence.ViewId> fixedViews, Collection<Group<mpicbg.spim.data.sequence.ViewId>> groupsIn) static <M extends mpicbg.models.Model<M> & mpicbg.models.Affine3D<M>>
HashMap<mpicbg.spim.data.sequence.ViewId, M> computeModels(M model, boolean preAlign, PointMatchCreator pmc, IterativeConvergenceStrategy csStrong, LinkRemovalStrategy lms, WeakLinkFactory wlf, ConvergenceStrategy csWeak, Collection<mpicbg.spim.data.sequence.ViewId> fixedViews, Collection<Group<mpicbg.spim.data.sequence.ViewId>> groupsIn) static <M extends mpicbg.models.Model<M> & mpicbg.models.Affine3D<M>>
HashMap<mpicbg.spim.data.sequence.ViewId, mpicbg.models.Tile<M>> computeTiles(M model, boolean preAlign, PointMatchCreator pmc, IterativeConvergenceStrategy csStrong, LinkRemovalStrategy lms, Collection<net.imglib2.util.Pair<Group<mpicbg.spim.data.sequence.ViewId>, Group<mpicbg.spim.data.sequence.ViewId>>> removedInconsistentPairs, WeakLinkFactory wlf, ConvergenceStrategy csWeak, Collection<mpicbg.spim.data.sequence.ViewId> fixedViews, Collection<Group<mpicbg.spim.data.sequence.ViewId>> groupsIn)
-
Constructor Details
-
GlobalOptTwoRound
public GlobalOptTwoRound()
-
-
Method Details
-
computeModels
public static <M extends mpicbg.models.Model<M> & mpicbg.models.Affine3D<M>> HashMap<mpicbg.spim.data.sequence.ViewId,M> computeModels(M model, boolean preAlign, PointMatchCreator pmc, IterativeConvergenceStrategy csStrong, LinkRemovalStrategy lms, WeakLinkFactory wlf, ConvergenceStrategy csWeak, Collection<mpicbg.spim.data.sequence.ViewId> fixedViews, Collection<Group<mpicbg.spim.data.sequence.ViewId>> groupsIn) - Type Parameters:
M- mpicbg model type- Parameters:
model- - the transformation model to run the global optimizations onpreAlign- - whether to call TileConfiguration.preAlign or use the current transformationspmc- - the pointmatch creator (makes mpicbg PointMatches from anything, e.g. corresponding interest points or stitching results)csStrong- - the Iterative Convergence strategy applied to the strong links, as created by the pmclms- - decides for the iterative global optimization that is run on the strong links, which link to drop in an iterationwlf- - a factory for creating weak links for the not optimized views.csWeak- - the convergence strategy for optimizing the weak links, typically this is a new ConvergenceStrategy( Double.MAX_VALUE );fixedViews- - which views are fixedgroupsIn- - which views are grouped- Returns:
- map from view id to resulting transform
-
computeModels
public static <M extends mpicbg.models.Model<M> & mpicbg.models.Affine3D<M>> HashMap<mpicbg.spim.data.sequence.ViewId,M> computeModels(M model, boolean preAlign, PointMatchCreator pmc, IterativeConvergenceStrategy csStrong, LinkRemovalStrategy lms, Collection<net.imglib2.util.Pair<Group<mpicbg.spim.data.sequence.ViewId>, Group<mpicbg.spim.data.sequence.ViewId>>> removedInconsistentPairs, WeakLinkFactory wlf, ConvergenceStrategy csWeak, Collection<mpicbg.spim.data.sequence.ViewId> fixedViews, Collection<Group<mpicbg.spim.data.sequence.ViewId>> groupsIn) - Type Parameters:
M- mpicbg model type- Parameters:
model- - the transformation model to run the global optimizations onpreAlign- - whether to call TileConfiguration.preAlign or use the current transformationspmc- - the pointmatch creator (makes mpicbg PointMatches from anything, e.g. corresponding interest points or stitching results)csStrong- - the Iterative Convergence strategy applied to the strong links, as created by the pmclms- - decides for the iterative global optimization that is run on the strong links, which link to drop in an iterationremovedInconsistentPairs- - optional Collection in which pairs that were identified to be inconsistent and were removed are added (can be null)wlf- - a factory for creating weak links for the not optimized views.csWeak- - the convergence strategy for optimizing the weak links, typically this is a new ConvergenceStrategy( Double.MAX_VALUE );fixedViews- - which views are fixedgroupsIn- - which views are grouped- Returns:
- map from view id to resulting transform
-
computeTiles
public static <M extends mpicbg.models.Model<M> & mpicbg.models.Affine3D<M>> HashMap<mpicbg.spim.data.sequence.ViewId,mpicbg.models.Tile<M>> computeTiles(M model, boolean preAlign, PointMatchCreator pmc, IterativeConvergenceStrategy csStrong, LinkRemovalStrategy lms, Collection<net.imglib2.util.Pair<Group<mpicbg.spim.data.sequence.ViewId>, Group<mpicbg.spim.data.sequence.ViewId>>> removedInconsistentPairs, WeakLinkFactory wlf, ConvergenceStrategy csWeak, Collection<mpicbg.spim.data.sequence.ViewId> fixedViews, Collection<Group<mpicbg.spim.data.sequence.ViewId>> groupsIn) - Type Parameters:
M- mpicbg model type- Parameters:
model- - the transformation model to run the global optimizations onpreAlign- - whether to call TileConfiguration.preAlign or use the current transformationspmc- - the pointmatch creator (makes mpicbg PointMatches from anything, e.g. corresponding interest points or stitching results)csStrong- - the Iterative Convergence strategy applied to the strong links, as created by the pmclms- - decides for the iterative global optimization that is run on the strong links, which link to drop in an iterationremovedInconsistentPairs- - optional Collection in which pairs that were identified to be inconsistent and were removed are added (can be null)wlf- - a factory for creating weak links for the not optimized views.csWeak- - the convergence strategy for optimizing the weak links, typically this is a new ConvergenceStrategy( Double.MAX_VALUE );fixedViews- - which views are fixedgroupsIn- - which views are grouped- Returns:
- map from view id to resulting transform
-
assembleViews
public static Group<mpicbg.spim.data.sequence.ViewId> assembleViews(Set<mpicbg.models.Tile<?>> set, HashMap<mpicbg.spim.data.sequence.ViewId, ? extends mpicbg.models.Tile<?>> models)
-