Forum

Author Topic: Multiframe color calibration  (Read 582 times)

glennk

  • Newbie
  • *
  • Posts: 13
    • View Profile
Multiframe color calibration
« on: April 01, 2022, 11:34:21 PM »
Hello,

I am trying to calibrate the colors of each frame of my multi-frame chunk.

This is my code :
Code: [Select]
for frame in doc.chunk.frames:
    frame.calibrateColors(Metashape.PointCloudData)


Only the colors of the first frame get calibrated.

What am I doing wrong here ?

Best regards,

Glenn

PS :  Using Metashape.ModelData instead of Metashape.PointCloudData give me very weird results.


glennk

  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Multiframe color calibration
« Reply #1 on: April 02, 2022, 01:01:12 AM »
Struggling for hours, and finding a solution minutes after the post...  ::)

Setting the frame as active worked :

Code: [Select]
for frame in doc.chunk.frames:
    doc.chunk.frame = frame.key
    frame.calibrateColors(ms.PointCloudData, white_balance=True)

I hope it may be helpful for others.