HOW CAN I BREAK A DIAGONAL PIXELS IN AN IMAGE??
Show older comments
I converted a gray scale image to binary image and i want to segment out the required parts from the binary image. Now the problem is sometimes due to the intensity variation, two parts in binary image are connected "Diagonally". I want to break those diagonally connected pixels. By Using the function "bwmorph", there is an option to connect diagonal pixels but i want it to work in reverse direction, i.e., i want the diagonally connected pixels to break or make the diagonal pixels to "black color" or "0"
Can any one Help me out in this??
Accepted Answer
More Answers (2)
Sean de Wolski
on 12 Feb 2013
0 votes
Use makelut() to make a lookup table that identifies these diagonals and the unse applylut() to apply the lookup table to your data. This is the generic form of bwmorph() and essentially what it does under the hood for many of its operations.
Padma
on 12 Feb 2013
0 votes
Categories
Find more on Operating on Diagonal Matrices in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!