Forum

Author Topic: Best Way to edit Metashape.Image()  (Read 2616 times)

wojtek

  • Sr. Member
  • ****
  • Posts: 284
    • View Profile
Best Way to edit Metashape.Image()
« 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 :)
« Last Edit: July 07, 2021, 02:19:43 PM by wojtek »