Community 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 - Alexey Pasumansky

Pages: [1] 2 3 ... 518
General / Re: Incompatible dense cloud colors
« on: Today at 04:09:01 PM »
Hello Mike25660,

Thank you for providing the sample data.

It appears that the issue is related to the sparse cloud points colors, not to the dense clouds. We'll fix it in the 1.4.1 update. If necessary, we can send you the project with the merged chunk for your project.

General / Re: Change photo
« on: Today at 01:58:52 PM »
Hello chehroma,

So the images were added to the project before "strip file extensions" option was disabled?

The option has effect only on the photos added to the project after it's status has been modified. It wouldn't make any changes to already created and existing projects.

General / Re: Change photo
« on: Today at 01:05:12 PM »
Hello chehroma,

Can you please post the screenshot of the camera list from the Workspace pane?

General / Re: Change photo
« on: Today at 12:48:53 PM »
Hello chehroma:

Preferences -> Advanced -> Export / Import -> Strip file extensions from camera labels.

General / Re: Change photo
« on: Today at 12:34:47 PM »
Hello chehroma,

In the version 1.4.0 there's an option in the Advanced preferences dialog that allows to exclude the filename extension from the camera labels when the photos are added to the project. If the option is turned on in your case, you can uncheck it, re-load the photos to the new chunk and try the script again.

Python Scripting / Re: How do I set output size of orthomosaic
« on: January 15, 2018, 08:45:48 PM »
Hello mikeb,

Here's a small code for conversion from meters to lat/long values. As source export resolution it takes the DEM resolution:

Code: [Select]
import PhotoScan, math

dx = dy = chunk.elevation.resolution

coord = PhotoScan.Vector([0,0,0])
cam_num = 0
for camera in chunk.cameras:
if not camera.transform:
coord +=
cam_num += 1

crd = (1. / cam_num) * coord

#crd =

v1 = crd.copy()
v2 = PhotoScan.Vector([crd.x + 0.001, crd.y, crd.z])
vm1 =
vm2 =
res_x = (vm2 - vm1).norm() * 1000

v2 = PhotoScan.Vector([crd.x, crd.y + 0.001, crd.z])
vm2 =
res_y = (vm2 - vm1).norm() * 1000

dx = dx / res_x
dy = dy / res_y

path = project_path + project_name + ".tif"
chunk.exportOrthomosaic(path, image_format=PhotoScan.ImageFormatTIFF, format = PhotoScan.RasterFormatTiles, dx=dx, dy=dy, raster_transform=PhotoScan.RasterTransformNone, write_kml=False, write_world=True)

General / Re: Hotkey form custom tool
« on: January 15, 2018, 05:20:49 PM »
Hello Yoann,

If you are speaking about the custom menu items created by the scripts, then you can assign the hot-keys for them in the script body, using "shortcut" argument in the addMenuItem() function, although, they couldn't be re-assigned by the user.

General / Re: Incompatible dense cloud colors
« on: January 15, 2018, 12:38:42 PM »
Hello Mike25660,

I'm not able to reproduce the issue on the projects with higher bit depth than 8-bit per channel.

I can suggest to try version 1.4.0 for merging and see if it works, if not, it would be helpful to get the small sample project with two chunks that cannot be merged with the dense cloud due to the same error.

Python Scripting / Re: How do I set output size of orthomosaic
« on: January 15, 2018, 11:58:15 AM »
Hello mikeb,

Is your project referenced in WGS84?

If so, then you need to convert meters for dx and dy parameters to degrees.

General / Re: Best way to get good texture
« on: January 14, 2018, 11:19:13 PM »
You can use Tiled Model generation to get the texture resolution close to the source data. However, it cannot be uploaded to Sketchfab, but there are some other online platforms that allow direct tiled model upload from PhotoScan.

General / Re: Incompatible dense cloud colors
« on: January 14, 2018, 08:17:47 AM »
Hello Mike25660,

Which version of PhotoScan you are using and were all chunks processed in the same version?

Bug Reports / Re: No longer able to view Dense Cloud in latest version
« on: January 13, 2018, 07:48:41 PM »

As an intermediate solution you can make a shortcut to this view option or switch to the dense cloud by double-clicking on the dense cloud instance in the Workspace pane or by using a toolbar button.

Python Scripting / Re: Make a camera as the Photoscan model origin
« on: January 13, 2018, 07:24:24 PM »
Hello Julien,

Yaw, pitch, roll are estimated in ENU (easting-north-up) coordinate space, so when you are making a transformation in script from internal camera system to this ENU space you should also apply PhotoScan.Matrix([1, -1, -1]) to bring the axis to the classical convention.

Hello Matt,

If you disable the images right before Build Orthomosaic stage, then those photos wouldn't be used in the mosaicing process.

To disable the images select them in any pane or in the Model view mode, then right-click on selection and choose Disable option from the context menu.

Python Scripting / Re: How do I set output size of orthomosaic
« on: January 12, 2018, 09:49:12 PM »
Hello mikeb,

You can use the following methods related to orthomosaic to calculate the require export resolution:

So if you need to export the orthomosaic using max-dimension = X, then I think you can use the following:

Code: [Select]
dx = dy = max(chunk.orthomosaic.width, chunk.orthomosaic.height) * chunk.orthomosaic.resolution / X

Pages: [1] 2 3 ... 518