public class NormalizedPatch extends Object
Modifier and Type | Field and Description |
---|---|
FImage |
normalisedPatch
The extracted patch, might be null, might be the SLUT_WORKSPACE.
|
boolean |
positive
Is this patch positive, i.e.
|
static FImage |
SLUT_WORKSPACE
The slut workspace gets around a little bit.
|
FImage |
source
The image to extract this patch from
|
static int |
TLD_PATCH_SIZE
Normalised patch size
|
Rectangle |
window
The window to extract form the source
|
Constructor and Description |
---|
NormalizedPatch() |
Modifier and Type | Method and Description |
---|---|
float |
calculateVariance()
calculate the variance, sets the valueImg if it is null
|
void |
prepareNormalisedPatch()
for construction of a new normalised patch
|
protected FImage |
zoomAndNormaliseTo(FImage holder)
A function which uses
ResizeProcessor.zoom(FImage, Rectangle, FImage, Rectangle, ResizeFilterFunction)
on a to put window form
source into normalisedPatch. |
public static final int TLD_PATCH_SIZE
public static final FImage SLUT_WORKSPACE
public boolean positive
public FImage normalisedPatch
public NormalizedPatch()
protected FImage zoomAndNormaliseTo(FImage holder)
ResizeProcessor.zoom(FImage, Rectangle, FImage, Rectangle, ResizeFilterFunction)
on a to put window
form
source
into normalisedPatch.
This is not a convenient function but it allows for very efficient
resize/normalisation process (with minimal new stuff constructed)holder
- public float calculateVariance()
public void prepareNormalisedPatch()