Documentation of 'boofcv.alg.feature.describe.DescribePlanar' Java class
DescribePlanar
boofcv.alg.feature.describe

Class DescribePlanar<T extends ImageGray,Desc extends TupleDesc>

  • All Implemented Interfaces:
    DescribeRegionPoint<Planar<T>,Desc>, DescriptorInfo<Desc>


    public abstract class DescribePlanar<T extends ImageGray,Desc extends TupleDesc>
    extends java.lang.Object
    implements DescribeRegionPoint<Planar<T>,Desc>
    Computes a feature description from Planar images by computing a descriptor separately in each band. The output descriptor is computed by concatenating the descriptors for each bands together. So [1,2,3] and [3,4,5] from a two band image will become [1,2,3,3,4,5].
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      double getCanonicalWidth()
      Returns the width of the square (or approximation of) sample region at a scale of one.
      java.lang.Class<Desc> getDescriptionType()
      The type of region descriptor generated
      boolean process(double x, double y, double orientation, double radius, Desc description)
      Extract a description of the local image at the given point, scale, and orientation.
      boolean requiresOrientation()
      True if the descriptor uses orientation information.
      boolean requiresRadius()
      If size information is used when computing the descriptor.
      void setImage(Planar<T> image)
      Specified the image which is to be processed.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DescribePlanar

        public DescribePlanar(DescribeRegionPoint<T,Desc>[] describers)
        Configuration
        Parameters:
        describers - A descriptor for each band in the image.
    • Method Detail

      • process

        public boolean process(double x,
                               double y,
                               double orientation,
                               double radius,
                               Desc description)
        Description copied from interface: DescribeRegionPoint
        Extract a description of the local image at the given point, scale, and orientation. 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 DescribeRegionPoint<Planar<T extends ImageGray>,Desc extends TupleDesc>
        Parameters:
        x - Coordinate of the point.
        y - Coordinate of the point.
        orientation - Direction the feature is pointing at in radians. 0 = x-axis PI/2 = y-axis
        radius - Radius of the detected object in pixels.
        description - (output) Storage for extracted feature. Use DescriptorInfo.createDescription() to create descriptor.
        Returns:
        true if a descriptor can computed or false if not.
      • getCanonicalWidth

        public double getCanonicalWidth()
        Description copied from interface: DescribeRegionPoint
        Returns the width of the square (or approximation of) sample region at a scale of one. When multiplied by the scale, pixels outside of the square region should not influence the descriptor's value.
        Specified by:
        getCanonicalWidth in interface DescribeRegionPoint<Planar<T extends ImageGray>,Desc extends TupleDesc>
        Returns:
        width of descriptor at a scale of one

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.