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.


Topics - SamT

Pages: [1]
1
General / Constant vertical datum offset WKT
« on: May 27, 2021, 07:18:19 AM »
Hi,

From the release notes for version 1.4.0
"Added support for constant vertical datum offsets."

Could someone please provide me with a simple example of a PRJ / WKT that contains this?

I would like to add a constant shift to this.
Code: [Select]
PROJCS["TEST",
GEOGCS["GCS_GDA_1994",
DATUM["D_GDA_1994",
SPHEROID["GRS_1980",6378137.0,298.257222101],
TOWGS84[0,0,0,0,0,0,0]],
PRIMEM["Greenwich",0.0],
UNIT["Degree",0.0174532925199433]],
PROJECTION["Transverse_Mercator"],
PARAMETER["False_Easting",446901.042],
PARAMETER["False_Northing",2879773.273],
PARAMETER["Central_Meridian",120.95],
PARAMETER["Scale_Factor",0.999879],
PARAMETER["Latitude_Of_Origin",0.0],
UNIT["Meter",1.0]]

Thanks,

Sam

2
General / 1.7.3 Parallel Scheduling
« on: May 24, 2021, 01:55:02 AM »
Hi!

Does anyone know what parallel scheduling does in 1.7.3? Can't find any info on it.

3
Bug Reports / Export Model Clip
« on: July 28, 2020, 04:26:40 AM »
Export model with clip to boundary shapes seems to use the convex hull of the shape rather than the shape itself. Is this expected behavior?

4
Python and Java API / Export Report User Settings
« on: June 15, 2020, 01:02:34 AM »
Hi Everyone!

Having some trouble adding user settings to exportReport().

User manual specifies "list of (string, string) tuples" for the user_settings parameter.

Code: [Select]
import os

import Metashape

doc = Metashape.app.document
chunk = doc.chunk

user_settings = [('Test 1', 'Value 1'), ('Test 2', 'Value 2')]

output_file = os.path.join(os.path.join(os.environ['USERPROFILE']), 'Desktop/test.pdf')
chunk.exportReport(path=output_file, user_settings=user_settings)

Error: ValueError: Invalid argument value: user_settings

Metashape version 1.6.2

5
Python and Java API / Network Task RunScript NumPy
« on: April 06, 2020, 03:41:27 AM »
Hey Everyone,

Hoping somebody may have a solution to an error that I am facing.

I want to use numpy in an external script (test_numpy.py) as a network task called from another script (network_process.py)

The script runs successfully when launched as a task through the GUI but blocks indefinitely when called from python.

Stopping the server causes the script to run successfully. Removing "import numpy" also succeeds.

I have attached both scripts.

Metashape version is 1.6.2




6
Python and Java API / Grow Selection
« on: October 12, 2019, 02:14:11 AM »
Does anyone know of a reliable method to use the "Grow Selection" method with python?

One would normally call it with the Page Up key.

Window context is important if processing multiple jobs at a time.

7
Bug Reports / Mesh Decimation Degenerate Faces
« on: September 25, 2019, 05:57:07 AM »
Hey There!

I've noticed that whenever I use the mesh decimation feature I end up with crossing edges / degenerate faces in the resultant mesh.
They are not picked up by the fix topology tool.
Happens with both height field and arbitrary meshes.
Would be great to have this fixed in a future release.

8
Python and Java API / Crop dense cloud by shape
« on: June 28, 2019, 11:34:04 AM »
Hi There!

Looking for a method to crop the dense cloud or mesh from a shape.

Similar to Tools / Dense Cloud / Select Points by Shape

I can do an inside polygon test on the mesh vertices but it will be pretty slow.


9
Python and Java API / Accessing Mesh Statistics
« on: June 24, 2019, 08:54:41 AM »
I see in the python manual for 1.4 there are methods for accessing the model statistics.

Could someone please post a working example for the connected components?

10
Python and Java API / Remove Free Vertices
« on: April 30, 2019, 06:02:42 AM »
Is there a method of removing unused vertices from a model via the python API?

I am writing a custom format and I need to either remove them and remap the vertices in my code or do it in Photoscan.

11
Python and Java API / Python Network Processing
« on: June 01, 2016, 11:47:51 PM »
Would love to be able to use fine level task distribution through the python API.

I'm happy to test if you need it.

12
Python and Java API / exportDem Null Value
« on: January 17, 2016, 09:40:22 AM »
Hi!

I have a script that uses exportDem.

I want to have nodata=0 but it still exports as -32767.

Anyone else getting this?

Cheers

13
Python and Java API / Query Z value on mesh
« on: December 14, 2015, 08:39:41 AM »
Hi Everyone!

Is there a way to query the z value on the mesh at a given x,y with python?

Sam


14
General / Remote Desktop and OpenCL
« on: October 23, 2013, 05:13:34 AM »
Hi Forum,

Has anyone had any experience with remote desktop and Photoscan? I am accessing a workstation from a laptop using Microsoft RDP and I cannot see my GPU in the OpenCL tab. I can however when I plug in a monitor. I think this is because RDP uses its own driver.

I have tried screen scraping with VNC which works but the performance is pretty average.

If anyone could help me out that would be great.

Cheers,

Sam

EDIT: I will try HP RGS

Pages: [1]