Package | Description |
---|---|
org.openimaj.feature | |
org.openimaj.image.processing.face.feature.comparison | |
org.openimaj.knn | |
org.openimaj.knn.lsh | |
org.openimaj.lsh.functions | |
org.openimaj.math.model.fit.residuals | |
org.openimaj.math.statistics.distribution.metrics | |
org.openimaj.ml.annotation.basic | |
org.openimaj.ml.clustering.assignment.hard | |
org.openimaj.ml.clustering.kmeans |
K-Means in OpenIMAJ is designed to be both extremely fast and flexible.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ByteFVComparator
Comparison/distance methods for ByteFV objects.
|
interface |
DoubleFVComparator
Comparison/distance methods for DoubleFV objects.
|
interface |
FloatFVComparator
Comparison/distance methods for FloatFV objects.
|
interface |
FVComparator<T extends FeatureVector>
Interface for objects that can compare feature vectors
|
interface |
IntFVComparator
Comparison/distance methods for IntFV objects.
|
interface |
LongFVComparator
Comparison/distance methods for LongFV objects.
|
interface |
ShortFVComparator
Comparison/distance methods for ShortFV objects.
|
Modifier and Type | Class and Description |
---|---|
class |
ByteFVComparison
Comparison/distance methods for ByteFV objects.
|
class |
DoubleFVComparison
Comparison/distance methods for DoubleFV objects.
|
class |
FloatFVComparison
Comparison/distance methods for FloatFV objects.
|
class |
IntFVComparison
Comparison/distance methods for IntFV objects.
|
class |
LongFVComparison
Comparison/distance methods for LongFV objects.
|
class |
ShortFVComparison
Comparison/distance methods for ShortFV objects.
|
class |
SparseByteFVComparison
Comparison/distance methods for DoubleFV objects.
|
class |
SparseDoubleFVComparison
Comparison/distance methods for DoubleFV objects.
|
class |
SparseFloatFVComparison
Comparison/distance methods for DoubleFV objects.
|
class |
SparseIntFVComparison
Comparison/distance methods for DoubleFV objects.
|
class |
SparseLongFVComparison
Comparison/distance methods for DoubleFV objects.
|
class |
SparseShortFVComparison
Comparison/distance methods for DoubleFV objects.
|
Modifier and Type | Interface and Description |
---|---|
interface |
FacialFeatureComparator<T extends FacialFeature>
Interface for classes capable of comparing two
FacialFeature s
and producing a score. |
Modifier and Type | Class and Description |
---|---|
class |
DoGSIFTFeatureComparator
A
FacialFeatureComparator for comparing DoGSIFTFeature s. |
class |
FaceFVComparator<T extends FacialFeature & FeatureVectorProvider<Q>,Q extends FeatureVector>
A generic
FacialFeatureComparator for FacialFeature s that can
provide FeatureVector s through the FeatureVectorProvider
interface. |
class |
LtpDtFeatureComparator
A comparator for Local Trinary Pattern Features using a
Euclidean distance transform.
|
class |
ReversedLtpDtFeatureComparator
A comparator for Local Trinary Pattern Features using a
Euclidean distance transform.
|
Modifier and Type | Field and Description |
---|---|
protected DistanceComparator<? super T> |
ObjectNearestNeighbours.distance |
Modifier and Type | Method and Description |
---|---|
DistanceComparator<? super T> |
ObjectNearestNeighbours.distanceComparator()
Get the distance comparator
|
Modifier and Type | Method and Description |
---|---|
static <T> float |
ObjectNearestNeighbours.distanceFunc(DistanceComparator<? super T> distance,
T qu,
T pnt)
Static method to find a distance between a query vector and point.
|
Constructor and Description |
---|
Factory(DistanceComparator<? super T> distance)
Construct the factory with the given distance function for the
produced ObjectNearestNeighbours instances.
|
ObjectNearestNeighbours(DistanceComparator<? super T> distance)
Construct with the given distance measure
|
ObjectNearestNeighboursExact(DistanceComparator<T> distance)
Construct any empty
ObjectNearestNeighboursExact with the given
distance function. |
ObjectNearestNeighboursExact(List<T> pnts,
DistanceComparator<? super T> distance)
Construct the
ObjectNearestNeighboursExact over the provided
dataset with the given distance function. |
ObjectNearestNeighboursExact(T[] pnts,
DistanceComparator<? super T> distance)
Construct the
ObjectNearestNeighboursExact over the provided
dataset with the given distance function. |
Modifier and Type | Field and Description |
---|---|
protected DistanceComparator<OBJECT> |
LSHNearestNeighbours.distanceFcn |
Constructor and Description |
---|
LSHNearestNeighbours(HashFunctionFactory<OBJECT> factory,
int numTables,
DistanceComparator<OBJECT> distanceFcn)
Construct with the given hash function factory which will be used to
initialize the requested number of hash tables.
|
LSHNearestNeighbours(List<HashFunction<OBJECT>> tableHashes,
DistanceComparator<OBJECT> distanceFcn)
Construct with the given hash functions and distance function.
|
Modifier and Type | Method and Description |
---|---|
abstract DistanceComparator<OBJECT> |
RandomisedHashFunctionFactory.distanceFunction() |
DistanceComparator<double[]> |
DoubleHashFunctionFactory.distanceFunction() |
DistanceComparator<byte[]> |
ByteHashFunctionFactory.distanceFunction() |
DistanceComparator<float[]> |
FloatHashFunctionFactory.distanceFunction() |
DistanceComparator<long[]> |
LongHashFunctionFactory.distanceFunction() |
DistanceComparator<short[]> |
ShortHashFunctionFactory.distanceFunction() |
DistanceComparator<int[]> |
IntHashFunctionFactory.distanceFunction() |
Modifier and Type | Field and Description |
---|---|
protected DistanceComparator<D> |
DistanceComparatorResidual.comparator |
Constructor and Description |
---|
DistanceComparatorResidual(DistanceComparator<D> comparator)
Construct with the given
DistanceComparator . |
Modifier and Type | Class and Description |
---|---|
class |
GaussianKLDivergence
Calculate the KL divergence of two multivariate gaussians.
|
class |
SampledMultivariateDistanceComparator
By sampling a distribution and calculating the log liklihood
of those samples against another distribution, construct a distance metric.
|
Modifier and Type | Field and Description |
---|---|
protected DistanceComparator<? super FEATURE> |
KNNAnnotator.comparator |
Modifier and Type | Method and Description |
---|---|
static <OBJECT,ANNOTATION,EXTRACTOR extends FeatureExtractor<FEATURE,OBJECT>,FEATURE> |
KNNAnnotator.create(EXTRACTOR extractor,
DistanceComparator<FEATURE> comparator)
Create a new
KNNAnnotator with the given extractor and
comparator. |
static <OBJECT,ANNOTATION,EXTRACTOR extends FeatureExtractor<FEATURE,OBJECT>,FEATURE> |
KNNAnnotator.create(EXTRACTOR extractor,
DistanceComparator<FEATURE> comparator,
float threshold)
Create a new
KNNAnnotator with the given extractor, comparator
and threshold. |
static <OBJECT,ANNOTATION,EXTRACTOR extends FeatureExtractor<FEATURE,OBJECT>,FEATURE> |
KNNAnnotator.create(EXTRACTOR extractor,
DistanceComparator<FEATURE> comparator,
int k)
Create a new
KNNAnnotator with the given extractor, comparator
and number of neighbours. |
static <OBJECT,ANNOTATION,EXTRACTOR extends FeatureExtractor<FEATURE,OBJECT>,FEATURE> |
KNNAnnotator.create(EXTRACTOR extractor,
DistanceComparator<FEATURE> comparator,
int k,
float threshold)
Create a new
KNNAnnotator with the given extractor, comparator,
number of neighbours and threshold. |
Constructor and Description |
---|
KNNAnnotator(FeatureExtractor<FEATURE,OBJECT> extractor,
DistanceComparator<? super FEATURE> comparator)
Construct with the given extractor and comparator.
|
KNNAnnotator(FeatureExtractor<FEATURE,OBJECT> extractor,
DistanceComparator<? super FEATURE> comparator,
float threshold)
Construct with the given extractor, comparator and threshold.
|
KNNAnnotator(FeatureExtractor<FEATURE,OBJECT> extractor,
DistanceComparator<? super FEATURE> comparator,
int k)
Construct with the given extractor, comparator and number of neighbours.
|
KNNAnnotator(FeatureExtractor<FEATURE,OBJECT> extractor,
DistanceComparator<? super FEATURE> comparator,
int k,
float threshold)
Construct with the given extractor, comparator, number of neighbours and
threshold.
|
Constructor and Description |
---|
ExactFeatureVectorAssigner(CentroidsProvider<T> provider,
DistanceComparator<? super T> comparison)
Construct the assigner using the given cluster data and distance
function.
|
ExactFeatureVectorAssigner(List<T> data,
DistanceComparator<? super T> comparison)
Construct the assigner using the given cluster data and distance
function.
|
ExactFeatureVectorAssigner(T[] data,
DistanceComparator<? super T> comparison)
Construct the assigner using the given cluster data and distance
function.
|
Modifier and Type | Method and Description |
---|---|
static <T extends FeatureVector> |
FeatureVectorKMeans.createExact(int K,
DistanceComparator<? super T> distance)
Convenience method to quickly create an exact
ByteKMeans . |
static <T extends FeatureVector> |
FeatureVectorKMeans.createExact(int K,
DistanceComparator<? super T> distance,
int niters)
Convenience method to quickly create an exact
ByteKMeans . |