4 and 8-connected pixels

Hello everyone! I need to solve the detection of 4 and 8 connected pixels neighborhood of a object in an image. Any ideeas or source code?
Thanks!

2 Comments

Your question is not clear.
i rewritten

Sign in to comment.

Answers (1)

Andres Fonts
Andres Fonts on 6 Jul 2017

0 votes

Try using regionprops matlab function

Asked:

on 31 Jan 2017

Answered:

on 6 Jul 2017

Community Treasure Hunt

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

Start Hunting!