Package boofcv.struct.kmeans
Class ComputeMedianTuple_B
java.lang.Object
boofcv.struct.kmeans.ComputeMedianTuple_B
- All Implemented Interfaces:
ComputeMeanClusters<TupleDesc_B>
- Direct Known Subclasses:
ComputeMedianTuple_MT_B
Update cluster assignments for
TupleDesc_B
descriptors.-
Field Summary
Modifier and TypeFieldDescriptionprotected final DogArray_I32
protected final DogArray<int[]>
protected final int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
countBitsInEachCluster
(LArrayAccessor<TupleDesc_B> points, DogArray_I32 assignments) Goes through each point and counts the number of bits are true in each cluster its assigned toprotected void
countsToBits
(FastAccess<TupleDesc_B> clusters) void
process
(LArrayAccessor<TupleDesc_B> points, DogArray_I32 assignments, FastAccess<TupleDesc_B> clusters)
-
Field Details
-
assignmentCounts
-
bitCounts
-
dof
protected final int dof
-
-
Constructor Details
-
ComputeMedianTuple_B
public ComputeMedianTuple_B(int DOF)
-
-
Method Details
-
process
public void process(LArrayAccessor<TupleDesc_B> points, DogArray_I32 assignments, FastAccess<TupleDesc_B> clusters) - Specified by:
process
in interfaceComputeMeanClusters<TupleDesc_B>
-
countBitsInEachCluster
Goes through each point and counts the number of bits are true in each cluster its assigned to -
countsToBits
-
newInstanceThread
- Specified by:
newInstanceThread
in interfaceComputeMeanClusters<TupleDesc_B>
-