Package boofcv.alg.scene.bow
Class InvertedFile
java.lang.Object
org.ddogleg.struct.DogArray_I32
boofcv.alg.scene.bow.InvertedFile
- All Implemented Interfaces:
DogArrayPrimitive<DogArray_I32>
The inverted file is a list of images that were observed in a particular node. Images are
referenced by array index. This class extends DogArray_I32 to remove the need to store
an additional java object. might be pre-mature optimization.
[1] Nister, David, and Henrik Stewenius. "Scalable recognition with a vocabulary tree." 2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'06). Vol. 2. Ieee, 2006.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.ddogleg.struct.DogArray_I32
DogArray_I32.Filter, DogArray_I32.FunctionApplyIdx, DogArray_I32.FunctionEach, DogArray_I32.FunctionEachIdx
-
Field Summary
Fields inherited from class org.ddogleg.struct.DogArray_I32
data, size
-
Constructor Summary
-
Method Summary
Methods inherited from class org.ddogleg.struct.DogArray_I32
add, addAll, addAll, applyIdx, array, contains, copy, count, count, extend, fill, fill, flip, forEach, forIdx, get, getFraction, getTail, getTail, indexOf, indexOfGreatest, indexOfLeast, insert, isEquals, isEquals, parseHex, pop, push, range, remove, remove, removeSwap, removeTail, reserve, resetResize, resize, resize, resize, set, setTail, setTo, setTo, setTo, shuffle, size, sort, sort, toArray, unsafe_get, zero, zeros
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ddogleg.struct.DogArrayPrimitive
isEmpty, isIndexOutOfBounds, reserveIncrease
-
Field Details
-
weights
-
-
Constructor Details
-
InvertedFile
public InvertedFile()
-
-
Method Details
-
addImage
public void addImage(int index, float weight) -
reset
- Specified by:
reset
in interfaceDogArrayPrimitive<DogArray_I32>
- Overrides:
reset
in classDogArray_I32
-