Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - JJR

Pages: [1]
1
Dear all,

When working with local coordinates in v1.7.6.13779, I am able to generate a DEM (type: planar; projection plane: Back XZ) where the X-coordinates are negativ (as the view is towards "south") but correspond with the actual X-values and the Y-coordinates are the actual elevation values.

In v1.8.2.14127 this is not working anymore. The coordinates in the DEM do not correspond to the local coordinates of the project anymore.

I did reinstall v1.7.6.13779 and it worked again, so this seems to be a problem in v1.8.2.14127.

Does someone encounter similar problems?

Kind regards


Console log 1.7.6

2022-03-24 11:42:12 Agisoft Metashape Professional Version: 1.7.6 build 13779 (64 bit)
2022-03-24 11:42:12 Platform: Windows
2022-03-24 11:42:12 CPU: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (laptop)
2022-03-24 11:42:12 CPU family: 6 model: 158 signature: 906EAh
2022-03-24 11:42:12 RAM: 15.7 GB
2022-03-24 11:42:13 OpenGL Vendor: NVIDIA Corporation
2022-03-24 11:42:13 OpenGL Renderer: Quadro P2000/PCIe/SSE2
2022-03-24 11:42:13 OpenGL Version: 4.6.0 NVIDIA 472.91
2022-03-24 11:42:13 Maximum Texture Size: 32768
2022-03-24 11:42:13 Quad Buffered Stereo: not enabled
2022-03-24 11:42:13 ARB_vertex_buffer_object: supported
2022-03-24 11:42:13 ARB_texture_non_power_of_two: supported
[...]
2022-03-24 11:42:41 Loading project...
2022-03-24 11:42:41 loaded project in 0.203 sec
2022-03-24 11:42:41 Finished processing in 0.207 sec (exit code 1)
2022-03-24 11:42:45 Finished processing in 0 sec (exit code 1)
2022-03-24 11:42:54 BuildDem: source_data = Dense cloud, interpolation = Enabled, projection = Planar, classes = All, resolution = 0.000495044
2022-03-24 11:42:54 Generating DEM...
2022-03-24 11:42:54 initializing...
2022-03-24 11:42:54 generating 33977x6552 dem (10 levels, 0.000495044 resolution)
2022-03-24 11:42:54 saved elevation data in 0.004 sec
2022-03-24 11:42:54 scheduled 2 tile groups
2022-03-24 11:42:54 loaded elevation data in 0.002 sec
2022-03-24 11:42:56 tile 0-1 done in 1.535 sec (rasterize: 0.667 filter: 0.409 save: 0.395)
2022-03-24 11:42:58 tile 0-2 done in 1.892 sec (rasterize: 0.912 filter: 0.452 save: 0.469)
2022-03-24 11:43:00 tile 0-3 done in 1.912 sec (rasterize: 0.838 filter: 0.532 save: 0.51)
2022-03-24 11:43:02 tile 0-4 done in 1.864 sec (rasterize: 0.856 filter: 0.506 save: 0.46)
2022-03-24 11:43:04 tile 0-5 done in 2.039 sec (rasterize: 0.917 filter: 0.515 save: 0.565)
2022-03-24 11:43:05 tile 0-6 done in 1.641 sec (rasterize: 0.717 filter: 0.394 save: 0.481)
2022-03-24 11:43:06 loaded elevation data in 0.002 sec
2022-03-24 11:43:06 loaded elevation data in 0.003 sec
2022-03-24 11:43:06 loaded elevation data in 0.003 sec
2022-03-24 11:43:06 base level size: 67 x 13
2022-03-24 11:43:06 base level interpolated in 0 sec
2022-03-24 11:43:07 tile 0-0 done in 1.552 sec (load: 0.529 crop: 0.559 save: 0.4)
2022-03-24 11:43:10 tile 0-1 done in 2.668 sec (load: 0.68 crop: 1.312 save: 0.597)
2022-03-24 11:43:13 tile 0-2 done in 3.205 sec (load: 0.643 crop: 1.764 save: 0.714)
2022-03-24 11:43:17 tile 0-3 done in 3.283 sec (load: 0.699 crop: 1.797 save: 0.688)
2022-03-24 11:43:20 tile 0-4 done in 3.273 sec (load: 0.673 crop: 1.793 save: 0.714)
2022-03-24 11:43:23 tile 0-5 done in 3.047 sec (load: 0.772 crop: 1.478 save: 0.706)
2022-03-24 11:43:26 tile 0-6 done in 2.874 sec (load: 0.645 crop: 1.466 save: 0.672)
2022-03-24 11:43:28 tile 0-7 done in 1.708 sec (load: 0.436 crop: 0.797 save: 0.413)
2022-03-24 11:43:28 loaded elevation data in 0.003 sec
2022-03-24 11:43:28 base level size: 67 x 13
2022-03-24 11:43:28 base level interpolated in 0 sec
2022-03-24 11:43:29 tile 1-7 done in 1.286 sec (load: 0.3 crop: 0.599 save: 0.343)
2022-03-24 11:43:30 tile 1-6 done in 1.601 sec (load: 0.331 crop: 0.722 save: 0.482)
2022-03-24 11:43:32 tile 1-5 done in 1.817 sec (load: 0.376 crop: 0.865 save: 0.509)
2022-03-24 11:43:34 tile 1-4 done in 1.972 sec (load: 0.429 crop: 0.911 save: 0.546)
2022-03-24 11:43:36 tile 1-3 done in 2.018 sec (load: 0.359 crop: 1.004 save: 0.593)
2022-03-24 11:43:38 tile 1-2 done in 2.147 sec (load: 0.446 crop: 0.998 save: 0.614)
2022-03-24 11:43:40 tile 1-1 done in 1.781 sec (load: 0.37 crop: 0.792 save: 0.547)
2022-03-24 11:43:42 tile 1-0 done in 1.433 sec (load: 0.261 crop: 0.807 save: 0.322)
2022-03-24 11:43:42 loaded elevation data in 0.002 sec
2022-03-24 11:43:42 Finished processing in 47.563 sec (exit code 1)



