필터 지우기
필터 지우기

All result is zero !

조회 수: 1 (최근 30일)
Dani D
Dani D 2016년 4월 23일
답변: Azzi Abdelmalek 2016년 4월 23일
Hello, I want write this formula but all result is zero :(
input = imread('cameraman.tif');
[m , n] = size(input);
L = 255;
Xmax = L - 1 ;
Xc = 0.5;
Fe = 2;
Fd = 30;
Pmn = ones(m,n);
Pmn = double(Pmn);
for i = 1:m
for j = 1:n
Xmn = input(i,j);
Pmn(i,j)=1/((1+((Xmax-Xmn)/Fd)).^Fe);
end
end

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2016년 4월 23일
Use
Xmn = double(input(i,j))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with MATLAB에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by