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 - Luiz Antônio Hugen

Pages: [1]
1
General / Calibrate Reflectance
« on: September 09, 2025, 03:04:47 PM »
Hello, everyone.

I'm facing a challenge related to reflectance calibration in Metashape and would like to ask the community for help.

🔹 Context

Equipment: DJI Matrice 300 RTK with DJI P1 camera (RGB).
Images: Standard RGB (JPEG), collected during a mapping flight.
Scenario: A large area that couldn't be mapped in a single day, requiring multiple flights on different days.
This resulted in significant variations in brightness and lighting conditions between flights.

Goal: Equalize reflectance across images, compensating for exposure variations (ISO, shutter speed, aperture).

Available tools in Metashape: Calibrate Colors and Calibrate Reflectance.

🔹 The Problem

Since I don't have calibration panels or a sun sensor, the Calibrate Reflectance tool can't automatically adjust the images (result: Calibrated 0 of XXXX images).

The Calibrate Colors tool works, but it's not sufficient for effective equalization, as there are relevant irradiance differences between flight days.

🔹 What I've Tried

External IrradianceFactor Calculation

Using the EXIF data (shutter speed, EV, ISO), I calculated an irradiance factor.

Saved it in a CSV file in the format {ImageName: IrradianceFactor}.

Python Script (Metashape API)

Tried applying it directly to the cameras:

camera.sensor.calibration.sensitivity → doesn't exist in the current version (2.2.2 Pro).
camera.sensor.calibration.ReflectanceScale → also doesn't work, returns None and doesn't persist.
camera.meta["ReflectanceScale"] = factor → persists, but CalibrateReflectance doesn't use this value.
Execution of chunk.calibrateReflectance()

Tested with use_reflectance_panels = off and use_sun_sensor = off.

Result: Calibrated 0 of XXXX images, even after manually assigning factors.

ExifTool Alternative

Considered writing values directly into EXIF metadata (tags like XMP:SolarIrradiance or ReflectanceScale), but couldn't find clear documentation on which fields Metashape actually interprets for irradiance/reflectance in images without a native sun sensor.

🔹 My Question

Is there any official or alternative way to manually apply irradiance/reflectance factors to images without calibration panels or a sun sensor?

Does Metashape have any field/documentation on which EXIF/XMP tags are accepted for irradiance?

Is there a correct way to use ReflectanceScale via the API (maybe at another level, like sensor.meta instead of camera.meta)?

Or is post-processing the only option in this case (exporting the orthomosaic and equalizing reflectance outside Metashape)?

🔹 Conclusion

My goal is to equalize image reflectance to improve the consistency of the final mosaic, compensating for exposure differences caused by the large area and the need to fly on different days.

I've tried both the API and internal calibration tools, but so far I haven't been able to get Metashape to recognize the calculated factors.

Any guidance on how to proceed would be greatly appreciated.

2
General / Error building texture
« on: February 06, 2024, 11:31:13 PM »
Hello everyone.

When doing the "Build Texture" step, I ended up running into the following error:

glBufferData(0x8893, resource->size, resource->buffer, 0x88E4) failed: Out of memory
2024-02-06 17:21:32 renderer_qgl.cpp line 872: glViewport(new_viewport.x(), new_viewport.y(), width, height) failed: Out of memory

I would like to understand more about this error. Is it related to the memory available on the hard drive? I have more than 160 gb released. Or would it be related to RAM, or video card?

Another question, about a situation that arose. When trying to build the texture, it completed the process, however, at the end, it gave an error message, related to memory.
Well, my question is the following, when repeating the texture process again, in the "Mapping mode" option, the "Keep uv" option was removed. Before I didn't have access to this option, so by default I use "Adptive Orthophoto".

Could anyone explain to me why this is?

Thank you all in advance

Pages: [1]