micasense / imageprocessing

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

Create command-line utility to mimic the Batch Processing notebook #93

Open poynting opened 4 years ago

poynting commented 4 years ago

Notebooks are nice, but a command-line tool for stacking would be handy

Should, at minimum, take -folder of input images to stack -folder to store the results -explicit path of image to use for alignment -explicit path of image containing a panel -whether or not to generate preview images (e.g. RGB, CIR, etc) -(options) which bands to use for the previews (e.g. 3,2,1 for RedEdge RGB)

Potential additions/improvements:

jonnyforestGIS commented 4 years ago

@poynting I dig in the subject and find this tutorial that can help. https://towardsdatascience.com/how-to-write-python-command-line-interfaces-like-a-pro-f782450caf0d

mdanilevicz commented 4 years ago

Hi, I did a rough version of this to process a batch of Altum images. Would be happy to share the code if you think it would be help, although my coding skills are not spectacular. :)

JPI93 commented 4 years ago

Hi, I did a rough version of this to process a batch of Altum images. Would be happy to share the code if you think it would be help, although my coding skills are not spectacular. :)

I'm working on writing something similar at the moment. It'd be amazingly helpful if you could share your code - if you don't mind :)

fischer5 commented 4 years ago

I would also be interested in this, if possible! I am working with Altum imagery too and it would be very helpful as I'm not a coding professional either. Cheers :)

poynting commented 4 years ago

I'm happy to check out a PR or gist if anyone has code they would like to share.

mdanilevicz commented 4 years ago

Sure, no problems. I will take a look at it to check if it is still running and share :)

mdanilevicz commented 4 years ago

The script is uploaded here https://github.com/moDanilevicz/multispectral_img

To run a test you have to use a few flags: radio_calib_draft.py -i -p -o -t <thumbnails? True/False> --dls <use it?True/False>

The code itself can be improved (and organized) a lot, but hope this can help :)

Edit: Suggestions to improve are more than welcome.

JPI93 commented 4 years ago

@moDanilevicz thanks for linking your code :)

poynting commented 3 years ago

Thanks for working on this all. I have merged @JPI93's code from https://github.com/micasense/imageprocessing/pull/114 into a branch (reconcile-cli-113) and we'll plan to work from there.