Click or drag to resize
Accord.NET (logo)

BagOfVisualWordsTPoint, TFeature Class

Bag of Visual Words
Inheritance Hierarchy
SystemObject
  Accord.MachineLearningParallelLearningBase
    Accord.ImagingBaseBagOfVisualWordsBagOfVisualWordsTPoint, TFeature, TPoint, TFeature, IUnsupervisedLearningIClassifierTFeature, Int32, TFeature, Int32, IFeatureDetectorTPoint, TFeature
      Accord.ImagingBagOfVisualWordsTPoint, TFeature

Namespace:  Accord.Imaging
Assembly:  Accord.Vision (in Accord.Vision.dll) Version: 3.7.0
Syntax
[SerializableAttribute]
public class BagOfVisualWords<TPoint, TFeature> : BaseBagOfVisualWords<BagOfVisualWords<TPoint, TFeature>, TPoint, TFeature, IUnsupervisedLearning<IClassifier<TFeature, int>, TFeature, int>, IFeatureDetector<TPoint, TFeature>>
where TPoint : Object, IFeatureDescriptor<TFeature>
Request Example View Source

Type Parameters

TPoint
The IFeaturePointT type to be used with this class, such as SpeededUpRobustFeaturePoint.
TFeature
The feature type of the TPoint, such as double.

The BagOfVisualWordsTPoint, TFeature type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyClustering
Gets the clustering algorithm used to create this model.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public propertyDetector
Gets the SURF feature point detector used to identify visual features in images.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public propertyNumberOfInputs
Gets the number of inputs accepted by the model.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public propertyNumberOfOutputs
Gets the number of outputs generated by the model.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public propertyNumberOfWords
Gets the number of words in this codebook.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public propertyParallelOptions
Gets or sets the parallelization options for this algorithm.
(Inherited from ParallelLearningBase.)
Public propertyToken
Gets or sets a cancellation token that can be used to cancel the algorithm while it is running.
(Inherited from ParallelLearningBase.)
Top
Methods
  NameDescription
Public methodCompute(Bitmap) Obsolete.
Computes the Bag of Words model.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodCompute(TFeature) Obsolete.
Computes the Bag of Words model.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodCompute(Bitmap, Double) Obsolete.
Computes the Bag of Words model.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetFeatureVector(ListTPoint) Obsolete.
Gets the codeword representation of a given image.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodGetFeatureVector(Bitmap) Obsolete.
Gets the codeword representation of a given image.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodGetFeatureVector(UnmanagedImage) Obsolete.
Gets the codeword representation of a given image.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodInit
Initializes this instance.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodLearn(Bitmap, Double)
Learns a model that can map the given inputs to the desired outputs.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodLearn(TFeature, Double)
Learns a model that can map the given inputs to the desired outputs.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodLearn(UnmanagedImage, Double)
Learns a model that can map the given inputs to the desired outputs.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSave(Stream) Obsolete.
Saves the bag of words to a stream.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodSave(String) Obsolete.
Saves the bag of words to a file.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTransform(ListTPoint)
Applies the transformation to an input, producing an associated output.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodTransform(Bitmap)
Applies the transformation to an input, producing an associated output.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodTransform(Bitmap)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodTransform(UnmanagedImage)
Applies the transformation to an input, producing an associated output.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodTransform(UnmanagedImage)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodTransform(IListTPoint, Double)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodTransform(IListTPoint, Int32)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodTransform(Bitmap, Double)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodTransform(Bitmap, Int32)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodTransform(Bitmap, Double)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodTransform(Bitmap, Int32)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodTransform(UnmanagedImage, Double)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodTransform(UnmanagedImage, Int32)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodTransform(UnmanagedImage, Double)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Public methodTransform(UnmanagedImage, Int32)
Applies the transformation to a set of input vectors, producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TPoint, TFeature, TClustering, TDetector.)
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodToT
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
Remarks

The bag-of-words (BoW) model can be used to extract finite length features from otherwise varying length representations. This class can uses any feature detector to determine a coded representation for a given image.

For a simpler, non-generic version of the Bag-of-Words model which defaults to the SURF features detector, please see BagOfVisualWords.

Examples

Please see BagOfVisualWords.

See Also