try if this works for you!
using JOcTree
n = [16;16;16];
Img = zeros(UInt8,tuple(n...));
Img[9:11,8:10,6:12] = 1;
tol = .001;
S = createOcTreeFromImage(Img,tol)
for me it does not. there are two issues. first Mesh.sparse3 does not exist. second, getindex does not seem to work with UInt's. For a fix see my forked version. Feel free to pull that over if you like it.