Package boofcv.alg.descriptor
Class ConvertDescriptors
java.lang.Object
boofcv.alg.descriptor.ConvertDescriptors
Converts between different types of descriptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
convertNcc
(TupleDesc_F64 input, NccFeature output) Converts a regular feature description into a NCC feature descriptionstatic void
float_F64_F32
(TupleDesc_F64 input, TupleDesc_F32 output) Converts double into float by type castingstatic void
positive
(TupleDesc_F64 input, TupleDesc_U8 output) Converts a floating point description with all positive values into the 8-bit integer descriptor by dividing each element in the input by the element maximum value and multiplying by 255.static void
signed
(TupleDesc_F64 input, TupleDesc_S8 output) Converts a floating point description with signed real values into the 8-bit integer descriptor by dividing each element in the input by the element maximum absolute value and multiplying by 127.
-
Constructor Details
-
ConvertDescriptors
public ConvertDescriptors()
-
-
Method Details
-
positive
Converts a floating point description with all positive values into the 8-bit integer descriptor by dividing each element in the input by the element maximum value and multiplying by 255.- Parameters:
input
- Description with elements that are all positiveoutput
- Unsigned 8-bit output
-
signed
Converts a floating point description with signed real values into the 8-bit integer descriptor by dividing each element in the input by the element maximum absolute value and multiplying by 127.- Parameters:
input
- Description with elements that are all positiveoutput
- Unsigned 8-bit output
-
float_F64_F32
Converts double into float by type casting -
convertNcc
Converts a regular feature description into a NCC feature description- Parameters:
input
- Tuple descriptor. (not modified)output
- The equivalent NCC feature. (modified)
-