How can I. Solve this problem. Total of each region (size 3 x 3, 5 x 5 and 9 x 9) as shown as example below.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Jhomanne
el 2 de Mzo. de 2014
Respondida: Jhomanne
el 3 de Mzo. de 2014

1 comentario
dpb
el 2 de Mzo. de 2014
As this looks too suspiciously like homework assignment your initial effort and specific problem are???
Respuesta aceptada
Image Analyst
el 2 de Mzo. de 2014
I don't see any colored 5x5 or 9x9 regions there. But I do remember seeing that picture sometime recently. Like I told renuka you can just use convolution to find out the sums everywhere, or if you have known regions, like the red, you can just use sum() and indexing:
subImage = yourImage(4:6,1:3);
theSum = sum(subImage(:));
Read this for further advice: http://www.mathworks.com/matlabcentral/answers/8626-how-do-i-get-help-on-homework-questions-on-matlab-answers
0 comentarios
Más respuestas (1)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!