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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
Creates a copy of this descriptionvoid
fill
(double value) double
get
(int index) double
getDouble
(int index) Returns the value of a tuple's element as a double.boolean
isEquals
(NccFeature tuple) Returns true if the type data structure are identicalvoid
setTo
(double... value) void
setTo
(NccFeature src) Sets this tuple to be the same as the provided tupleint
size()
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:TupleDesc
Creates a copy of this description- Specified by:
copy
in 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:TupleDesc
Sets this tuple to be the same as the provided tuple- Specified by:
setTo
in 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:TupleDesc
Returns 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:
getDouble
in interfaceTupleDesc<NccFeature>
- Parameters:
index
- Which element- Returns:
- Element's value as a double
-
isEquals
Description copied from interface:TupleDesc
Returns true if the type data structure are identical- Specified by:
isEquals
in interfaceTupleDesc<NccFeature>
-
size
public int size()Description copied from interface:TupleDesc
Number of elements in the tuple.- Specified by:
size
in interfaceTupleDesc<NccFeature>
- Returns:
- Number of elements in the tuple
-
newInstance
- Specified by:
newInstance
in interfaceTupleDesc<NccFeature>
-