how to calculate width and length of binary image?
조회 수: 14 (최근 30일)
이전 댓글 표시
I need to calculate width and length of the binary image... PLZ SUGGEST A WAY
댓글 수: 0
채택된 답변
Image Analyst
2014년 10월 18일
You can use the size() function:
[theLength, width] = size(binaryImage);
The first return argument, theLength, is the number of rows (the height), and the second output argument, width, is the number of columns.
As an aside, don't use length as the name of a variable since it's the name of a built-in function.
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!