how to enter mask
Mostrar comentarios más antiguos
Hi sir,
I want to enter this mask given below to 288*543.
288*543 contains initially 1000 as non object and 0 as object.
To that I have to enter this mask,
mask=[1.414,1,1.414; 1,1,1000; 1000,1000,1000];
and I need to apply this algorithm,
d_new(i,j)=min([d_new(i,j);1+d_new(i+1,j); 1.41+d_new(i+1,j+1);1+d_new(i,j+1);1.41+d_new(i-1,j+1)]);
and i need to update the values by d_new(i,j)
How can I achieve this in for loop.
Thanks in advance.
Respuesta aceptada
Más respuestas (1)
vetri veeran
el 24 de Oct. de 2014
0 votos
Categorías
Más información sobre Author Block Masks en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!