public class TldVarianceFilter<T extends boofcv.struct.image.ImageGray<T>>
extends java.lang.Object
setImage(ImageGray) must be done
so that it can compute the required integral images. See paper for mathematical details on how the variance
is computed using integral images.| Modifier | Constructor and Description |
|---|---|
protected |
TldVarianceFilter() |
|
TldVarianceFilter(java.lang.Class<T> imageType)
Constructor which specifies the input image type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkVariance(boofcv.struct.ImageRectangle r)
Performs variance test at the specified rectangle
|
protected double |
computeVariance(int x0,
int y0,
int x1,
int y1)
Computes the variance inside the specified rectangle.
|
protected double |
computeVarianceSafe(int x0,
int y0,
int x1,
int y1)
Computes the variance inside the specified rectangle.
|
double |
getThresholdLower() |
void |
selectThreshold(boofcv.struct.ImageRectangle r)
Selects a threshold based on image statistics.
|
void |
setImage(T gray)
Sets the input image.
|
static void |
transformSq(boofcv.struct.image.GrayF32 input,
boofcv.struct.image.GrayF64 transformed)
Integral image of pixel value squared.
|
static void |
transformSq(boofcv.struct.image.GrayU8 input,
boofcv.struct.image.GrayS64 transformed)
Integral image of pixel value squared.
|
public TldVarianceFilter(java.lang.Class<T> imageType)
imageType - Either GrayU8 or GrayF32protected TldVarianceFilter()
public void setImage(T gray)
gray - input imagepublic void selectThreshold(boofcv.struct.ImageRectangle r)
public boolean checkVariance(boofcv.struct.ImageRectangle r)
protected double computeVariance(int x0,
int y0,
int x1,
int y1)
protected double computeVarianceSafe(int x0,
int y0,
int x1,
int y1)
public static void transformSq(boofcv.struct.image.GrayU8 input,
boofcv.struct.image.GrayS64 transformed)
public static void transformSq(boofcv.struct.image.GrayF32 input,
boofcv.struct.image.GrayF64 transformed)
public double getThresholdLower()