필터 지우기
필터 지우기

How to calculate the inter-band average image.

조회 수: 1 (최근 30일)
S .p.aramesh S
S .p.aramesh S 2015년 10월 21일
답변: Paul Sponagle 2016년 11월 5일
i am new to matlab, help me?
How to calculate the inter-band average image.
  댓글 수: 3
S .p.aramesh S
S .p.aramesh S 2015년 10월 22일
편집: S .p.aramesh S 2015년 10월 22일
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 2015년 10월 22일
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?

댓글을 달려면 로그인하십시오.

채택된 답변

Thorsten
Thorsten 2015년 10월 22일
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);

추가 답변 (1개)

Paul Sponagle
Paul Sponagle 2016년 11월 5일
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)

카테고리

Help CenterFile Exchange에서 Color Space Formatting and Conversions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by