Computationally Efficient Wavelet Transform for Coding of Arbitrarily-Shaped Image Segments