Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: Bolli on July 18, 2022, 03:36:21 PM

Title: Exporting Dense Cloud as Points; No Point Confidence Field
Post by: Bolli on July 18, 2022, 03:36:21 PM
Hi All,

I'm exporting dense cloud points for viewing in another application. The other half of my workflow requires point confidence to be included in the exported PLY file. My exports from the GUI with the AIP generated dense cloud are just fine when I have all the boxes checked, but my exports from the API lack the required Point Confidence field in the PLY despite using the TRUE argument (below). The API exported PLYs look fine otherwise.

Code: [Select]
    chunk.buildDenseCloud(point_colors=True, point_confidence=True, keep_depth=True)
    doc.save()
    print(proj_name + " Dense Cloud built")

    #Export Local points
    if chunk.dense_cloud:
        chunk.exportPoints(export_path + '/' + proj_name + '.ply',
                           source_data = Metashape.DenseCloudData,
                           save_normals = True,
                           save_colors = True,
                           save_classes = True,
                           save_confidence = True)


Any advice on the this issue?
Bolli
Title: Re: Exporting Dense Cloud as Points; No Point Confidence Field
Post by: Alexey Pasumansky on July 18, 2022, 07:25:14 PM
Hello Bolli,

Which Metashape version you are using?

I have tried to use your export code from the project with generated dense cloud with confidence values and the confidence is properly saved (dense cloud imported back to Metashape, for example, shows the confidence).
Title: Re: Exporting Dense Cloud as Points; No Point Confidence Field
Post by: Bolli on July 18, 2022, 09:37:24 PM
Thanks for looking into this Alexey. Here are my stats from the open screen.

2022-07-18 12:59:54 Agisoft Metashape Professional Version: 1.8.3 build 14331 (64 bit)
2022-07-18 12:59:54 Platform: Windows
2022-07-18 12:59:54 CPU: Intel(R) Xeon(R) CPU E5-2690 v4 @ 2.60GHz (server)
2022-07-18 12:59:54 CPU family: 6 model: 79 signature: 406F1h
2022-07-18 12:59:54 RAM: 448.0 GB
2022-07-18 12:59:55 OpenGL Vendor: NVIDIA Corporation
2022-07-18 12:59:55 OpenGL Renderer: Tesla M60/PCIe/SSE2
2022-07-18 12:59:55 OpenGL Version: 4.6.0 NVIDIA 472.39
2022-07-18 12:59:55 Maximum Texture Size: 16384
2022-07-18 12:59:55 Quad Buffered Stereo: not enabled
2022-07-18 12:59:55 ARB_vertex_buffer_object: supported
2022-07-18 12:59:55 ARB_texture_non_power_of_two: supported
Title: Re: Exporting Dense Cloud as Points; No Point Confidence Field
Post by: Alexey Pasumansky on July 20, 2022, 01:36:06 PM
Hello Bolli,

Can you please check if the problem is resolved in the newly released 1.8.4 version: https://www.agisoft.com/downloads/installer/
Title: Re: Exporting Dense Cloud as Points; No Point Confidence Field
Post by: Bolli on July 22, 2022, 11:12:26 PM
Hi Alexey,
Thanks again for the support. The issue was in the other program I was using to view the point clouds and not with the agisoft generation at all. It ended up not knowing what to do with the classes field and failed on both the GUI generated PLY and the python generated PLY. All is good on our end with this issue.
Thanks,
Bolli