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.

Topics - Jaume

Pages: [1]
General / Importing all shp files at once instead of individually
« on: June 14, 2023, 09:39:15 PM »

is there any script that allows to import all the shp from file simultaneously into the chunk instead of importing them individually (only one shp can be selected during import).



I'm trying to find some solution to estimate the exterior orientation of the image taken. I've got a point cloud that I obtained by processing photos from a UAV. But I'm looking for EO parameters for a photo that was taken a few months earlier at the same location with a different camera. I just want to orthorectify this image using point cloud (or mesh/dem) to get the orthophoto. Is there any way to perform this process?

 It seems to me that I need to take the appropriate measurements on the image based on the 3D model to find some parameteres to get the EO (singe-image photogrammetry).


General / Is a dense cloud necessary to obtain a reliable orthophotomap?
« on: September 06, 2021, 11:17:01 AM »

I wonder if when creating an orthophotomap I should generate a dense cloud each time? Is it enough to do align photos, optimize camera (after used gradual selection tool and removed noise manually), generate DEM using Deph Maps as Source data and then generate Orthomosaic based on DEM? Does the dense cloud affect the quality of the orthophotomap, even if I choose Depht Maps as the source data for DEM creating? Does the dense cloud generation process improve the depth map quality before running the DEM creation process in Agisoft?

Please let me know how it works?

Thank you for clarifying this issue.

General / Enblend/Enfuse algorithm - images stitching to get panorama
« on: January 08, 2021, 01:30:36 PM »
Agisoft has the best control points finder to align photos. In this respect, it is unrivaled compared to other panorama software (PTGui, Hugin). Unfortunately, the issue is worse when creating the final panorama. You can see seamline on the border of panorama and other strange artifacts that affect the visual effect of the panorama. So I wonder if is possible to use Enblend/Enfuse solution for blend away the seams in a panoramic image mosaic using a multi-resolution spline (Enblend) and merge different exposures of the same scene to produce an image that looks much like a tone-mapped image (Enfuse)? I think about python script to use these algorytims to generate panorama in Agisoft?


Is the way to use Agisoft algorithm to generate control points (spare cloud) and enblend/enfuse solution to create seamless panorama using python script ?

The difference between Hugin ang Agisfot is shown below in attachment.

Python and Java API / Capture view for open camera (view mode)
« on: July 28, 2020, 12:03:35 AM »
Dear Agisoft Users,

I am struggling to write a script to do a certain process in photos. The idea is to:

1. choose cameras (selected or by given range define by labels) from chunk or group (name),
2. open photos one by one in a new tab with certain delay (e.g. 1000ms),
3. capture view by given parameters,
4. save images to directory.

I wrote the script that captures view only for Model View Mode. I've got sth like this:

Code: [Select]
import Metashape
import os

# Checking compatibility
compatible_major_version = "1.6"
found_major_version = ".".join('.')[:2])
if found_major_version != compatible_major_version:
    raise Exception("Incompatible Metashape version: {} != {}".format(found_major_version, compatible_major_version))

def capture_view():

    doc =
    if not len(doc.chunks):
        raise Exception("No chunks!")

    print("Script started...")
    chunk = doc.chunk #active chunk, if there's any in the project
    for camera in chunk.cameras:
        camera = chunk.cameras[0]
        capture = = 600, height = 450, transparent = False, hide_items = True)'E:/Capture/' + camera.label + '_cv.png')
    print("Script finished!")

label = "Custom menu/Capture View", capture_view)
print("To execute this script press {}".format(label))

I couldn't find the module such as captureView for camera view (open image).

I will be very grateful for any support in this topic.

General / Export images with applied shapes
« on: July 24, 2020, 02:11:09 PM »
Dear Agisoft Users,

I wonder If Agisoft has option to export images with drawn shapes on photos. I generated DEM in order to draw polylines on the model to get these shapes on photos (to make visible some CAD lines on photos gathered by UAV). So I need to export photos with these polylines drawn. Shapes become texture and are exported with photos as one image (superimposed textured shapes on photo).

Thank you for any advice in this topic.

General / How to generate a mesh for very thin surface?
« on: December 18, 2018, 01:16:06 PM »
Dear Agisoft Users,

I'm considering how to solve some issue with 3D object meshing from densce point cloud. This object has very thin surface that applied to the mesh results. It seems the mesh is extrapolated and it influences on the final visualisation.

