Package boofcv.factory.weights
Class FactoryWeights
java.lang.Object
boofcv.factory.weights.FactoryWeights
Factory for creating sample weight functions of different types.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic WeightDistance_F32
distance
(WeightType type, float param, boolean safe) Creates a weight function for the provided distributions.static WeightPixel_F32
pixel
(WeightType type, boolean safe) Creates a weight function for the provided distributions.
-
Constructor Details
-
FactoryWeights
public FactoryWeights()
-
-
Method Details
-
distance
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
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
-