Package boofcv.struct.feature
Class NccFeature
java.lang.Object
boofcv.struct.feature.NccFeature
- All Implemented Interfaces:
TupleDesc<NccFeature>,Serializable
Description for normalized cross correlation (NCC). The descriptor's value in a NCC feature is the pixel intensity value minus the mean pixel intensity value.
value[i] = I(x,y) - mean- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a copy of this descriptionvoidfill(double value) doubleget(int index) doublegetDouble(int index) Returns the value of a tuple's element as a double.booleanisEquals(NccFeature tuple) Returns true if the type data structure are identicalvoidsetTo(double... value) voidsetTo(NccFeature src) Sets this tuple to be the same as the provided tupleintsize()Number of elements in the tuple.
-
Field Details
-
mean
public double meanMean pixel intensity Can be used to reconstruct the original values of the template. -
sigma
public double sigmastandard deviation of pixel intensity -
data
public double[] dataStorage for each element in the feature
-
-
Constructor Details
-
NccFeature
public NccFeature(int numFeatures) -
NccFeature
protected NccFeature()
-
-
Method Details
-
copy
Description copied from interface:TupleDescCreates a copy of this description- Specified by:
copyin interfaceTupleDesc<NccFeature>- Returns:
- Copy
-
get
public double get(int index) -
setTo
public void setTo(double... value) -
fill
public void fill(double value) -
setTo
Description copied from interface:TupleDescSets this tuple to be the same as the provided tuple- Specified by:
setToin interfaceTupleDesc<NccFeature>- Parameters:
src- The tuple which this one is to become a copy of.
-
getDouble
public double getDouble(int index) Description copied from interface:TupleDescReturns the value of a tuple's element as a double. In general this function should not be used because of how inefficient it is.- Specified by:
getDoublein interfaceTupleDesc<NccFeature>- Parameters:
index- Which element- Returns:
- Element's value as a double
-
isEquals
Description copied from interface:TupleDescReturns true if the type data structure are identical- Specified by:
isEqualsin interfaceTupleDesc<NccFeature>
-
size
public int size()Description copied from interface:TupleDescNumber of elements in the tuple.- Specified by:
sizein interfaceTupleDesc<NccFeature>- Returns:
- Number of elements in the tuple
-
newInstance
- Specified by:
newInstancein interfaceTupleDesc<NccFeature>
-