Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

help me in this

조회 수: 1(최근 30일)
harshavardhanreddy reddy
harshavardhanreddy reddy 2020년 2월 20일
마감: MATLAB Answer Bot 2021년 8월 20일
can anyone suggest me the matlab code how to perform this,
i want to convert rgb image (agriculture rows consists of plants on both side and in betwwen path),in to binary image and have to perform the row scan operations,and have to calculate the number of 1's in that row and adding the corresponding column number to that 1 and calculate the mean of that row.i want to calculate the width of the path available in between the plants.

답변(1개)

Image Analyst
Image Analyst 2020년 2월 20일
You can use image processing. Click here for more help.
You can use sum(binaryImage(row, :)) to count the number of 1's in the row, and bwlabel() to count the number of continguous regions of 1's.

Community Treasure Hunt

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

Start Hunting!

Translated by