Skip to content

Aligned Point Cloud using wrong intrinsics? #2002

@jb455

Description

@jb455
Required Info
Camera Model D400
Firmware Version 05.09.11.00
Operating System & Version Win10
Platform PC
SDK Version 2.13.0
Language C++/C#

Hi,
I'm trying to create a point cloud from a depth frame which has been aligned to colour, but I'm getting bad results. I think the problem is that the point cloud is being calculated using the depth camera intrinsics, instead of the colour camera intrinsics which, to my understanding, should be used after alignment.
I'm trying to follow through align.cpp to confirm this and it looks as though create_aligned_profile overwrites the 'to' (colour in this case) intrinsics with the 'original' (depth) intrinsics, causing the issue later on when the point cloud is calculated.

Can anyone confirm this please?

PS: It would be useful to add a 'GetVertices' method to the Points class in the C# wrapper as below, to make the method for obtaining the vertices clearer and easier (with similar for TextureCoordinates):

public Vertex[] GetVertices()
{
    var vertexArray = new Vertex[Count];
    points.CopyTo(vertexArray);
    return vertexArray;
}

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions