필터 지우기
필터 지우기

How to store a circle perimeter pixels in an array that is drawn over an binary image object?

조회 수: 2 (최근 30일)
I have drawn two circles over an binary image object by taking radius=half of the mean major and minor axis and another one is 0.7*radius. Also have drawn its minor axis. Now I want to consider the upper portion of the minor axis and want to store perimeter pixels of those semi circles in individuals array. How to do that ?

채택된 답변

Image Analyst
Image Analyst 2018년 5월 20일
Take your arrays that you drew, x and y, and extract only those above the center y value
indexes = y < centerY; % Only those in the upper half.
xTop = x(indexes);
yTop = y(indexes);
  댓글 수: 18
Zara Khan
Zara Khan 2018년 7월 2일
Yes I have done that using 4 different variables then again have used some variables to draw 4 half circles then again taking 4 different loops for 4 different profiles ...this making the program lengthy and hard to handle ...how to do using loops ..can you please give me a some idea ?
Zara Khan
Zara Khan 2018년 7월 3일
Here indexes are always 1X63 for all the images. Hence the profiles are of 1X32 why? As there are two different half circle and there circumference lengths are also different still it is always coming 1X32 even for all the images in my folder this coming the same. Where is the problem in the above code?

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by