필터 지우기
필터 지우기

can you help me identify the issue in my code

조회 수: 1 (최근 30일)
Chanille
Chanille 2023년 3월 6일
편집: Chanille 2023년 3월 10일
but its either not complete or gives an error. The errors I am getting are weird: Warning: Integer operands are required for colon operator when used as index (for the line with i = 1:numel(blobProps))
or
Error using sum
Invalid data type. First argument must be numeric or logical.
Error in mean (line 127) (but there is no mean in line 127)
y = sum(x, dim, flag) ./ mysize(x,dim);
Error in yourcode
avgFeret(zone) = mean(allFeret); please help
  댓글 수: 2
Matt J
Matt J 2023년 3월 6일
편집: Matt J 2023년 3월 6일
You have provided no demonstration of the code for us to see that something is wrong. However, you might consider bwferet instead of your own home-breweed calculation.
Chanille
Chanille 2023년 3월 6일
@Matt J I am so sorry for that. please see the revised ^^ thank you so much

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2023년 3월 7일
Try using the debugger to examine the variables.
If you have any more questions, then attach your image and full code with the paperclip icon after you read this:

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by