boofcv.factory.weights
Class FactoryWeights
- java.lang.Object
-
- boofcv.factory.weights.FactoryWeights
-
public class FactoryWeights extends java.lang.ObjectFactory for creating sample weight functions of different types.
-
-
Constructor Summary
Constructors Constructor and Description FactoryWeights()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static WeightDistance_F32distance(WeightType type, float param, boolean safe)Creates a weight function for the provided distributions.static WeightPixel_F32pixel(WeightType type, boolean safe)Creates a weight function for the provided distributions.
-
-
-
Method Detail
-
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 usedparam- 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 usedsafe- If true it will then check the input distance to see if it matches.- Returns:
- WeightDistance_F32
-
-
DataMelt 3.0 © DataMelt by jWork.ORG