Find external contour in image Matlab

Hi everyone,
I have the following problem in Matlab: I have the following BW image and I would like to find and separate the external contour of it (I've marked it in red).
Schermata 2019-03-28 alle 13.45.00.png
This is what I expect to have as final result.
Schermata 2019-03-28 alle 13.55.33.png
How can I obtain it? Thank you

Antworten (1)

darova
darova am 28 Mär. 2019

0 Stimmen

Simple?
Untitled.png

2 Kommentare

Marco Solbiati
Marco Solbiati am 2 Apr. 2019
I want to do it automatically using image processing toolbox.
I = imread('image.png');
RGB = [255 0 0];
I1 = I(I(:,1)==RGB(1),I(:,2)==RGB(2),I(:,3)==RGB(3)); % your new image

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Contour Plots finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2016b

Gefragt:

am 28 Mär. 2019

Kommentiert:

am 2 Apr. 2019

Community Treasure Hunt

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

Start Hunting!

Translated by