How to calculate the inter-band average image.
Show older comments
i am new to matlab, help me?
How to calculate the inter-band average image.
3 Comments
Image Analyst
on 21 Oct 2015
First define what it is? What is a band? Do you mean like a spectral band, like a color channel like R, G, or B? Or something different? And how do you define "interband"? How many bands do you want it averaged over, and is there any weighting applied to the different bands?
S .p.aramesh S
on 22 Oct 2015
Edited: S .p.aramesh S
on 22 Oct 2015
Image Analyst
on 22 Oct 2015
Explain the "B = b(i, j )" comment. Which little b is the big B equal to? There are 4 little b's: bBar, bRed, bGreen, and bBlue. Which one are you calling capital B? And why?
Accepted Answer
More Answers (1)
Paul Sponagle
on 5 Nov 2016
Better late than never:
I was trying to find band mean values, which I initially thought you wanted. Regardless this is how I did it.
For a hypercube, Z with dimensions rowXcolXband, this would be:
band_means = sum(sum(Z,2),1)/(row*col)
Categories
Find more on Image Arithmetic in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!