Class FactoryWeights

java.lang.Object
boofcv.factory.weights.FactoryWeights

public class FactoryWeights extends Object
Factory for creating sample weight functions of different types.
  • Constructor Details

    • FactoryWeights

      public FactoryWeights()
  • Method Details

    • distance

      public static WeightDistance_F32 distance(WeightType type, float param, boolean safe)
      Creates a weight function for the provided distributions.
      Parameters:
      type - Which type of distribution should be used
      param - Distribution parameters. For uniform this is the maximum distance. Guassian its the standard deviation.
      safe - If true it will then check the input distance to see if it matches.
      Returns:
      WeightDistance_F32
    • pixel

      public static WeightPixel_F32 pixel(WeightType type, boolean safe)
      Creates a weight function for the provided distributions.
      Parameters:
      type - Which type of distribution should be used
      safe - If true it will then check the input distance to see if it matches.
      Returns:
      WeightDistance_F32