Find closed loop after using bwboundaries

First, I'm sorry for my English. And my problem is I have use bwboundaries and receive matrix B. Now I want to find all boundaries in B that every dots have at least 2 neighbours (that I think is a closed loop). Can you show me the way to do so?

Answers (0)

Asked:

on 18 Dec 2017

Edited:

on 18 Dec 2017

Community Treasure Hunt

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

Start Hunting!