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 - Vaidutis Zutautas

Pages: [1]
1
Python and Java API / Re: Apply patch on multiple shapes
« on: November 25, 2019, 12:02:37 AM »
Hej,

After manual creation of patches, where cameras are automatically assigned depending where one starts drawing a patch, I would like to run a script which would create an attribute in each polygon with currently assigned camera name (only one!). As a result, this attribute could then be passed on to the script you provided earlier in order to edit another orthomosaic by using the same polygons (patches) followed by already assigned correct cameras.

2
Python and Java API / Re: Apply patch on multiple shapes
« on: November 21, 2019, 03:34:55 PM »
Hi again!

The script works as described, yet perhaps I expressed myself in an unclear way. The real challenge here is to assign camera names to attribute (in this case 'Patches') automatically. I am still struggling to find a solution at this point for such scenario:

1. Generate orthomosaic
2. Create polygons as patches
3. *Automatically assign current camera of the patch to an attrribute of polygon (I am talking about hundreds of polygons)* // I am stuck here!
4. Generate another orthomosaic of the same area, say in another Chunk
5. Reuse the patches with the help of the script you provided earlier.

Thanks for reflections!

3
Python and Java API / Re: Apply patch on multiple shapes
« on: November 06, 2019, 03:55:18 PM »
Hi again,

That is exactly what I need. An example of code would be much appreciated!

Thank you in advance!  :)

4
Feature Requests / Re: Export Orthomosaic within selected polygon
« on: November 06, 2019, 03:03:01 PM »
@Alexey, thank you for clarification!

5
Python and Java API / Re: Apply patch on multiple shapes
« on: November 06, 2019, 01:44:59 PM »
Hej,

I did not want to create a new theme since my question in large part overlaps with this solution.

I am looking for a solution to update an orthomosaic with a set of patches, however it is not always the case that the centroid has to be used in assigning images to the polygons.

I was wondering if there is a way to assign names of images as attributes to manually created patch polygons and then call the image names instead of the first image in the list or finding patch centroid etc when recreating orthomosaic?

Any ideas or hints?

Much appreciated!   

6
Feature Requests / Export Orthomosaic within selected polygon
« on: November 05, 2019, 07:40:57 PM »
Hi,

Many large orthoimagery projects require specific areas to be exported on different occasions or at different times. Sure, orthomosaic clipping procedure could be easily done outside Metashape, however, this requires the export the whole orthomap or to set export bounds which is not as user friendly as one would wish.

I bet 'Export by polygon(s)' option would ease up workflows for many of us here.   ::)

Thanks!

7
General / Orthomosaic update after DEM/mesh edit
« on: July 04, 2019, 11:35:00 AM »
Hi Agisofters,

I was searching for a function to update orthomosaic after I edited mesh model (localized smoothing), but could not find any associated tools/functions for such task. Are there any tweaks or practices to achieve that without reconstructing the whole orthomosaic after few changes have been done to either mesh model or raster DEM?

Thank you in advance for your insights!

8
General / Re: Photo duplicates after merging models
« on: July 04, 2019, 10:49:56 AM »
@Vantage_DS

You can also run this script on an active merged chunk, which should simply solve your request:

Code: [Select]
import PhotoScan
chunk = PhotoScan.app.document.chunk
cameras = set()
remove = list()
for camera in chunk.cameras:
    if camera.photo.path in cameras:
        remove.append(camera)
    else:
        cameras.add(camera.photo.path)
chunk.remove(remove)

9
General / Re: Classifying the Ortho Photo
« on: July 03, 2019, 02:59:02 PM »
Hi Simon,

The possibilities of your wishes very much depend on quite a few parameters, e.g.  the kind of objects/areas you would like to extract and classify from your orthophoto as well as the actual spatial resolution of the imagery and available tools and skills.

Based on these main aspects, you should be looking at two methodological realms, first - land-cover classification (LCCS), which is applicable to various types of areas (i.e. landcover). In most cases such task is achievable by utilizing supervised, non-supervised or object-based classification methods, based on available data and tools. The first two are mainly based on colour information and are available in most of the GIS packages (personal preference is Geomatica PCI), whereas object-based analysis hangs on more complexities and could be achieved in e.g. Trimble's eCognition.

The second method -object extraction- concerns more complex objects in the imagery where not only colour but shape or position play a role in distinguishing particular features. Tasks of such nature require image segmentation and later classification based on available/wished traits.

Although Metashape is not an image-processing software per se in its nature, you could achieve -ish- results of basic features if you establish given classes in the dense point cloud, export it and create class-based footprints in some external software.


10
General / Orthomosaic editing: movable nodes of shapes
« on: July 03, 2019, 02:08:59 PM »
Hi,

It was recent that I have noticed peculiar behavior of the software (full Metashape Pro version) when editing orthomosaic, nodes of the editable shapes become non-movable markers (flags). Although I can still proceed with all of the orthomosaic's editing options within the shape, I am not allowed to change its shape without creating a new one.

Is this some strange behavior coming with the latest update or am I missing something here?

Thanks for any ideas!

Pages: [1]