The question is: How to deal with this kind of object to get the best result for 3D model representation of model by mesh and next textured model? What do I need to do to prepare dense point cloud to make it right? Should I need to use MeshLab as an external software to deal with mesh?

I add the photos as the screen of described issue.

Hi Everyone,

I was testing the PhotoScan in order to get a 3D model of crashed car and I need to admit that the results are good enough for further analysis.

But I am considering to apply close range photogrammetry to 3D reconstruction of road details (pavement, asphalt, ditches etc.). I know the UAV is the one of the solution but What about handheld non-metric camera?

Do you know some methodology (techniques) to prepare ground station for camera to get the best result after PhotoScan processing the data? How to pick station for camera? What about angles of camera axis? What if a road is sloping? The good practice is to taking photos along the parallel line to kerb using demanded overlapping or taking images in a circle (20-25°) from different ground stations?

I need to find some solution to 3D reconstruction of the road situation for forensics experts specialized in car accidents.

Thank you for taking part in this discussion.

General / smoothing and adjusting set of point cloud
« on: July 14, 2016, 11:49:32 AM »

I would advise you to certain issue. I need to make an inventory of road using point clouds aquired by my drone. To processing my data I have to remove noisy scattered data points and get smoothed set of points in order to prepare proper point cloud to further process. As the result I need to reconstruct surface that is the best adjusted and approximated to the real road surface.

I have read about Moving Least Squares (MLS) surface reconstruction. It looks great but I have a doubt it distorts the model of the surface. Always when I use this method the final surface is slightly below the whole point cloud. But I need to adjust my surface to  agglomeration of points (exclude noisy points).

I am attaching a image of example points to submit what I mean.

Thank you for any suggestion in this case.

Best wishes,


General / How to turn off shaded option in Photoscan
« on: May 11, 2016, 11:48:56 AM »

I've updated Photoscan to version and want to change one option. When I open up Photoscan the shaded icon is turned on and it causes my project is opening longer than It was with Point Cloud icon.

Is any way to change this? Is possible to open up Photoscan with Spare Point Cloud to speed up opening project?



General / Opening project without *.psx file
« on: March 14, 2016, 02:32:31 PM »

I have a project.files that contains files such as:
- dense_cloud,
- depth_maps,
- model,
- orthomosaic,
- point_cloud,
- shapes,
- thumbnails,

I generated orthomosaics about five days ago. Today I was traying open project with *.psx format and Photoscan shows me only Cameras and Tie Points (though I'd done all of this stuff and my files have data).

Because of a low space on my local disc I copied and pasted this project into different localisation on my computer.

What can I do? How to open files in Photoscan (*.psx) ?

General / DXF import problem
« on: March 03, 2016, 03:05:11 PM »

I can't find solution why I don't see shapes (dxf format) after imported to Photoscan.
In ortho view I need to import dxf with closed area drawn by polylines to insert to Orthomosaic view as a boundary for orthomosaic export.

I prepare DXF in AutoCAD in 2010 version. Does it depend on version or sort of software I use?

Where is a problem?

Thanks in advance,

Bug Reports / Problem with points cloud quality
« on: December 16, 2015, 03:24:12 PM »
Hi everybody,

I have a problem with generating points cloud from images. Namely I exported points from PhotoScan and my points cloud is something like grainy points (spare, broken, scattered) in certain areas.

 I accomplished flights by Trimble UX5.

Basic information about flights:
- flight altitude: from 125 to 160 m,
- resolution of images (GSD): 4-5px.

After optimized camera parameters I got below results:
Total error (pix) - 0.078
Total error (m) - 0.009

So where is a problem? It happens because of weather condition (cloudiness, wrong insolation)?

I attachmented images of points cloud. I am sending example of a building and road (it has places with grainy points - these are darker)

Best wishes,


Feature Requests / Export orthophoto in determined boundaries
« on: July 21, 2015, 12:09:04 PM »
Hello everyone,

I've got a problem. When I export the orthophoto in Photoscan I usually choose 'Setup boundaries' option. These boundaries are determined by points from corners of prepared map sections in AutoCAD. After exporting orthophotos I want to put them into this sections in AutoCAD but they do not match correctly. It is difference about 2-3 cm.

Where is the problem? It depends on some option in Photoscan (building dense cloud or some parameters). Maybe I've forgotten to check sth or just missed some commands.

Thank you for helping in advance.

Pages: [1]