Package boofcv.struct.feature
Class TupleDesc_F32
java.lang.Object
boofcv.struct.feature.TupleDesc_F32
- All Implemented Interfaces:
TupleDesc<TupleDesc_F32>,Serializable
@Generated("boofcv.struct.feature.TupleDesc_F64")
public class TupleDesc_F32
extends Object
implements TupleDesc<TupleDesc_F32>
Basic description of an image feature's attributes using an array.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTupleDesc_F32(float... values) TupleDesc_F32(int numFeatures) -
Method Summary
Modifier and TypeMethodDescriptionvoidfill(float value) floatget(int index) doublegetDouble(int index) Returns the value of a tuple's element as a double.booleanisEquals(TupleDesc_F32 tuple) Returns true if the type data structure are identicalvoidsetTo(float... value) voidsetTo(TupleDesc_F32 source) Sets this tuple to be the same as the provided tupleintsize()Number of elements in the tuple.
-
Field Details
-
data
public float[] data
-
-
Constructor Details
-
TupleDesc_F32
public TupleDesc_F32(int numFeatures) -
TupleDesc_F32
public TupleDesc_F32(float... values) -
TupleDesc_F32
protected TupleDesc_F32()
-
-
Method Details
-
get
public float get(int index) -
setTo
public void setTo(float... value) -
fill
public void fill(float value) -
setTo
Description copied from interface:TupleDescSets this tuple to be the same as the provided tuple- Specified by:
setToin interfaceTupleDesc<TupleDesc_F32>- Parameters:
source- 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<TupleDesc_F32>- 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<TupleDesc_F32>
-
size
public int size()Description copied from interface:TupleDescNumber of elements in the tuple.- Specified by:
sizein interfaceTupleDesc<TupleDesc_F32>- Returns:
- Number of elements in the tuple
-
newInstance
- Specified by:
newInstancein interfaceTupleDesc<TupleDesc_F32>
-