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

support image normalization #36

Closed
wants to merge 2 commits into from
Closed

support image normalization #36

wants to merge 2 commits into from

Conversation

mengxue-rs
Copy link

In this commit, common normalization methods are realized in the normalise_image function of utils.py and a normalization argument is added in the main.py.

In this commit, common normalization methods are realized in the normalise_image function of utils.py and a normalization argument is added in the main.py.
@mengxue-rs
Copy link
Author

mengxue-rs commented Dec 3, 2020

the default value of the normalization argument is set as MNI (Converting the dynamics to [0, 1] along the whole image.) same to original setting

img = (img - np.min(img)) / (np.max(img) - np.min(img))

Copy link
Owner

@nshaud nshaud left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job. I added a few comments to clarify some points but we will be able to merge this soon.

datasets.py Outdated Show resolved Hide resolved
"SNB: Normalizing first- and second-order moments along each band."
"MNI: Converting the dynamics to [0, 1] along the whole image."
"SNI: Normalizing first- and second-order moments along the whole image.",
)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add what these acronyms mean?

@mengxue-rs mengxue-rs closed this Dec 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants