News for hackers. Stuff that matters.
Re:Show HN: Image segmentation and background removal in Jav... by pmontra on Friday July 24, 2015 @06:03PM (#9945477)
Great demo. Out of curiosity, why not compiling the C algorithm with emcc into asm.js and probably get better performances (but a much larger js file) ?
Re:Show HN: Image segmentation and background removal in Jav... by secondtimeuse on Friday July 24, 2015 @06:11PM (#9945511)
Its actually based on https://github.com/kyamagu/js-segment-annotator which implements two algorithm SLIC and PF.

Regarding compiling C using emscripten, I wanted a pure JS implementation so that it was hackable using Chrome Developer tools, E.g. using LAB data internally produced by SLIC algorithm. Hopefully in future, I will use a emscripten implementation. It might be important for version that proceses short gifs or videos.

Also there is a developer mode on top right, enabling it allows visualization of superpixels and change parameters of the algorithm.