Package boofcv.alg.video
Class RelativeBetter.ErrorHardRatio
java.lang.Object
boofcv.alg.video.RelativeBetter.ErrorHardRatio
- All Implemented Interfaces:
RelativeBetter
- Enclosing interface:
- RelativeBetter
Compares error metrics (0.0 = best, larger is worse) with a hard minimum in the value of B to dampen
noise for small values and avoid divide by zero errors.
-
Nested Class Summary
Nested classes/interfaces inherited from interface boofcv.alg.video.RelativeBetter
RelativeBetter.ErrorHardRatio, RelativeBetter.ErrorHardRatioSq, RelativeBetter.MaximizeSoftRatio -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecomputeBetterValue(double valueA, double valueB) Computes how good valueA is relative to valueB.
-
Constructor Details
-
ErrorHardRatio
public ErrorHardRatio(double minimumB)
-
-
Method Details
-
computeBetterValue
public double computeBetterValue(double valueA, double valueB) Description copied from interface:RelativeBetterComputes how good valueA is relative to valueB. If equal or N is better than 0.0 is returned. Otherwise a positive value is returned.- Specified by:
computeBetterValuein interfaceRelativeBetter- Parameters:
valueA- Goodness value for AvalueB- Goodness value for B- Returns:
- goodness ratio of A over B
-