Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moving matchHistogram and panSharpen from eemont to ee_extra #28

Closed
davemlz opened this issue Dec 16, 2021 · 10 comments · Fixed by #35
Closed

Moving matchHistogram and panSharpen from eemont to ee_extra #28

davemlz opened this issue Dec 16, 2021 · 10 comments · Fixed by #35
Assignees
Labels
enhancement New feature or request

Comments

@davemlz
Copy link
Collaborator

davemlz commented Dec 16, 2021

Hi, @aazuspan!

@csaybar and I are giving ee_extra the final touch and we want to know if you would accept to move the amazing matchHist and panSharpen resources from eemont to this repo and make them available for the whole ecosystem.

Please let me know if you accept! :)

And if you want, I can move them myself (and also re-arrange the resources in eemont by using ee_extra), just let me know!

Cheers!

Dave

@davemlz davemlz added the question Further information is requested label Dec 16, 2021
@davemlz davemlz changed the title Moving histMatching and panSgharpen from eemont to ee_extra Moving histMatching and panSharpen from eemont to ee_extra Dec 16, 2021
@aazuspan
Copy link
Collaborator

Hey @davemlz!

I'd be happy to move those over. I'll assign myself. Any thoughts on where to put them? Seems like matchHistogram would fit in the Spectral module, but not sure about panSharpen.

@aazuspan aazuspan self-assigned this Dec 18, 2021
@aazuspan aazuspan added the enhancement New feature or request label Dec 18, 2021
@davemlz
Copy link
Collaborator Author

davemlz commented Dec 18, 2021

Hi, @aazuspan!

That's amazing! @csaybar is going to create a subpackage Algorithms and you can include panSharpen in there! :D

If you need anything else, please let us know!

Cheers!

@davemlz davemlz removed the question Further information is requested label Dec 18, 2021
@davemlz
Copy link
Collaborator Author

davemlz commented Dec 18, 2021

Hi, @aazuspan @csaybar!

I already created the Algorithms subpackage :)

Cheers!

@davemlz davemlz changed the title Moving histMatching and panSharpen from eemont to ee_extra Moving matchHistogram and panSharpen from eemont to ee_extra Dec 18, 2021
@aazuspan
Copy link
Collaborator

Thanks @davemlz!

@davemlz
Copy link
Collaborator Author

davemlz commented Dec 20, 2021

Hi, @aazuspan!

I've merged the matchHistogram PR, thank you very much! :) Let me know when you add it to eemont! :D

@aazuspan
Copy link
Collaborator

Thanks @davemlz, will do :)

@aazuspan
Copy link
Collaborator

aazuspan commented Jan 1, 2022

Hey @davemlz and @csaybar, I was thinking about making a couple changes when I migrate the pan-sharpening methods over and wanted to get some input before I move ahead.

Currently in eemont there are a bunch of different quality assessment algorithms that can be run during pan-sharpening to evaluate sharpening results. Basically, each metric is a callable class that compares two images and returns either a band-wise dictionary or an image-wise value indicating correlation/distortion/bias/etc between the images. This functionality is all hidden inside of panSharpen, so there's no way to access them independently.

To make these accessible to users or other modules, I was thinking I could add a metrics sub-module to the QA module, so that they could be accessed like so:

>>> from ee_extra.QA.metrics import UIQU
>>> # Returns an ee.Dictionary object
>>> quality = UIQI(img1, img2)
>>> quality.getInfo()

{"B2": 0.00165, "B3": 0.00095 , "B4": 0.00347}

Does that sound like a good plan?

@csaybar
Copy link
Member

csaybar commented Jan 2, 2022

Hi @aazuspan I think it is a great idea because we could use this metric module not just for pansharpening but for ML models as well, isn't it?. Maybe is it is possible we can use the same names of other metric packages like torchmetrics. https://torchmetrics.readthedocs.io/en/latest/

@aazuspan
Copy link
Collaborator

aazuspan commented Jan 3, 2022

Yeah, the image metrics could definitely be useful for ML if you needed to compare image similarity, e.g. training a super-resolution model. It doesn't look like there's any crossover between the metrics in torchmetrics and the ones I've implemented, but I'll keep an eye out for other ML libraries and try to stay consistent. I'll also look into the metrics from torchmetrics to see what it would take to add those!

aazuspan added a commit to aazuspan/ee_extra that referenced this issue Jan 3, 2022
@davemlz
Copy link
Collaborator Author

davemlz commented Jan 7, 2022

This (aazuspan@bfe7d03) is beautiful, @aazuspan! Thank you!

Taking this into consideration, I'll open a new Metrics issue where we can keep an update of the metrics we are adding :)

@aazuspan aazuspan mentioned this issue Jan 18, 2022
aazuspan added a commit to aazuspan/ee_extra that referenced this issue Feb 19, 2022
aazuspan added a commit to aazuspan/ee_extra that referenced this issue Feb 22, 2022
aazuspan added a commit to aazuspan/ee_extra that referenced this issue Feb 22, 2022
aazuspan added a commit to aazuspan/ee_extra that referenced this issue Feb 26, 2022
aazuspan added a commit to aazuspan/ee_extra that referenced this issue Feb 27, 2022
aazuspan added a commit to aazuspan/ee_extra that referenced this issue Feb 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants