Package boofcv.alg.geo.calibration
Class ScoreCalibrationFill
java.lang.Object
boofcv.alg.geo.calibration.ScoreCalibrationFill
Computes a score for amount of coverage across the image, with independent scores for the border region and inner
image. All the regions which are not filled can be computed also. Score is simply fraction of specified region filled.
A region is filled if a single point occupies it.
Size of regions along the border and inner image can be specified different. Regions will have a rectangular shape
as the scale factor is determined by the image's aspect ratio.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Specifies where a region is and if it's an inner region or border region. -
Field Summary
Modifier and TypeFieldDescriptionint
actual distance from border of control pointsfinal ConfigLength
How close to the edge a point needs is to be considered along the image border.protected int
Shape of expected imageprotected int
Shape of expected imageprotected int
image shape minus the borderprotected int
image shape minus the borderint
Number of regions the border along each side will be broken up intoint
Number of regions along one axis the inner image is broken up intoStorage for unoccupied regions. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
See if any observed calibration points hit a target.void
initialize
(int width, int height) Resets and initializes for an image of the specified shapevoid
Updates list of unoccupied regions
-
Field Details
-
borderExtent
How close to the edge a point needs is to be considered along the image border. If relative, then it's relative to the average side length -
regionsBorder
public int regionsBorderNumber of regions the border along each side will be broken up into -
regionsInner
public int regionsInnerNumber of regions along one axis the inner image is broken up into -
actualBorderPx
public int actualBorderPxactual distance from border of control points -
unoccupiedRegions
Storage for unoccupied regions. Must be updated by callingupdateUnoccupied()
-
imageWidth
protected int imageWidthShape of expected image -
imageHeight
protected int imageHeightShape of expected image -
innerWidth
protected int innerWidthimage shape minus the border -
innerHeight
protected int innerHeightimage shape minus the border
-
-
Constructor Details
-
ScoreCalibrationFill
public ScoreCalibrationFill()
-
-
Method Details
-
initialize
public void initialize(int width, int height) Resets and initializes for an image of the specified shape -
addObservation
See if any observed calibration points hit a target. if so remove the target. -
updateUnoccupied
public void updateUnoccupied()Updates list of unoccupied regions
-