Borrar filtros
Borrar filtros

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

2 visualizaciones (últimos 30 días)
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 ?

Respuesta aceptada

Image Analyst
Image Analyst el 20 de Mayo de 2018
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 comentarios
Zara Khan
Zara Khan el 2 de Jul. de 2018
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 el 3 de Jul. de 2018
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?

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by