public class PairNeighbors extends CombineObjectsForFeatures<FeatureInputPairObjects>
Creates a set of features, that creates pairs of neighboring-objects and applies a mixture of single-object features and pair features.

Specifically:

  • Creates a graph of neighboring-objects.
  • Passes each pair of immediately-neighboring objects, together with their merged object, as an input.

Features are formed by duplicating the input-feature list (inputfeatures, single-object features only):

   a) First.inputfeatures     applies the features to the first-object in the pair
   b) Second.inputfeatures    applies the features to the second-object in the pair
   c) Merged.inputfeatures    applies the features to the merged-object
 

Features (that are not duplicated) are also possible:

   d) Image.                                    additional single-object features that don't depend on any individual-object, only the image
   e) Pair.                                     additional pair-features (FeatureInputPairObjects)
 

The column order output is: Image, First, Second, Pair, Merged

For First and Second, we use a cache, to avoid repeated calculations.

Author:
Owen Feehan