Recent Posts

Pages: 1 2 [3] 4 5 ... 10
General / building pyramid for orthomosaics
« Last post by on May 23, 2022, 05:24:33 PM »
I am looking for settings image pyramids.
Where can I set parameters for the image pyramids?
I haven't found these anywhere, are they automatically calculated during export - rather not?
Python and Java API / Re: Mesh: Select faces by "Polygon size"
« Last post by Alexey Pasumansky on May 23, 2022, 04:57:55 PM »
Hello geo_enth,

Currently there's no instrument for fast polygon selection using Python API based on the polygon size.

So the workaround would be only custom function creation that estimates the size of the mesh faces (as the triangle area based on the vertex coordinates) in the model, calculates the min/max values and then selects and removes the faces based on the input threshold. However, this approach would likely work slow for high-poly models.
Hello Maxim,

If you need just to remove the cameras from the active chunk and create new cameras from the same source photos in the new empty chunk, you can use the following script:

Code: [Select]
import Metashape
chunk = #active chunk

cameras = [camera for camera in chunk.cameras if camera.selected and camera.type == Metashape.Camera.Type.Regular] #cameras to be moved
paths = [ for camera in cameras] #camera paths

new_chunk = #new empty chunk


It is applied to the selected cameras in the active chunk.

Let me know, if you need to preserve exterior and/or interior orientation parameters for moved cameras in the newly created chunk.
Python and Java API / Re: Replicate Update Transform using Python API
« Last post by Alexey Pasumansky on May 23, 2022, 04:43:24 PM »
Hello sepehr500,

When you open the project created by the script in GUI, are the markers and scale bars checked on in the Reference pane?
General / Merging chunks
« Last post by Sathish Kumar on May 23, 2022, 04:42:52 PM »
What is the best stage to merge chunks? Is it advisable to merge chunks after generation of orthomosaic? or
merging chunks after dense cloud generation and then Orthomosaic generation? What is the optimum solution?
Agisoft uses nearest filtering as default. See Settings.
General / JPGs created from RAW images import to Metashape with overwhelming noise
« Last post by KBL on May 23, 2022, 03:12:44 AM »
Hi, I'm having an issue with Metashape where JPGs created from RAW images in Lightroom import into Metashape with an overwhelming amount of noise. JPGs created in-camera are not subject to this problem. Is there a fix, maybe some method of exporting from Lightroom that might resolve the issue? Sample images attached.

The JPGs created from RAWs are not noisy when viewed anywhere *except* from within Metashape.
Python and Java API / Replicate Update Transform using Python API
« Last post by sepehr500 on May 20, 2022, 05:37:25 PM »
Hello. I am running a script where I detect markers, add scale bars, then try to scale the model to those scale bars. Unfortunately,  when I call chunk.updateTransform() after these scalebars are added programatically, nothing happens. But if I open the software, my scalebars and markers look great. All I need to do is click the update transform button in the GUI and the model scales. Is replicating this behavior in the API more complex than simply calling chunk.updateTransform()?
Bug Reports / Re: Error when building tiled model from a loaded mesh
« Last post by Alexey Pasumansky on May 20, 2022, 04:57:30 PM »
Hello rubmart,

Thank you for sharing the sample file.

The problem may be related to the mesh vertex coordinates rounding issue. The imported model has vertex x coordinates in 450823.0 - 451174.8125 range and y coordinate range in 4480485.5 - 4480754.0 limits. If you are importing mesh model to the new empty chunk, I can suggest to do it using the following Python code line (input to the Console pane) that would subtract the high base values from X and Y coordinates:
Code: [Select], shift=Metashape.Vector([-450000, -4480000, 0])) #values specific for the provided model
Bug Reports / Re: Blending Textures not using GPU
« Last post by jinjamu on May 20, 2022, 04:25:51 PM »
Thanks Alexey!  Looking forward to a quick fix (I'm a little stuck trying to conclude a project at the moment!)
Best regards
Pages: 1 2 [3] 4 5 ... 10