Skip to main content

M3dregCopy

BoardSupported
Host SystemYes
V4L2Yes
Clarity UHDYes
Concord PoENo
GenTLYes
GevIQYes
GigE VisionYes
IndioNo
Iris GTXYes
Radient eV-CLYes
Rapixo CLYes
Rapixo CoFYes
Rapixo CXPYes
USB3 VisionYes

Copy a preregistration transformation matrix from a 3D registration context into a transformation matrix object.

Syntax

void M3dregCopy(
AIL_ID SrcContext3dregId, //in
AIL_INT SrcIndex, //in
AIL_ID DstMatrix3dgeoId, //out
AIL_INT DstIndex, //in
AIL_INT64 CopyType, //in
AIL_INT64 ControlFlag //in
)

Description

This function copies the preregistration transformation matrix of a registration element in a 3D registration context, into a transformation matrix object. To copy a transformation matrix that M3dregCalculate has calculated, use M3dregCopyResult instead.

Once copied, you can use the transformation matrix with other functions likeM3dimMatrix... and M3dgeoMatrix....

Parameters

SrcContext3dregId (in, AIL_ID)

Specifies the identifier of the 3D registration context. The context must have been previously allocated using M3dregAlloc with M_PAIRWISE_REGISTRATION_CONTEXT.

SrcIndex (in, AIL_INT)

Specifies the index of the registration element in the context.

DstMatrix3dgeoId (out, AIL_ID)

Specifies the identifier of a transformation matrix. The transformation matrix must have been previously allocated using M3dgeoAlloc with M_TRANSFORMATION_MATRIX.

DstIndex (in, AIL_INT)

Reserved for future expansion and must be set to M_DEFAULT.

CopyType (in, AIL_INT64)

Specifies the type of copy operation to perform.

Specifies the type of copy operation

ValueDescription
M_PREREGISTRATION_MATRIXCopies the preregistration transformation matrix found in the registration element of the 3D registration context into a transformation matrix object. This transformation matrix specifies the rough location of a point cloud relative to its reference point cloud, and is initially set using M3dregSetLocation.

ControlFlag (in, AIL_INT64)

Reserved for future expansion and must be set to M_DEFAULT.

Copyright © 2026 Zebra Technologies.