why ''regioprops area'' doesn't work?
이전 댓글 표시
i have an image B as below http://tinypic.com/view.php?pic=2aaek9c&s=5#.Utm_VBBYkdU and i label it, becase i want to find the area of each line separately. but when i write B2=bwlabel(B) stats=regionprops(B2,area) it returs '' Error using area (line 42) Must supply Y data or X and Y data as first argument(s).'' can somebody tell me what is wrong? thanks a lot!
댓글 수: 2
Bruno Pop-Stefanov
2014년 1월 17일
Could you please attach the original image to your question?
Bruno Pop-Stefanov
2014년 1월 17일
Also, you have to write the property you want to extract in quotes:
stats = regionprops(B2, 'Area');
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Region and Image Properties에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!