m=reshape(idx2mask(14,27),[3 3 3]); V=reshape(1:27,[3 3 3]); volumetricNeighbors(m,V)
Mehul Gajwani, Monash University, 2024