calculating error while averaging multiple images
Show older comments
Hi, I have a simple problem and needs guidance. I have 15 image files. I want to calculate the average of these images and calculate error on these images. Any help is appreciated.
Accepted Answer
More Answers (2)
Image Analyst
on 10 Aug 2020
Edited: Image Analyst
on 12 Aug 2020
1 vote
See my attached demo. It averages RGB and gray scale images and gives statistics about them.. Adapt as needed.

11 Comments
Sumera Yamin
on 10 Aug 2020
Image Analyst
on 10 Aug 2020
You can use my camera noise analyzer program to do that. I've attached it. Browse to your folder of images then select some and analyze them. Let me know if anything on it does not work.

Image Analyst
on 11 Aug 2020
Sumera, regarding your "Answer", your attached screenshot does not show an error. Does it say something in the command window? Usually I also print the error to the command window as well as popping it up in a message box. Clear Mask lets you remove any mask you'd drawn over a subimage with the Step 3 button so that you are again analyzing the entire window instead of just analyzing inside the drawn mask area.
Sumera Yamin
on 12 Aug 2020
Image Analyst
on 12 Aug 2020
Are all your images RGB and the same size? Please attach two of them so I can see what went wrong, because for me, with a folder of RGB images all of the same size, it went fine.
Sumera Yamin
on 12 Aug 2020
Image Analyst
on 12 Aug 2020
Edited: Image Analyst
on 12 Aug 2020
I've adapted it to handle gray scale images. See attatchment.

Sumera Yamin
on 16 Aug 2020
Walter Roberson
on 16 Aug 2020
Replace isfolder() with isdir() on older MATLAB.
Sumera Yamin
on 16 Aug 2020
Image Analyst
on 17 Aug 2020
See attached.
Sumera Yamin
on 11 Aug 2020
0 votes
Categories
Find more on Blocked Images in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!