hello, i m new to matlab,,, plz help me ....how can we divide an image into overlapping blocks?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
for gray scale image
0 comentarios
Respuesta aceptada
Image Analyst
el 21 de En. de 2013
Editada: Image Analyst
el 21 de En. de 2013
blockproc() can do that. Or you can use just regular indexing where you specify yourImage(row1:row2, col1:col2) if you specify the rows and columns correctly. E.g.
block1 = yourImage(1:50, 1:50);
block2 = yourImage(10:60, 1:50); % Overlap of 41 pixels vertically.
0 comentarios
Más respuestas (1)
Thorsten
el 21 de En. de 2013
If your have a function FUN to be applied to each block, you can use
B = nlfilter(A, [M N], FUN)
0 comentarios
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!