Namespace: Rx::LFR – Class: CExport – Header: Rx.LFR/Export.h

CExport::SaveMeshPLY Static Method

C++
static void SaveMeshPLY(const CRxString& sxFile, const CRxImage& xImgFocus, const CRxImage& xImgDepth3D, bool bUseVD, const double* pdCropXYZ)

Saves the 3D mesh provided by the given 3D depth image to binary PLY format. Uses the Total Focus image as color values for each point in the data.

Parameters

[const CRxString&] sxFile

[in] The output file name.

[const CRxImage&] xImgFocus

[in] The total focus image used as color values for each vertex in the mesh. Must be of type RGBA unsigned char or luminance unsigned char.

[const CRxImage&] xImgDepth3D

[in] The 3D depth image. Must be of type RGBA float.

[bool] bUseVD

[in] True to save the mesh in virtual depth units instead of metric units.

[const double*] pdCropXYZ

(Optional) [in] Pointer to 6 double values defining a mesh crop in X, Y and Z. The first 4 double values must be given in percentage of the image dimension in the order: Left, Right, Top, Bottom. The next 2 values must be given as absolute depth values in the order: Minimum, Maximum. If both values are 0, no depth crop is applied.