boofcv.struct.feature
Class TupleDesc_B
- java.lang.Object
-
- boofcv.struct.feature.TupleDesc_B
-
- All Implemented Interfaces:
- TupleDesc<TupleDesc_B>
public class TupleDesc_B extends java.lang.Object implements TupleDesc<TupleDesc_B>
Binary descriptor which is stored inside of an array of ints.
-
-
Constructor Summary
Constructors Constructor and Description TupleDesc_B(int numBits)TupleDesc_B(int numBits, int numInts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description TupleDesc_Bcopy()Creates a copy of this descriptiondoublegetDouble(int index)Returns the value of a tuple's element as a double.booleanisBitTrue(int bit)voidsetTo(TupleDesc_B source)Sets this tuple to be the same as the provided tupleintsize()Number of elements in the tuple.
-
-
-
Constructor Detail
-
TupleDesc_B
public TupleDesc_B(int numBits)
-
TupleDesc_B
public TupleDesc_B(int numBits, int numInts)
-
-
Method Detail
-
isBitTrue
public boolean isBitTrue(int bit)
-
copy
public TupleDesc_B copy()
Description copied from interface:TupleDescCreates a copy of this description- Specified by:
copyin interfaceTupleDesc<TupleDesc_B>- Returns:
- Copy
-
setTo
public void setTo(TupleDesc_B source)
Description copied from interface:TupleDescSets this tuple to be the same as the provided tuple- Specified by:
setToin interfaceTupleDesc<TupleDesc_B>- 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_B>- 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_B>- Returns:
- Number of elements in the tuple
-
-
DataMelt 3.0 © DataMelt by jWork.ORG