micasense / imageprocessing

MicaSense RedEdge and Altum image processing tutorials
https://www.micasense.com
MIT License
263 stars 152 forks source link

Band order to natural wavelength order for aligned export #176

Closed robertjackisch closed 2 years ago

robertjackisch commented 2 years ago

Dear Micasense Support Team,

I was working with the excellent source code found here: https://micasense.github.io/imageprocessing/Alignment.html

But why is the band order for the Altum camera (our sensor) is: B G R NIR rededge in the processing scripts? Its commented in the code as well:

NOTE: NIR and RedEdge are not in wavelength order!

My question is, can this be changed with an internal option, back to the natural wavelength order? Probably this just a small change, but i cannot find it in the original code provided? E.g., I guess the outdata = im_aligned[:,:,i] can be touched, but that would make it slower?

Best regards

poynting commented 2 years ago

Hi, a reminder that this forum isn't monitored by the MicaSense support team, it's a community effort that some MicaSense folks help out with from time to time; however, I can answer your question. The band order in the example maintains the band order from the camera, which is based on legacy MicaSense products.

https://support.micasense.com/hc/en-us/articles/220233768-Altum-and-RedEdge-Band-Order

The example is a bit outdated, if you look at the capture class there is an updated function that does this for you, and it has an option to sort by wavelength if you like.

def save_capture_as_stack(self, out_file_name, sort_by_wavelength=False, photometric='MINISBLACK'):

There are some updates to the alignment examples in the 10-band notebooks for alignment and batch processing.

robertjackisch commented 2 years ago

Thanks!