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
Nested ClassesModifier and TypeClassDescriptionstatic classSpecifies where a region is and if it's an inner region or border region. -
Field Summary
FieldsModifier and TypeFieldDescriptionintactual distance from border of control pointsfinal ConfigLengthHow close to the edge a point needs is to be considered along the image border.protected intShape of expected imageprotected intShape of expected imageprotected intimage shape minus the borderprotected intimage shape minus the borderintNumber of regions the border along each side will be broken up intointNumber of regions along one axis the inner image is broken up intoStorage for unoccupied regions. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSee if any observed calibration points hit a target.voidinitialize(int width, int height) Resets and initializes for an image of the specified shapevoidUpdates 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
-