Clear Filters
Clear Filters

How do I use bwlabel for an image with periodic boundary condition?

2 views (last 30 days)
I want to find the clusters from my image for which I am using bwlabel function. But, since I am having Periodic Boundary Condition, so I need to label the groups in the boundary (on opposite sides) with same number. So, how do I change the labels of the groups? What I plan is to shift my first column to extreme right and then check for clusters and then relabel the groups on extreme right with the labels of my first column. Is there a way to do it? Alternative ways to implement Periodic Boundary Condition can also help.
  2 Comments
Image Analyst
Image Analyst on 3 Jul 2017
It could get complicated, like in the case of 8-connected blobs on the right and left sides that don't share any of the same rows, say like a sine wave snaking it's way up the side. Why do you think you need this?
palaciosg226
palaciosg226 on 8 Jun 2020
Hello, I have the same question. In many applications such as percolation detection, this tool is necessary.

Sign in to comment.

Answers (0)

Categories

Find more on Convert Image Type in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!