-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] add analyze method SLIC to generate superpixels from image #2
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2 +/- ##
===========================================
- Coverage 75.60% 28.97% -46.64%
===========================================
Files 4 5 +1
Lines 41 107 +66
===========================================
Hits 31 31
- Misses 10 76 +66
Continue to review full report at Codecov.
|
Hi @johnnychen94, If you are pleased, I will send a PR |
This is so great a news to me! Please do so! |
Add enforce connectivity feature in analyze method. The enforce connectivity implementation is based on [scikit-image](https://github.com/scikit-image/scikit-image/blob/7e4840bd9439d1dfb6beaf549998452c99f97fdd/skimage/segmentation/_slic.pyx#L240-L348). Because the original implementation uses 0-indexing, so I tried to translate into 1-indexing. Though so far there are no any problems about `unbounded error`, it is ought to conduct test because I think the implementation still have some problems in BFS part.
TODO:
Reference:
[1] Radhakrishna Achanta, Appu Shaji, Kevin Smith, Aurelien Lucchi, Pascal Fua, and Sabine Süsstrunk, SLIC Superpixels, EPFL Technical Report no. 149300, June 2010.
[2] The original C++ codes
[3] scikit-image's
slic