Class DescribePointAbstract<T extends ImageBase<T>,TD extends TupleDesc<TD>>

java.lang.Object
boofcv.abst.feature.describe.DescribePointAbstract<T,TD>
All Implemented Interfaces:
DescribePoint<T,TD>, DescriptorInfo<TD>

public abstract class DescribePointAbstract<T extends ImageBase<T>,TD extends TupleDesc<TD>> extends Object implements DescribePoint<T,TD>
Default implementations for all functions in DescribePoint. Primary for testing purposes.
  • Field Details

  • Constructor Details

    • DescribePointAbstract

      protected DescribePointAbstract()
    • DescribePointAbstract

      protected DescribePointAbstract(BoofLambdas.Factory<TD> factory)
  • Method Details

    • setImage

      public void setImage(T image)
      Description copied from interface: DescribePoint
      Specified the image which is to be processed.
      Specified by:
      setImage in interface DescribePoint<T extends ImageBase<T>,TD extends TupleDesc<TD>>
      Parameters:
      image - The image which contains the features.
    • process

      public boolean process(double x, double y, TD description)
      Description copied from interface: DescribePoint
      Extract a description of the local image at the the pixel coordinate of the point. WARNING: Check the returned value to make sure a description was actually computed. Some implementations might now allow features to extend outside the image border and will return false.
      Specified by:
      process in interface DescribePoint<T extends ImageBase<T>,TD extends TupleDesc<TD>>
      Parameters:
      x - Coordinate of the point.
      y - Coordinate of the point.
      description - (output) Storage for extracted feature. Use DescriptorInfo.createDescription() to create descriptor.
      Returns:
      true if a descriptor can computed or false if not.
    • getImageType

      public ImageType<T> getImageType()
      Description copied from interface: DescribePoint
      Description of the type of image it can process
      Specified by:
      getImageType in interface DescribePoint<T extends ImageBase<T>,TD extends TupleDesc<TD>>
      Returns:
      ImageDataType
    • createDescription

      public TD createDescription()
      Description copied from interface: DescriptorInfo
      Creates new description instance which can be processed by this class
      Specified by:
      createDescription in interface DescriptorInfo<T extends ImageBase<T>>
      Returns:
      New descriptor
    • getDescriptionType

      public Class<TD> getDescriptionType()
      Description copied from interface: DescriptorInfo
      The type of region descriptor generated
      Specified by:
      getDescriptionType in interface DescriptorInfo<T extends ImageBase<T>>
      Returns:
      Returns the descriptor type.