Package boofcv.struct.feature
Class TupleDesc_B
java.lang.Object
boofcv.struct.feature.TupleDesc_B
- All Implemented Interfaces:
TupleDesc<TupleDesc_B>
,Serializable
Binary descriptor which is stored inside of an array of ints.
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getDouble
(int index) Returns the value of a tuple's element as a double.boolean
isBitTrue
(int bit) boolean
isEquals
(TupleDesc_B tuple) Returns true if the type data structure are identicalvoid
setBit
(int bit, boolean value) void
setTo
(TupleDesc_B source) Sets this tuple to be the same as the provided tupleint
size()
Number of elements in the tuple.
-
Field Details
-
data
public int[] data -
numBits
public int numBits
-
-
Constructor Details
-
TupleDesc_B
public TupleDesc_B(int numBits) -
TupleDesc_B
public TupleDesc_B(int numBits, int numInts)
-
-
Method Details
-
isBitTrue
public boolean isBitTrue(int bit) -
setBit
public void setBit(int bit, boolean value) -
setTo
Description copied from interface:TupleDesc
Sets this tuple to be the same as the provided tuple- Specified by:
setTo
in 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: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_B>
- 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_B>
-
size
public int size()Description copied from interface:TupleDesc
Number of elements in the tuple.- Specified by:
size
in interfaceTupleDesc<TupleDesc_B>
- Returns:
- Number of elements in the tuple
-
newInstance
- Specified by:
newInstance
in interfaceTupleDesc<TupleDesc_B>
-