Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

averaging function #8

Open
L-Fr opened this issue Sep 10, 2020 · 2 comments
Open

averaging function #8

L-Fr opened this issue Sep 10, 2020 · 2 comments

Comments

@L-Fr
Copy link

L-Fr commented Sep 10, 2020

I have a small question: When averaging a stack of HAADF images-the absolute counts of each pixel positions are getting averaged or are they also getting normalized between 0 and 65535? Because when I open a stack of frames with the plot_interactive() function, the max/min values are about 11000 to 13000, but if I average, the max/min values are from 0 to 65535 ...
For QuantitativeSTEM it would be important that the absolute count number would not change, but only being averaged over the whole stack to get an average number....

@din14970
Copy link
Owner

Yes, in the average function I normalize to stretch out the minimum to 0 and maximum to 65535. I will fix this in the next version. As a workaround do:

data = stack.data.mean(axis=0)
average = data_io.create_new_image(data, stack.pixelsize, stack.pixelunit, stack, "Averaged all frames in stack")

@L-Fr
Copy link
Author

L-Fr commented Sep 10, 2020

great, thanks a lot! If you want to, you could also leave the other option in-stretching it out is maybe also a good thing for other purposes...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants