public abstract class DescribePointBinaryCompare<T extends boofcv.struct.image.ImageGray>
extends java.lang.Object
For each bit in the descriptor it samples two points inside an image patch and compares their values. A value of 1 or 0 is assigned depending on their relative values. This type of descriptor is referred to as a random tree [1], random fern, and is used in BRIEF.
[1] Y. Amit and D. Geman. Shape Quantization and Recognition with Randomized Trees. Neural Computation, 9(7):1545–1588, 1997.
| Modifier and Type | Field and Description |
|---|---|
protected BinaryCompareDefinition_I32 |
definition |
protected T |
image |
protected int[] |
offsetsA |
protected int[] |
offsetsB |
| Constructor and Description |
|---|
DescribePointBinaryCompare(BinaryCompareDefinition_I32 definition) |
| Modifier and Type | Method and Description |
|---|---|
BinaryCompareDefinition_I32 |
getDefinition() |
void |
process(int c_x,
int c_y,
TupleDesc_B feature)
Computes the descriptor at the specified point.
|
abstract void |
processBorder(int c_x,
int c_y,
TupleDesc_B feature)
Called if the descriptor region goes outside the image border
|
abstract void |
processInside(int c_x,
int c_y,
TupleDesc_B feature)
Called if the descriptor region is contained entirely inside the image
|
void |
setImage(T image)
Specifies the image from which feature descriptions are to be created.
|
protected BinaryCompareDefinition_I32 definition
protected T extends boofcv.struct.image.ImageGray image
protected int[] offsetsA
protected int[] offsetsB
public DescribePointBinaryCompare(BinaryCompareDefinition_I32 definition)
public void setImage(T image)
image - Image being examined.public void process(int c_x,
int c_y,
TupleDesc_B feature)
c_x - Center of region being described.c_y - Center of region being described.feature - Where the descriptor is written to.public abstract void processInside(int c_x,
int c_y,
TupleDesc_B feature)
public abstract void processBorder(int c_x,
int c_y,
TupleDesc_B feature)
public BinaryCompareDefinition_I32 getDefinition()