Line 32 in ImageFromMMAP.m should be changed from: if BuToolsCheckInput && ~CheckMAPRepresentation(D) to if BuToolsCheckInput && ~CheckMMAPRepresentation(D) Otherwise the documentation example for ImageFromMAP does not work.