BagOfVisualWordsTPoint, TFeature, TClustering, TExtractor Class |
Namespace: Accord.Imaging
[SerializableAttribute] public class BagOfVisualWords<TPoint, TFeature, TClustering, TExtractor> : BaseBagOfVisualWords<BagOfVisualWords<TPoint, TFeature, TClustering, TExtractor>, TPoint, TFeature, TClustering, TExtractor> where TPoint : Object, IFeatureDescriptor<TFeature> where TClustering : Object, IUnsupervisedLearning<IClassifier<TFeature, int>, TFeature, int> where TExtractor : Object, IImageFeatureExtractor<TPoint>
The BagOfVisualWordsTPoint, TFeature, TClustering, TExtractor type exposes the following members.
Name | Description | |
---|---|---|
BagOfVisualWordsTPoint, TFeature, TClustering, TExtractor |
Constructs a new BagOfVisualWords.
|
Name | Description | |
---|---|---|
Clustering |
Gets the clustering algorithm used to create this model.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
Detector |
Gets the feature extractor used to identify features in the input data.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
MaxDescriptorsPerInstance |
Gets or sets the maximum number of descriptors per image that should be
used to learn the codebook. Default is 0 (meaning to use all descriptors).
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
NumberOfDescriptors |
Gets or sets the maximum number of descriptors that should be used
to learn the codebook. Default is 0 (meaning to use all descriptors).
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
NumberOfInputs |
Gets the number of inputs accepted by the model.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
NumberOfOutputs |
Gets the number of outputs generated by the model.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
NumberOfWords |
Gets the number of words in this codebook.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
ParallelOptions |
Gets or sets the parallelization options for this algorithm.
(Inherited from ParallelLearningBase.) | |
Statistics |
Gets statistics about the last codebook learned.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
Token |
Gets or sets a cancellation token that can be used
to cancel the algorithm while it is running.
(Inherited from ParallelLearningBase.) |
Name | Description | |
---|---|---|
Compute(Bitmap) | Obsolete.
Computes the Bag of Words model.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Compute(TPoint) | Obsolete.
Computes the Bag of Words model.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Compute(Bitmap, Double) | Obsolete.
Computes the Bag of Words model.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
For |
Executes a parallel for using the feature detector in a thread-safe way.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
GetFeatureVector(ListTFeature) | Obsolete.
Gets the codeword representation of a given image.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
GetFeatureVector(Bitmap) | Obsolete.
Gets the codeword representation of a given image.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
GetFeatureVector(String) | Obsolete.
Gets the codeword representation of a given image.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
GetFeatureVector(UnmanagedImage) | Obsolete.
Gets the codeword representation of a given image.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Init |
Initializes this instance.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
InnerLearnT |
Generic learn method implementation that should work for any input type.
This method is useful for re-using code between methods that accept Bitmap,
BitmapData, UnmanagedImage, filenames as strings, etc.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
Learn(Bitmap, Double) |
Learns a model that can map the given inputs to the desired outputs.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Learn(String, Double) |
Learns a model that can map the given inputs to the desired outputs.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Learn(TFeature, Double) |
Learns a model that can map the given inputs to the desired outputs.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
Learn(TInput, Double) |
Learns a model that can map the given inputs to the desired outputs.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Save(Stream) | Obsolete.
Saves the bag of words to a stream.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Save(String) | Obsolete.
Saves the bag of words to a file.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Transform(Bitmap) |
Applies the transformation to an input, producing an associated output.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Transform(Bitmap) |
Applies the transformation to a set of input vectors,
producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Transform(String) |
Applies the transformation to an input, producing an associated output.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Transform(String) |
Applies the transformation to a set of input vectors,
producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Transform(ListTPoint) |
Applies the transformation to an input, producing an associated output.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
Transform(TInput) |
Applies the transformation to an input, producing an associated output.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
Transform(TInput) |
Applies the transformation to a set of input vectors,
producing an associated set of output vectors.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
Transform(Bitmap, Double) |
Applies the transformation to a set of input vectors,
producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Transform(Bitmap, Int32) |
Applies the transformation to a set of input vectors,
producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Transform(Bitmap, Double) |
Applies the transformation to a set of input vectors,
producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Transform(Bitmap, Int32) |
Applies the transformation to a set of input vectors,
producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Transform(String, Double) |
Applies the transformation to a set of input vectors,
producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Transform(String, Int32) |
Applies the transformation to a set of input vectors,
producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Transform(String, Double) |
Applies the transformation to a set of input vectors,
producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Transform(String, Int32) |
Applies the transformation to a set of input vectors,
producing an associated set of output vectors.
(Inherited from BaseBagOfVisualWordsTModel, TFeature, TPoint, TClustering, TExtractor.) | |
Transform(IEnumerableTPoint, Double) |
Applies the transformation to a set of input vectors,
producing an associated set of output vectors.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
Transform(IEnumerableTPoint, Int32) |
Applies the transformation to a set of input vectors,
producing an associated set of output vectors.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
Transform(TInput, Double) |
Applies the transformation to a set of input vectors,
producing an associated set of output vectors.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
Transform(TInput, Int32) |
Applies the transformation to a set of input vectors,
producing an associated set of output vectors.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
Transform(TInput, Double) |
Applies the transformation to a set of input vectors,
producing an associated set of output vectors.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) | |
Transform(TInput, Int32) |
Applies the transformation to a set of input vectors,
producing an associated set of output vectors.
(Inherited from BaseBagOfWordsTModel, TPoint, TFeature, TClustering, TExtractor, TInput.) |
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
To(Type) | Overloaded.
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.) | |
ToT | Overloaded.
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.) |
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.
Please see BagOfVisualWords.