How to calculate the inter-band average image.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
S .p.aramesh S
il 21 Ott 2015
Risposto: Paul Sponagle
il 5 Nov 2016
i am new to matlab, help me?
How to calculate the inter-band average image.
3 Commenti
Image Analyst
il 22 Ott 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?
Risposta accettata
Thorsten
il 22 Ott 2015
If you have your RGB image in a MxNx3 matrix, you can use
I = im2double(imread('peppers.png')); % sample image
% make sure I is double
Ibar = mean(I, 3);
Più risposte (1)
Paul Sponagle
il 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)
0 Commenti
Vedere anche
Categorie
Scopri di più su Image Processing Toolbox in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!