Package boofcv.abst.feature.dense
Class GenericDenseDescribeImageDense<T extends ImageBase<T>,Desc extends TupleDesc<Desc>>
java.lang.Object
boofcv.abst.feature.dense.GenericDenseDescribeImageDense<T,Desc>
- All Implemented Interfaces:
DescribeImageDense<T,
,Desc> DescriptorInfo<Desc>
public class GenericDenseDescribeImageDense<T extends ImageBase<T>,Desc extends TupleDesc<Desc>>
extends Object
implements DescribeImageDense<T,Desc>
Dense feature computation which uses
DescribePointRadiusAngle
internally.-
Constructor Summary
ConstructorDescriptionGenericDenseDescribeImageDense
(DescribePointRadiusAngle<T, Desc> alg, double descriptorScale, double samplePeriodX, double samplePeriodY) Configures dense description. -
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(double descriptorRegionScale, double periodX, double periodY) Configures size of the descriptor and the frequency at which it's computedCreates new description instance which can be processed by this classReturns a list of the computed descriptions.The type of region descriptor generatedDescription of the type of image it can processReturns a list of locations that the descriptors are computed atvoid
Processes the image and computes the dense image features.
-
Constructor Details
-
GenericDenseDescribeImageDense
public GenericDenseDescribeImageDense(DescribePointRadiusAngle<T, Desc> alg, double descriptorScale, double samplePeriodX, double samplePeriodY) Configures dense description.- Parameters:
alg
- Sparse feature sampler.descriptorScale
- 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 Details
-
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
Description copied from interface:DescribeImageDense
Processes the image and computes the dense image features. -
getDescriptions
Description copied from interface:DescribeImageDense
Returns 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:
getDescriptions
in interfaceDescribeImageDense<T extends ImageBase<T>,
Desc extends TupleDesc<Desc>> - Returns:
- list of descriptions
-
getLocations
Description copied from interface:DescribeImageDense
Returns 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:
getLocations
in interfaceDescribeImageDense<T extends ImageBase<T>,
Desc extends TupleDesc<Desc>> - Returns:
- list of descriptions
-
getImageType
Description copied from interface:DescribeImageDense
Description of the type of image it can process- Specified by:
getImageType
in interfaceDescribeImageDense<T extends ImageBase<T>,
Desc extends TupleDesc<Desc>> - Returns:
- ImageDataType
-
createDescription
Description copied from interface:DescriptorInfo
Creates new description instance which can be processed by this class- Specified by:
createDescription
in interfaceDescriptorInfo<T extends ImageBase<T>>
- Returns:
- New descriptor
-
getDescriptionType
Description copied from interface:DescriptorInfo
The type of region descriptor generated- Specified by:
getDescriptionType
in interfaceDescriptorInfo<T extends ImageBase<T>>
- Returns:
- Returns the descriptor type.
-