counting in which row there is a maxiumum number of ones in binary image and what is the sum of that row
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
counting in which row there is a maxiumum number of ones in binary image and what is the sum of that row
0 comentarios
Respuesta aceptada
Thomas
el 13 de Abr. de 2012
this might help, General example not specific to image processing..
b=(rand(5)>0.5) % create a 5x5 matrix of 1's and 0's (random)
c= sum(b,2) % sum of 1's rowwise
high_row=find(c==max(c)) % finds the row/rows with the highest number of 1's
0 comentarios
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!