Forum

Author Topic: 'null' value on exportOrthomosaic  (Read 3339 times)

Toll

  • Newbie
  • *
  • Posts: 19
    • View Profile
'null' value on exportOrthomosaic
« on: March 07, 2017, 09:13:05 AM »
good afternoon,

i thought i remember seeing somewhere that the null or background value for an exported Orthomosaic changed in the latest 1.3.0

previous release 1.2.3 had a background value of 0,0,0, but version 1.3.0 has background value 255,255,255

is this easily changed somewhere? i cant see it as an option in the API.

we would like to change it because we have alot of downstream processes setup to use 0,0,0

thanks

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14943
    • View Profile
Re: 'null' value on exportOrthomosaic
« Reply #1 on: March 07, 2017, 12:15:05 PM »
Hello Coalisgood,

We'll try to add the background color flag (white or black) to the exportOrthomosaic function in the next update.
Best regards,
Alexey Pasumansky,
Agisoft LLC

rossnixon

  • Full Member
  • ***
  • Posts: 100
    • View Profile
Re: 'null' value on exportOrthomosaic
« Reply #2 on: March 07, 2017, 12:26:00 PM »
Only a choice of black or white? I prefer a magenta - which happens to be a colour which is never found in my orthophotos.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14943
    • View Profile
Re: 'null' value on exportOrthomosaic
« Reply #3 on: March 07, 2017, 12:30:12 PM »
Hello rossnixon,

I think in the 1.3.1 there would be only black or white. "Magenta" cannot be applied easily to non-RGB multichannel exports.

Meanwhile you can use alpha-channel anyway to cover the unused area.
Best regards,
Alexey Pasumansky,
Agisoft LLC

Toll

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: 'null' value on exportOrthomosaic
« Reply #4 on: October 04, 2017, 12:59:11 AM »
Hi Alexey,
i see this option is now available in the GUI for exportmosaic in version 1.3.1, but i see no reference of it in the python 1.3 API?

is this available too please?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14943
    • View Profile
Re: 'null' value on exportOrthomosaic
« Reply #5 on: October 04, 2017, 10:38:33 AM »
Hello Coalisgood,

You can use white_background = True as an argument in the exportOrthomosaic() function to get white color. For black background use white_background = False.
Best regards,
Alexey Pasumansky,
Agisoft LLC