A novel automatic liver segmentation technique for MR images