Deep Medical Image Analysis From Low-Resource Shape Coding