SupportProjection model and distortion #174
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New feature
SpatialAugmentedTensor
so that we can inherit for other types of tensor. Two projection models are supported:pinhole
andequidistant
. Default values arepinhole
and1.0
for distortion so it won't change anything for initialization if we are working on "pinhole" image. Onlyaloscene.Depth
is supported for distortion and equidistant projection at this time.Depth.as_points3d
is now supported equidistant model with distortion. If no projection model and distortion are specified in arguments,as_points3d
uses theprojection
anddistortion
property.Depth.as_planar
andDepth.as_euclidean
now useprojection
anddistortion
property if there is no projection model and distortion specified in arguments.Depth.__get_view__
now has color legend iflegend
is setTrue
.