MATLAB: How to calculate the inter-band average image.

Image Processing Toolboxinter-band average

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

Best Answer

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