poses
Absolute poses associated with views in view set
Description
returns a table of absolute poses associated with the views contained in the view set,
sensorPoses = poses(vSet)vSet.
Examples
Create an empty point cloud view set.
vSet = pcviewset;
Load point cloud data.
data = load('livingRoom.mat');
ptCloud1 = data.livingRoomData{1};
ptCloud2 = data.livingRoomData{2};Add ptCloud1 to the view set.
absPose1 = rigidtform3d;
vSet = addView(vSet,1,absPose1,'PointCloud',ptCloud1);Add ptCloud2 to the view set.
vSet = addView(vSet,2,'PointCloud',ptCloud2);Estimate the rigid transformation between the two point clouds.
ptCloud2Downsampled = pcdownsample(ptCloud2,'gridAverage',0.1);
gridStep = 0.5;
relPose = pcregisterndt(ptCloud2Downsampled,ptCloud1,gridStep);Add a connection between the two views.
vSet = addConnection(vSet,1,2,relPose);
Compute the accumulated absolute pose.
absPose2 = rigidtform3d(absPose1.A * relPose.A);
Update the absolute pose of second view.
vSet = updateView(vSet,2,absPose2);
Get absolute poses.
sensorPoses = poses(vSet)
sensorPoses=2×2 table
ViewId AbsolutePose
______ ________________
1 1×1 rigidtform3d
2 1×1 rigidtform3d
Input Arguments
Point cloud view set, specified as a pcviewset
object.
Output Arguments
Absolute poses, returned as a two-column table. The table contains columns as described in this table.
| Column | Description |
|---|---|
ViewID | View identifier, returned as a positive integer. View identifiers are unique to a specific view. |
AbsolutePose | Absolute pose of the view, returned as a rigidtform3d object. |
Extended Capabilities
When generating code, the output argument sensorPoses is returned
as a structure with fields ViewID and
AbsolutePose.
GPU Code Generation
Generate CUDA® code for NVIDIA® GPUs using GPU Coder™.
Version History
Introduced in R2020aStarting in R2022b, most Computer Vision Toolbox™ functions create and perform geometric transformations using the premultiply
convention. Accordingly, the poses function now returns the
AbsolutePose value in the sensorPoses argument as
a rigidtform3d
object, which uses the premultiply convention. Before, the function returned
AbsolutePose as a rigid3d object,
which uses the postmultiply convention. For more information, see Migrate Geometric Transformations to Premultiply Convention.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)