boofcv.abst.feature.dense
Class GenericDenseDescribeImageDense<T extends ImageBase,Desc extends TupleDesc>
- java.lang.Object
-
- boofcv.abst.feature.dense.GenericDenseDescribeImageDense<T,Desc>
-
- All Implemented Interfaces:
- DescribeImageDense<T,Desc>, DescriptorInfo<Desc>
public class GenericDenseDescribeImageDense<T extends ImageBase,Desc extends TupleDesc> extends java.lang.Object implements DescribeImageDense<T,Desc>
Dense feature computation which usesDescribeRegionPointinternally.
-
-
Constructor Summary
Constructors Constructor and Description GenericDenseDescribeImageDense(DescribeRegionPoint<T,Desc> alg, double scaleToRadius, double descriptorScale, double samplePeriodX, double samplePeriodY)Configures dense description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidconfigure(double descriptorRegionScale, double periodX, double periodY)Configures size of the descriptor and the frequency at which it's computedDesccreateDescription()Creates new description instance which can be processed by this classjava.util.List<Desc>getDescriptions()Returns a list of the computed descriptions.java.lang.Class<Desc>getDescriptionType()The type of region descriptor generatedImageType<T>getImageType()Description of the type of image it can processjava.util.List<Point2D_I32>getLocations()Returns a list of locations that the descriptors are computed atvoidprocess(T input)Processes the image and computes the dense image features.
-
-
-
Constructor Detail
-
GenericDenseDescribeImageDense
public GenericDenseDescribeImageDense(DescribeRegionPoint<T,Desc> alg, double scaleToRadius, double descriptorScale, double samplePeriodX, double samplePeriodY)
Configures dense description.- Parameters:
alg- Sparse feature sampler.scaleToRadius- Conversion between requested descriptor scale to its actual radiusdescriptorScale- Relative scale of the descriptor's regionsamplePeriodX- How frequently the image is sampled in pixels. X-axissamplePeriodY- How frequently the image is sampled in pixels. Y-axis
-
-
Method Detail
-
configure
public void configure(double descriptorRegionScale, double periodX, double periodY)Configures size of the descriptor and the frequency at which it's computed- Parameters:
descriptorRegionScale- Relative size of the descriptor region to its canonical sizeperiodX- Period in pixels along x-axis of samplesperiodY- Period in pixels along y-axis of samples
-
process
public void process(T input)
Description copied from interface:DescribeImageDenseProcesses the image and computes the dense image features.
-
getDescriptions
public java.util.List<Desc> getDescriptions()
Description copied from interface:DescribeImageDenseReturns a list of the computed descriptions.
The list and everything contained inside of it are owned by this class and subject to modification the next time
DescribeImageDense.process(ImageBase)is called.- Specified by:
getDescriptionsin interfaceDescribeImageDense<T extends ImageBase,Desc extends TupleDesc>- Returns:
- list of descriptions
-
getLocations
public java.util.List<Point2D_I32> getLocations()
Description copied from interface:DescribeImageDenseReturns a list of locations that the descriptors are computed at
The list and everything contained inside of it are owned by this class and subject to modification the next time
DescribeImageDense.process(ImageBase)is called.- Specified by:
getLocationsin interfaceDescribeImageDense<T extends ImageBase,Desc extends TupleDesc>- Returns:
- list of descriptions
-
getImageType
public ImageType<T> getImageType()
Description copied from interface:DescribeImageDenseDescription of the type of image it can process- Specified by:
getImageTypein interfaceDescribeImageDense<T extends ImageBase,Desc extends TupleDesc>- Returns:
- ImageDataType
-
createDescription
public Desc createDescription()
Description copied from interface:DescriptorInfoCreates new description instance which can be processed by this class- Specified by:
createDescriptionin interfaceDescriptorInfo<Desc extends TupleDesc>- Returns:
- New descriptor
-
getDescriptionType
public java.lang.Class<Desc> getDescriptionType()
Description copied from interface:DescriptorInfoThe type of region descriptor generated- Specified by:
getDescriptionTypein interfaceDescriptorInfo<Desc extends TupleDesc>- Returns:
- Returns the descriptor type.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG