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 - RGBttt

Pages: [1]
1
Camera Calibration / Re: Calibration parameters for Powershot G16
« on: January 31, 2021, 08:14:09 PM »
Thank you very much, Paul. The models are 3D again :-)

2
Camera Calibration / Calibration parameters for Powershot G16
« on: January 31, 2021, 07:10:21 PM »
Hi all,

I am trying to work with a video that was shot by a Canon Powershot G16. By taking ~3 frames per second, I am able to build a decent looking model from this video, showing the bumps in the terrain properly. I want to make sure calibration parameters are included as well, but as soon as I enter what I think are the right parameters, the model becomes 2D planar.

According to the specs, the pixel size of this camera is 7.44 mm x 5.58 mm.
It's a compact camera, which has 5x optical zoom focal length from 6.1-30.5mm. The 35mm equivalent of this range is 28–140mm.

According to the metadata of my video, the focal length I shot was 6.1mm.

Both 7.44 mm x 5.58 mm & 6.1mm and 7.44 mm x 5.58 mm & 28 mm result in a planar model. In both cases, I entered the "camera type" to be Frame.

Can someone advice what the right combination of parameters should be?

Many thanks.




3
Python and Java API / Re: Smallest size depth map export
« on: August 10, 2020, 02:25:10 AM »
Thank you Alexey! Exactly the solution I needed. Even smaller size than the .exrs.

4
Python and Java API / Smallest size depth map export
« on: July 17, 2020, 05:58:25 PM »
Hi everyone,

I need to extract and store the scaled depth maps (exported after the mesh stage) for each image in my mosaics. For a given resolution, I am trying to find the smallest filesize to export, as they add up when there are tens of thousands of images.

The depth map needs to be a floating single channel image. Exporting as tiff (below) produces a single channel image with the actual values, so works great, but the file size is~20MB per the image resolution I need.

Code: [Select]

chunk = PhotoScan.app.document.chunk

for camera in chunk.cameras:

depth = chunk.model.renderDepth(camera.transform, camera.sensor.calibration)
depth = depth.convert(" ","F16")
depth.save("savepath" + camera.label + ".tif")

Exporting as .exr :

Code: [Select]
depth = depth.convert("RGB","F16")
depth.save("savepath" + camera.label + ".exr")

also works great and produces a 1.8 MB image for the same resolution - so huge improvement without much loss. But it makes a 3 channel image -- is there a way to export a single-channel exr from Metashape (or another format) that might even be smaller?

Thanks!

Pages: [1]