Class Subset<V>
java.lang.Object
net.preibisch.mvrecon.process.interestpointregistration.pairwise.constellation.grouping.Group<V>
net.preibisch.mvrecon.process.interestpointregistration.pairwise.constellation.Subset<V>
- All Implemented Interfaces:
Serializable,Iterable<V>
- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateGroupsForAllViews(Set<V> views, Set<Group<V>> groups) Create a Set of groups that contains all views, with |group| >= 1.static <V> HashSet<V> filterPresentViews(Set<V> views, List<V> fixedViews) Checks which fixed views are present in the views list and puts them into a HashMapstatic <V> ArrayList<net.imglib2.util.Pair<V, V>> Fix an additional list of views (removes pairs from subsets and sets list of fixed views)Computes a list of grouped views that need to be compared, expressed as pairs.getPairs()protected voidsetFixedViews(Set<V> fixedViews) Methods inherited from class net.preibisch.mvrecon.process.interestpointregistration.pairwise.constellation.grouping.Group
combineBy, combineOrSplitBy, contains, containsBoth, equals, filterMissingViews, filterMissingViews, getGroupsSorted, getViews, getViewsSorted, groupByChannel, gvids, gvids, hashCode, isContained, iterator, main, memberOf, merge, mergeAllOverlappingGroups, mergeOverlapping, nextOverlappingGroup, overlappingGroups, overlaps, pvid, pvids, removeEmptyGroups, size, splitBy, toGroup, toGroups, toString, toViewIdGroup, toViewIdGroupsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Subset
-
-
Method Details
-
getPairs
-
getGroups
-
getFixedViews
-
setFixedViews
-
fixViews
Fix an additional list of views (removes pairs from subsets and sets list of fixed views)- Parameters:
fixedViews- - the fixed views- Returns:
- - the removed pairs due to fixed views
-
getGroupedPairs
Computes a list of grouped views that need to be compared, expressed as pairs. Single views are expressed as groups with cardinality 1. Then idea is that for pairwise comparisons, the algorithm groups views (e.g. all interestpoints) before running the actual algorithm.- Returns:
- list of grouped views that need to be compared
-
createGroupsForAllViews
Create a Set of groups that contains all views, with |group| >= 1.- Type Parameters:
V- view id type- Parameters:
views- all viewsgroups- the groups- Returns:
- set of groups
-
filterPresentViews
Checks which fixed views are present in the views list and puts them into a HashMap- Type Parameters:
V- view id type- Parameters:
views- all views to considerfixedViews- input fixed views- Returns:
- fixed views that area also in views
-
fixViews
public static <V> ArrayList<net.imglib2.util.Pair<V,V>> fixViews(HashSet<V> fixedSubsetViews, List<net.imglib2.util.Pair<V, V>> pairs, Set<Group<V>> groups)
-