In this paper,combined with highly efficient SPIHT algorithm,an arbitrary shape integer or non-integer wavelet transform is employed to implement the lossless compression of region of interest (ROI) with arbitrary shape and lossy compression of non-ROI.