Haar/ Wavelet Transform on Image

caffeinecranked's icon

Hey guys,

I was wondering if anyone has ever experienced haar transform on image? I was wondering if there is any library that computes haar transform/wavelet transform on image for image processing? I know haar is the most basic wavelet transform so I thought if anyone had any idea regarding this matter, it would be great if you could advise me on this. I was thinking of doing it in max/msp or even Processing.

Thanks!

mzed's icon

I think you could do this with jit.convolve if you had the right kernal. And, that's probably a 3x3 matrix of 0.11's or something similar. The output of that gives you the residual, which you could subtract from the original to get the detail. You could probably do the same thing more efficiently using jit.fastblur.

I'm making this up based on what I know about Haar wavelets in the audio domain, which can be implemented as an averaging, down-sampling filter.

mzed's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Or, maybe with jit.dimop:

caffeinecranked's icon

Hello mzed thank you so much for your replies.
I was wondering if you could explain a bit of what you did in your patch, I would be very much grateful!

Also, from there, I want to extract the values of the resulted edges, I was trying about to do it, I looked into wesley smith's X-ray.jit.cellcoords.. I was wondering what is the best way to do this?