필터 지우기
필터 지우기

counting in which row there is a maxiumum number of ones in binary image and what is the sum of that row

조회 수: 1 (최근 30일)
counting in which row there is a maxiumum number of ones in binary image and what is the sum of that row

채택된 답변

Thomas
Thomas 2012년 4월 13일
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개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by