Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

Allow contiguous pixels only in superpixel tool #26

Open
rytido opened this issue Jun 12, 2017 · 2 comments
Open

Allow contiguous pixels only in superpixel tool #26

rytido opened this issue Jun 12, 2017 · 2 comments
Labels

Comments

@rytido
Copy link

rytido commented Jun 12, 2017

Is there a way to prevent the superpixel tool from associating non-contiguous pixels (aside from reducing the size)? For example, the red shapes below should be kept separate instead of associated as they currently are.

image

@kyamagu
Copy link
Owner

kyamagu commented Jun 12, 2017

@doodnayr Currently there is no algorithm is implemented to force separating connected components, though some piece of code is relevant.

Temporarily you can try a different segmentation algorithm (e.g., slico) or set different minRegionSize to mitigate the issue.

@rytido
Copy link
Author

rytido commented Sep 14, 2017

Ok, I'm using slico, thank you. For anyone that might stumble on this, it can be set in js/app/edit.js:

superpixelOptions: { method: "slico", regionSize: 25 }

Also, making shapes finer or coarser (boundary -+ buttons) does not work unless you use "FixedK" method.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants