boofcv.struct.feature
Class TupleDesc_F32
- java.lang.Object
-
- boofcv.struct.feature.TupleDesc_F32
-
- All Implemented Interfaces:
- TupleDesc<TupleDesc_F32>
public class TupleDesc_F32 extends java.lang.Object implements TupleDesc<TupleDesc_F32>
Basic description of an image feature's attributes using an array.
-
-
Field Summary
Fields Modifier and Type Field and Description float[]value
-
Constructor Summary
Constructors Constructor and Description TupleDesc_F32(int numFeatures)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description TupleDesc_F32copy()Creates a copy of this descriptiondoublegetDouble(int index)Returns the value of a tuple's element as a double.float[]getValue()voidset(float... value)voidsetTo(TupleDesc_F32 source)Sets this tuple to be the same as the provided tuplevoidsetValue(float[] value)intsize()Number of elements in the tuple.
-
-
-
Method Detail
-
set
public void set(float... value)
-
copy
public TupleDesc_F32 copy()
Description copied from interface:TupleDescCreates a copy of this description- Specified by:
copyin interfaceTupleDesc<TupleDesc_F32>- Returns:
- Copy
-
getValue
public float[] getValue()
-
setValue
public void setValue(float[] value)
-
setTo
public void setTo(TupleDesc_F32 source)
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
-
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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG