Borrar filtros
Borrar filtros

All result is zero !

1 visualización (últimos 30 días)
Dani D
Dani D el 23 de Abr. de 2016
Respondida: Azzi Abdelmalek el 23 de Abr. de 2016
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

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 23 de Abr. de 2016
Use
Xmn = double(input(i,j))

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by