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>

public class Subset<V> extends Group<V>
See Also:
  • Constructor Details

  • Method Details

    • getPairs

      public List<net.imglib2.util.Pair<V,V>> getPairs()
    • getGroups

      public Set<Group<V>> getGroups()
    • getFixedViews

      public Set<V> getFixedViews()
    • setFixedViews

      protected void setFixedViews(Set<V> fixedViews)
    • fixViews

      public ArrayList<net.imglib2.util.Pair<V,V>> fixViews(List<V> fixedViews)
      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

      public List<net.imglib2.util.Pair<Group<V>,Group<V>>> 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

      public static <V> ArrayList<Group<V>> createGroupsForAllViews(Set<V> views, Set<Group<V>> groups)
      Create a Set of groups that contains all views, with |group| >= 1.
      Type Parameters:
      V - view id type
      Parameters:
      views - all views
      groups - the groups
      Returns:
      set of groups
    • filterPresentViews

      public 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 HashMap
      Type Parameters:
      V - view id type
      Parameters:
      views - all views to consider
      fixedViews - 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)