public class LikelihoodHistCoupled_PL_U8 extends java.lang.Object implements PixelLikelihood<boofcv.struct.image.Planar<boofcv.struct.image.GrayU8>>
Creates a histogram in a color image and is used to identify the likelihood of an color being a member of the original distribution. The histogram is computed in N-dimensional space, where N is the number of bands in the color image. The number of bins for each band is specified in the constructor. There is a total of N*numBins elements in the histogram.
Design Note:
The reason operations in GHistogramFeatureOps is not used internally is because
those are for histograms stored in double arrays, while this has to use floats/
| Constructor and Description |
|---|
LikelihoodHistCoupled_PL_U8(int maxPixelValue,
int numBins) |
| Modifier and Type | Method and Description |
|---|---|
float |
compute(int x,
int y) |
void |
createModel(georegression.struct.shapes.RectangleLength2D_I32 target)
Specifies where the initial location of the target is in the image and computes the model using pixels
inside the rectangle
|
boolean |
isInBounds(int x,
int y) |
void |
setImage(boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> image)
Sets the input image
|
public LikelihoodHistCoupled_PL_U8(int maxPixelValue,
int numBins)
public void setImage(boofcv.struct.image.Planar<boofcv.struct.image.GrayU8> image)
PixelLikelihoodsetImage in interface PixelLikelihood<boofcv.struct.image.Planar<boofcv.struct.image.GrayU8>>setImage in interface boofcv.struct.sparse.SparseImageOperator<boofcv.struct.image.Planar<boofcv.struct.image.GrayU8>>public boolean isInBounds(int x,
int y)
isInBounds in interface boofcv.struct.sparse.SparseImageOperator<boofcv.struct.image.Planar<boofcv.struct.image.GrayU8>>public void createModel(georegression.struct.shapes.RectangleLength2D_I32 target)
PixelLikelihoodcreateModel in interface PixelLikelihood<boofcv.struct.image.Planar<boofcv.struct.image.GrayU8>>target - Location of target inside the imagepublic float compute(int x,
int y)
compute in interface boofcv.struct.sparse.SparseImageSample_F32<boofcv.struct.image.Planar<boofcv.struct.image.GrayU8>>