i am new to matlab, help me?
How to calculate the inter-band average image.

3 Kommentare

Image Analyst
Image Analyst am 21 Okt. 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
S .p.aramesh S am 22 Okt. 2015
Bearbeitet: S .p.aramesh S am 22 Okt. 2015
Let B = b (i, j ) ; i = 1, 2, . . . , Mm ; j = 1, 2, . . . , Nn I need sir,but i don't know how to do this
A set of image blocks of size m × n, containing the RGB color pixel information. The original image block b(i, j ) is firstly converted into the inter-band average image ¯bk,l (i, j )
Image Analyst
Image Analyst am 22 Okt. 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?

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Thorsten
Thorsten am 22 Okt. 2015

1 Stimme

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);

Weitere Antworten (1)

Paul Sponagle
Paul Sponagle am 5 Nov. 2016

0 Stimmen

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)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by