distance between an image and a sliding window
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi ! I have an image I of size 300x300 pix, and a "filter" F of size 12x12 pix, and I would like to slide this patch everywhere on I and for each position, to extract the euclidean distance between F and the 12x12 local patch of I. Is there an efficient way to encode this ? In advance, Thanks !
2 comentarios
Rik
el 1 de Dic. de 2017
Do you mean a convolution? If so, Matlab has a function to do that. I don't really understand what you mean with the distance between the sample and the filter. Could you provide a small example of how this should work?
Respuestas (1)
Image Analyst
el 2 de Dic. de 2017
Convolve I with F first using convn(). Then use immse().
0 comentarios
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!