Class ConvertDescriptors

java.lang.Object
boofcv.alg.descriptor.ConvertDescriptors

public class ConvertDescriptors extends Object
Converts between different types of descriptions
  • Constructor Details

    • ConvertDescriptors

      public ConvertDescriptors()
  • Method Details

    • positive

      public static 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.
      Parameters:
      input - Description with elements that are all positive
      output - Unsigned 8-bit output
    • signed

      public 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.
      Parameters:
      input - Description with elements that are all positive
      output - Unsigned 8-bit output
    • float_F64_F32

      public static void float_F64_F32(TupleDesc_F64 input, TupleDesc_F32 output)
      Converts double into float by type casting
    • convertNcc

      public static void convertNcc(TupleDesc_F64 input, NccFeature output)
      Converts a regular feature description into a NCC feature description
      Parameters:
      input - Tuple descriptor. (not modified)
      output - The equivalent NCC feature. (modified)