less connected pixels from gray scale image

i have a gray scale image that contains a box of white and a text. i need to convert only text because those pixels are less connected than box pixels. if i find an of the command for connected pixels such as bwareaopen (bw, 8) or 4 pixel connection i can even get box pixels as well but i only want to label those pixels that has less connection. need help please.

1 个评论

You forgot to attach your image. And I don't know what "if i find an of the command" means.

请先登录,再进行评论。

 采纳的回答

Label the more connected pixels. The pixels that did not get labeled are then the less-connected pixels.

2 个评论

but sir i have to use that less connected pixels image as a mask for pixel elimination from image so i couldn't find any command to just find pixels of less connectivity
m = bwareaopen (bw, 8);
lessconnected = bw & ~m;

请先登录,再进行评论。

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Modify Image Colors 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by