Image analysis using space-filling curves and 1D wavelet bases