Package boofcv.struct.feature
Class TupleDesc_F64
java.lang.Object
boofcv.struct.feature.TupleDesc_F64
- All Implemented Interfaces:
TupleDesc<TupleDesc_F64>
,Serializable
- Direct Known Subclasses:
Histogram_F64
Basic description of an image feature's attributes using an array.
- See Also:
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
TupleDesc_F64
(double... values) TupleDesc_F64
(int numFeatures) -
Method Summary
Modifier and TypeMethodDescriptionvoid
fill
(double value) double
get
(int index) double
getDouble
(int index) Returns the value of a tuple's element as a double.boolean
isEquals
(TupleDesc_F64 tuple) Returns true if the type data structure are identicalvoid
setTo
(double... value) void
setTo
(TupleDesc_F64 source) Sets this tuple to be the same as the provided tupleint
size()
Number of elements in the tuple.
-
Field Details
-
data
public double[] data
-
-
Constructor Details
-
TupleDesc_F64
public TupleDesc_F64(int numFeatures) -
TupleDesc_F64
public TupleDesc_F64(double... values) -
TupleDesc_F64
protected TupleDesc_F64()
-
-
Method Details
-
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<TupleDesc_F64>
- Parameters:
source
- 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<TupleDesc_F64>
- 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<TupleDesc_F64>
-
size
public int size()Description copied from interface:TupleDesc
Number of elements in the tuple.- Specified by:
size
in interfaceTupleDesc<TupleDesc_F64>
- Returns:
- Number of elements in the tuple
-
newInstance
- Specified by:
newInstance
in interfaceTupleDesc<TupleDesc_F64>
-