3 ms·
In many languages, writing a general (N-dimensional) implementation of this conceptually-simple algorithm is somewhat painful, but in Julia it’s a piece
by jordigh 11y ago
In many languages, writing a general (N-dimensional)
implementation of this conceptually-simple algorithm is somewhat
painful, but in Julia it’s a piece of cake:
Indeed, for the Octave implementation of bwlabeln[1] I had to do something like that for considering the n-dimensional neighbours of each voxel in C++. I ended up padding the Nd-array with zeros. What do people normally do in languages that are not Julia?
--
http://sourceforge.net/p/octave/image/ci/default/tree/src/bwlabeln.cc#l101 http://sourceforge.net/p/octave/image/ci/default/tree/src/bw...