public abstract class GlobalOptimizationType extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
considerTimePointsAsUnit |
Constructor and Description |
---|
GlobalOptimizationType(SpimData2 spimData,
List<ViewId> viewIdsToProcess,
List<ChannelProcess> channelsToProcess,
boolean considerTimePointsAsUnit) |
Modifier and Type | Method and Description |
---|---|
void |
addCorrespondences(List<PairwiseMatch> pairs)
Add all correspondences the list for those that are compared here
This method can be overwritten if saving, adding & clearing of correspondences is different for a certain type of registration
|
protected abstract List<GlobalOptimizationSubset> |
assembleAllViewPairs() |
void |
clearExistingCorrespondences(GlobalOptimizationSubset set)
Clear all lists of existing correspondences for those that are compared here
This method can be overwritten if saving, adding & clearing of correspondences is different for a certain type of registration
|
boolean |
considerTimePointsAsUnit() |
List<GlobalOptimizationSubset> |
getAllViewPairs() |
protected static ChannelProcess |
getChannelProcessForChannel(List<ChannelProcess> cpList,
Channel c) |
Set<ViewId> |
getFixedTiles() |
protected HashMap<ViewId,MatchPointList> |
getInterestPoints(TimePoint timepoint)
Creates lists of input points for the registration, based on the current transformation of the views
Note: this always duplicates the location array from the input List> InterestPoint < !!!
|
AbstractModel<?> |
getMapBackModel()
The transformation model used to map back to the reference frame (can be null)
|
ViewId |
getMapBackReferenceTile(GlobalOptimizationSubset set)
In case there is one tile which would be reference tile, return this one - can be null.
|
SpimData2 |
getSpimData() |
boolean |
isFixedTile(ViewId viewId) |
protected static boolean |
isValid(ViewId viewId,
MatchPointList list) |
void |
saveCorrespondences(GlobalOptimizationSubset set)
Save all lists of existing correspondences for those that are compared here
This method can be overwritten if saving, adding & clearing of correspondences is different for a certain type of registration
|
void |
setFixedTiles(Set<ViewId> fixedTiles) |
void |
setMapBackModel(AbstractModel<?> model) |
void |
setMapBackReferenceTile(GlobalOptimizationSubset set,
ViewId referenceTile) |
void |
setMapBackReferenceTiles(Map<GlobalOptimizationSubset,ViewId> referenceTiles) |
public GlobalOptimizationType(SpimData2 spimData, List<ViewId> viewIdsToProcess, List<ChannelProcess> channelsToProcess, boolean considerTimePointsAsUnit)
protected abstract List<GlobalOptimizationSubset> assembleAllViewPairs()
public List<GlobalOptimizationSubset> getAllViewPairs()
public boolean isFixedTile(ViewId viewId)
viewId
- public void setFixedTiles(Set<ViewId> fixedTiles)
fixedTiles
- - the set of fixed tiles, can be empty, but not NULLpublic ViewId getMapBackReferenceTile(GlobalOptimizationSubset set)
set
- - the current set that will be globally optimizedpublic void setMapBackReferenceTile(GlobalOptimizationSubset set, ViewId referenceTile)
set
- - for which subsetreferenceTile
- - set reference tile for mapping backpublic void setMapBackReferenceTiles(Map<GlobalOptimizationSubset,ViewId> referenceTiles)
referenceTiles
- - set all reference tilespublic AbstractModel<?> getMapBackModel()
public void setMapBackModel(AbstractModel<?> model)
model
- - The transformation model used to map back to the reference frame (can be null)public boolean considerTimePointsAsUnit()
public SpimData2 getSpimData()
protected HashMap<ViewId,MatchPointList> getInterestPoints(TimePoint timepoint)
timepoint
- protected static ChannelProcess getChannelProcessForChannel(List<ChannelProcess> cpList, Channel c)
public void addCorrespondences(List<PairwiseMatch> pairs)
pairs
- public void saveCorrespondences(GlobalOptimizationSubset set)
set
- public void clearExistingCorrespondences(GlobalOptimizationSubset set)
set
- protected static boolean isValid(ViewId viewId, MatchPointList list)
Copyright © 2015–2021 Fiji. All rights reserved.