Contextual Encoding in Uniform and Adaptive Mesh-based Lossless Compression of MR Images