Package boofcv.struct.feature
Interface TupleDesc<T extends TupleDesc>
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
Histogram_F64,NccFeature,TupleDesc_B,TupleDesc_F32,TupleDesc_F64,TupleDesc_I8,TupleDesc_S8,TupleDesc_U8
Base class for tuple based feature descriptors
-
Method Summary
Modifier and TypeMethodDescriptiondefault Tcopy()Creates a copy of this descriptiondoublegetDouble(int index) Returns the value of a tuple's element as a double.booleanReturns true if the type data structure are identicalvoidSets this tuple to be the same as the provided tupleintsize()Number of elements in the tuple.
-
Method Details
-
setTo
Sets this tuple to be the same as the provided tuple- Parameters:
source- The tuple which this one is to become a copy of.
-
getDouble
double getDouble(int index) 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.- Parameters:
index- Which element- Returns:
- Element's value as a double
-
isEquals
Returns true if the type data structure are identical -
size
int size()Number of elements in the tuple.- Returns:
- Number of elements in the tuple
-
copy
Creates a copy of this description- Returns:
- Copy
-
newInstance
T newInstance()
-