Console log 1.8.2:

2022-03-24 11:36:57 Agisoft Metashape Professional Version: 1.8.2 build 14127 (64 bit)
2022-03-24 11:36:57 Platform: Windows
2022-03-24 11:36:57 CPU: Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (laptop)
2022-03-24 11:36:57 CPU family: 6 model: 158 signature: 906EAh
2022-03-24 11:36:57 RAM: 15.7 GB
2022-03-24 11:36:58 OpenGL Vendor: NVIDIA Corporation
2022-03-24 11:36:58 OpenGL Renderer: Quadro P2000/PCIe/SSE2
2022-03-24 11:36:58 OpenGL Version: 4.6.0 NVIDIA 472.91
2022-03-24 11:36:58 Maximum Texture Size: 32768
2022-03-24 11:36:58 Quad Buffered Stereo: not enabled
2022-03-24 11:36:58 ARB_vertex_buffer_object: supported
2022-03-24 11:36:58 ARB_texture_non_power_of_two: supported
[...]
2022-03-24 11:37:04 Loading project...
2022-03-24 11:37:04 loaded project in 0.357 sec
2022-03-24 11:37:04 Finished processing in 0.358 sec (exit code 1)
2022-03-24 11:37:16 Finished processing in 0 sec (exit code 1)
2022-03-24 11:37:31 BuildDem: source_data = Dense cloud, interpolation = Enabled, projection = Planar, classes = All, resolution = 0.000495044
2022-03-24 11:37:31 Generating DEM...
2022-03-24 11:37:31 initializing...
2022-03-24 11:37:31 generating 33977x6552 dem (10 levels, 0.000495044 resolution)
2022-03-24 11:37:31 saved elevation data in 0.002 sec
2022-03-24 11:37:31 scheduled 2 tile groups
2022-03-24 11:37:31 loaded elevation data in 0.001 sec
2022-03-24 11:37:32 tile 0-1 done in 1.233 sec (rasterize: 0.526 filter: 0.305 save: 0.391)
2022-03-24 11:37:33 tile 0-2 done in 1.588 sec (rasterize: 0.666 filter: 0.43 save: 0.485)
2022-03-24 11:37:35 tile 0-3 done in 1.615 sec (rasterize: 0.648 filter: 0.459 save: 0.5)
2022-03-24 11:37:37 tile 0-4 done in 1.543 sec (rasterize: 0.62 filter: 0.428 save: 0.485)
2022-03-24 11:37:38 tile 0-5 done in 1.595 sec (rasterize: 0.635 filter: 0.46 save: 0.489)
2022-03-24 11:37:40 tile 0-6 done in 1.387 sec (rasterize: 0.54 filter: 0.395 save: 0.44)
2022-03-24 11:37:40 loaded elevation data in 0.003 sec
2022-03-24 11:37:40 loaded elevation data in 0.003 sec
2022-03-24 11:37:40 loaded elevation data in 0.003 sec
2022-03-24 11:37:40 base level size: 67 x 13
2022-03-24 11:37:40 base level interpolated in 0.001 sec
2022-03-24 11:37:41 tile 0-0 done in 1.152 sec (load: 0.175 crop: 0.575 save: 0.313)
2022-03-24 11:37:43 tile 0-1 done in 2.3 sec (load: 0.326 crop: 1.226 save: 0.636)
2022-03-24 11:37:46 tile 0-2 done in 2.733 sec (load: 0.41 crop: 1.602 save: 0.619)
2022-03-24 11:37:49 tile 0-3 done in 2.76 sec (load: 0.398 crop: 1.657 save: 0.592)
2022-03-24 11:37:52 tile 0-4 done in 2.738 sec (load: 0.397 crop: 1.654 save: 0.582)
2022-03-24 11:37:54 tile 0-5 done in 2.575 sec (load: 0.389 crop: 1.457 save: 0.588)
2022-03-24 11:37:57 tile 0-6 done in 2.332 sec (load: 0.324 crop: 1.317 save: 0.582)
2022-03-24 11:37:58 tile 0-7 done in 1.385 sec (load: 0.117 crop: 0.804 save: 0.359)
2022-03-24 11:37:58 loaded elevation data in 0.003 sec
2022-03-24 11:37:58 base level size: 67 x 13
2022-03-24 11:37:58 base level interpolated in 0 sec
2022-03-24 11:37:59 tile 1-7 done in 1.079 sec (load: 0.096 crop: 0.609 save: 0.302)
2022-03-24 11:38:01 tile 1-6 done in 1.342 sec (load: 0.179 crop: 0.64 save: 0.455)
2022-03-24 11:38:02 tile 1-5 done in 1.465 sec (load: 0.208 crop: 0.73 save: 0.454)
2022-03-24 11:38:04 tile 1-4 done in 1.552 sec (load: 0.225 crop: 0.799 save: 0.448)
2022-03-24 11:38:05 tile 1-3 done in 1.619 sec (load: 0.218 crop: 0.853 save: 0.468)
2022-03-24 11:38:07 tile 1-2 done in 1.693 sec (load: 0.206 crop: 0.94 save: 0.471)
2022-03-24 11:38:08 tile 1-1 done in 1.428 sec (load: 0.174 crop: 0.682 save: 0.49)
2022-03-24 11:38:10 tile 1-0 done in 1.209 sec (load: 0.083 crop: 0.766 save: 0.292)
2022-03-24 11:38:10 loaded elevation data in 0.001 sec
2022-03-24 11:38:10 Finished processing in 39.143 sec (exit code 1)




