Efficient lossless coding model for medical images by applying integer-to-integer wavelet transform to segmented images