Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: wojtek on July 07, 2021, 01:35:49 PM

Title: Best Way to edit Metashape.Image()
Post by: wojtek on July 07, 2021, 01:35:49 PM
Hey Alexey,

Can you advise me what would be the best way to edit a Metashape.Image() that i get by using model.renderDepth()?

I'd like to replaces values below a certain F32 treshold with 0 and then convert to an 8bit Metashape.Image()

Many thanks in advance.


Edit: I just realized I can simply iterate over the Image() and copy values to a new numpy array then convert that to an image using PIL. If there are better solutions please advise though :)