2
Python and Java API / Re: Gradual Selection Python Script
« on: January 14, 2021, 02:18:04 PM »
Hello Alexey,

Thank you for the fast support! As soon as I understood what's part of the loop, it worked.

For silent readers, now it looks like this:

Code: [Select]
chunk = Metashape.app.document.chunk
f = Metashape.PointCloud.Filter()
f.init(chunk,Metashape.PointCloud.Filter.ProjectionAccuracy)
f.removePoints(projacc)
chunk.optimizeCameras(fit_f=True,fit_cx=True,fit_cy=True,fit_b1=True,fit_b2=True,fit_k1=True,fit_k2=True,fit_k3=True,fit_k4=True,fit_p1=True,fit_p2=True,fit_p3=True,fit_p4=True,adaptive_fitting=False,tiepoint_covariance=False)

Original code from https://github.com/agisoft-llc/metashape-scripts/blob/master/src/contrib/gradual_selection_tie_points.py

Thank you again and kind regards.

3
Python and Java API / Re: Gradual Selection Python Script
« on: January 13, 2021, 05:26:02 PM »
Dear Alexey,

Thank you for the hint! That works fine if a single iteration is set as follows:

for chunk in Metashape.app.document.chunks:
    f = Metashape.PointCloud.Filter()
    f.init(chunk,Metashape.PointCloud.Filter.ReprojectionError)
    f.removePoints(reperr)
chunk.optimizeCameras(fit_f=True,fit_cx=True,fit_cy=True,fit_b1=True,fit_b2=True,fit_k1=True,fit_k2=True,fit_k3=True,fit_k4=True,fit_p1=True,fit_p2=True,fit_p3=True,fit_p4=True,adaptive_fitting=False,tiepoint_covariance=False)

Like this, the script will run on every chunk that is in the project. How do I have to change that it will only run on the active chunk? I tried to change

"for chunk in Metashape.app.document.chunks"
into
"for chunk in Metashape.app.document.chunk"

but that resulted in an error. Please excuse my beginner's questions...

Best regards

4
Python and Java API / Re: Gradual Selection Python Script
« on: January 12, 2021, 11:01:33 AM »
Dear all,

May I ask you, rbnkc, or anyone else how you to include 'optimize cameras' after each of the gradual selection steps?

Thank you in advance for any help!

Pages: [1]