Package boofcv.abst.geo.bundle
Class ScaleSceneStructure
- java.lang.Object
-
- boofcv.abst.geo.bundle.ScaleSceneStructure
-
public class ScaleSceneStructure extends java.lang.ObjectNormalizes variables in the scene to improve optimization performance. Different normalization is applied depending on the points being homogenous or not, metric or projective.Homogenous:
Each point is normalized such that the F-norm is equal to 1. Same goes for translation if metric.Regular:
How to use this class.
If points are 3D then their mean and standard deviation are computed. The points are transformed such that the set will have a mean of zero and a standard deviation of 1.- Call applyScale() to compute and then apply the transform
- Call undoScale() to revert back to the original coordinate system
-
-
Field Summary
Fields Modifier and Type Field Description org.ddogleg.struct.FastQueue<NormalizationPoint2D>pixelScalingPixel scaling for each view
-
Constructor Summary
Constructors Constructor Description ScaleSceneStructure()ScaleSceneStructure(double desiredDistancePoint)Configures how scaling is applied
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyScale(SceneStructureMetric structure, SceneObservations observations)Applies the scale transform to the input scene structure.voidapplyScale(SceneStructureProjective structure, SceneObservations observations)Applies the scale transform to the input scene structure.voidapplyScaleToPixelsAndCameraMatrix(SceneStructureProjective structure, SceneObservations observations)booleanisScalePixelsUsingStats()voidsetScalePixelsUsingStats(boolean scalePixelsUsingStats)voidundoScale(SceneStructureMetric structure, SceneObservations observations)Undoes scale transform for metric.voidundoScale(SceneStructureProjective structure, SceneObservations observations)Undoes scale transform for projective scenesvoidundoScaleToPixelsAndCameraMatrix(SceneStructureProjective structure, SceneObservations observations)
-
-
-
Field Detail
-
pixelScaling
public org.ddogleg.struct.FastQueue<NormalizationPoint2D> pixelScaling
Pixel scaling for each view
-
-
Method Detail
-
applyScale
public void applyScale(SceneStructureMetric structure, SceneObservations observations)
Applies the scale transform to the input scene structure. Metric.- Parameters:
structure- 3D sceneobservations- Observations of the scene
-
applyScale
public void applyScale(SceneStructureProjective structure, SceneObservations observations)
Applies the scale transform to the input scene structure. Metric.- Parameters:
structure- 3D sceneobservations- Observations of the scene
-
applyScaleToPixelsAndCameraMatrix
public void applyScaleToPixelsAndCameraMatrix(SceneStructureProjective structure, SceneObservations observations)
-
undoScaleToPixelsAndCameraMatrix
public void undoScaleToPixelsAndCameraMatrix(SceneStructureProjective structure, SceneObservations observations)
-
undoScale
public void undoScale(SceneStructureMetric structure, SceneObservations observations)
Undoes scale transform for metric.- Parameters:
structure- scene's structureobservations- observations of the scene
-
undoScale
public void undoScale(SceneStructureProjective structure, SceneObservations observations)
Undoes scale transform for projective scenes- Parameters:
structure- scene's structureobservations- observations of the scene
-
isScalePixelsUsingStats
public boolean isScalePixelsUsingStats()
-
setScalePixelsUsingStats
public void setScalePixelsUsingStats(boolean scalePixelsUsingStats)
-
-