How to plot entire boundary points ?

3 visualizaciones (últimos 30 días)
Selva Karna
Selva Karna el 22 de Ag. de 2017
Comentada: Selva Karna el 29 de Ag. de 2017
How to plot entire boundary points ? I have 7 cell boundaries i need to plot entire boundaries how is it possible?
  3 comentarios
José-Luis
José-Luis el 22 de Ag. de 2017
Most such things are possible.
How?
Difficult to say without knowing your data and what you expect the output to be.
Selva Karna
Selva Karna el 22 de Ag. de 2017
I have boundary data's its a contain 7 cells , when i run plot this data, i have get only one cell plot, so how can plot all cells? i have attached my cell files ?
2806x2 double 33x2 double [647,541;647,541] [482,798;482,798] [1,830;1,830] 3513x2 double 33x2 double

Iniciar sesión para comentar.

Respuesta aceptada

Image Analyst
Image Analyst el 25 de Ag. de 2017
You have multiple blobs so multiple boundaries, each of a different length so that's why they're in a cell array. You need to extract each boundary one at a time and plot it. See this snippet. Adapt as needed.
imshow(originalImage);
title('Outlines, from bwboundaries()', 'FontSize', captionFontSize);
axis image; % Make sure image is not artificially stretched because of screen's aspect ratio.
hold on;
boundaries = bwboundaries(binaryImage);
numberOfBoundaries = size(boundaries, 1);
for k = 1 : numberOfBoundaries
thisBoundary = boundaries{k};
plot(thisBoundary(:,2), thisBoundary(:,1), 'g', 'LineWidth', 2);
end
hold off;
  2 comentarios
Selva Karna
Selva Karna el 29 de Ag. de 2017
thanks image Analyst, actually i need to smoothing boundary points , i have applied to this boundary , but i have get in only one boundary only i have able to smooth but remaining boundary i get in error so can you help me?
Selva Karna
Selva Karna el 29 de Ag. de 2017
dear image Analyst i have 6 cell i need to filter following datas
so can you please how to filter this data using for loop?
[2363×2 double]
[ 11×2 double]
[ 5×2 double]
[ 57×2 double]
[ 19×2 double]
[ 2×2 double]

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox 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