Class MetaDataWeakLinkCreator<N extends mpicbg.models.Model<N>>
java.lang.Object
net.preibisch.mvrecon.process.interestpointregistration.global.pointmatchcreating.weak.WeakLinkPointMatchCreator<N>
net.preibisch.mvrecon.process.interestpointregistration.global.pointmatchcreating.weak.MetaDataWeakLinkCreator<N>
- All Implemented Interfaces:
PointMatchCreator
public class MetaDataWeakLinkCreator<N extends mpicbg.models.Model<N>>
extends WeakLinkPointMatchCreator<N>
Uses the previous state as an approximate knowledge for the metadata of the acquisition. New Groups (connected through strong links) will be transformed together,
and are mapped back in average to their positions before the global opt run that aligned them relative to each other.
-
Constructor Summary
ConstructorsConstructorDescriptionMetaDataWeakLinkCreator(HashMap<mpicbg.spim.data.sequence.ViewId, mpicbg.models.Tile<N>> models1, OverlapDetection<mpicbg.spim.data.sequence.ViewId> overlapDetection, Map<mpicbg.spim.data.sequence.ViewId, mpicbg.spim.data.registration.ViewRegistration> viewRegistrations) -
Method Summary
Modifier and TypeMethodDescription<M extends mpicbg.models.Model<M>>
voidassignPointMatches(HashMap<mpicbg.spim.data.sequence.ViewId, mpicbg.models.Tile<M>> models2, 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.Methods inherited from class net.preibisch.mvrecon.process.interestpointregistration.global.pointmatchcreating.weak.WeakLinkPointMatchCreator
getAllViews
-
Constructor Details
-
MetaDataWeakLinkCreator
public MetaDataWeakLinkCreator(HashMap<mpicbg.spim.data.sequence.ViewId, mpicbg.models.Tile<N>> models1, OverlapDetection<mpicbg.spim.data.sequence.ViewId> overlapDetection, Map<mpicbg.spim.data.sequence.ViewId, mpicbg.spim.data.registration.ViewRegistration> viewRegistrations) - Parameters:
models1- - the models from the first round of global optimizationoverlapDetection- - an interface implementation to identify which views overlapviewRegistrations- - the Registrations that are the basis for the whole global optimization (MetaData)
-
-
Method Details
-
assignPointMatches
public <M extends mpicbg.models.Model<M>> void assignPointMatches(HashMap<mpicbg.spim.data.sequence.ViewId, mpicbg.models.Tile<M>> models2, 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- Type Parameters:
M- model type- Parameters:
models2- - 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- Type Parameters:
M- model type- Parameters:
tileMap- - the map from viewId to Tilegroups- - which groups existfixedViews- - which views are fixed (one might need it?)
-