public class ScaleSceneStructure
extends java.lang.Object
Homogenous:
Each point is normalized such that the F-norm is equal to 1. Same goes for translation if metric.
Regular:
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.
| Modifier and Type | Field and Description |
|---|---|
org.ddogleg.struct.FastQueue<NormalizationPoint2D> |
pixelScaling
Pixel scaling for each view
|
| Constructor and Description |
|---|
ScaleSceneStructure() |
ScaleSceneStructure(double desiredDistancePoint)
Configures how scaling is applied
|
| Modifier and Type | Method and Description |
|---|---|
void |
applyScale(SceneStructureMetric structure,
SceneObservations observations)
Applies the scale transform to the input scene structure.
|
void |
applyScale(SceneStructureProjective structure,
SceneObservations observations)
Applies the scale transform to the input scene structure.
|
void |
applyScaleToPixelsAndCameraMatrix(SceneStructureProjective structure,
SceneObservations observations) |
boolean |
isScalePixelsUsingStats() |
void |
setScalePixelsUsingStats(boolean scalePixelsUsingStats) |
void |
undoScale(SceneStructureMetric structure,
SceneObservations observations)
Undoes scale transform for metric.
|
void |
undoScale(SceneStructureProjective structure,
SceneObservations observations)
Undoes scale transform for projective scenes
|
void |
undoScaleToPixelsAndCameraMatrix(SceneStructureProjective structure,
SceneObservations observations) |
public org.ddogleg.struct.FastQueue<NormalizationPoint2D> pixelScaling
public ScaleSceneStructure(double desiredDistancePoint)
desiredDistancePoint - desired scale for points to havepublic ScaleSceneStructure()
public void applyScale(SceneStructureMetric structure, SceneObservations observations)
structure - 3D sceneobservations - Observations of the scenepublic void applyScale(SceneStructureProjective structure, SceneObservations observations)
structure - 3D sceneobservations - Observations of the scenepublic void applyScaleToPixelsAndCameraMatrix(SceneStructureProjective structure, SceneObservations observations)
public void undoScaleToPixelsAndCameraMatrix(SceneStructureProjective structure, SceneObservations observations)
public void undoScale(SceneStructureMetric structure, SceneObservations observations)
structure - scene's structureobservations - observations of the scenepublic void undoScale(SceneStructureProjective structure, SceneObservations observations)
structure - scene's structureobservations - observations of the scenepublic boolean isScalePixelsUsingStats()
public void setScalePixelsUsingStats(boolean scalePixelsUsingStats)