lessthanoptimal / BoofCV

Fast computer vision library for SFM, calibration, fiducials, tracking, image processing, and more.
http://boofcv.org
1.07k stars 257 forks source link

Wavelet Transform applied to an BufferedImage #40

Closed RenanFucci closed 8 years ago

RenanFucci commented 8 years ago

Hello! First i would like to congratulate the lib, it helped me a lot! But I'm having a trouble using wavelet transform in an image Java. I tried specifically the Haar and Daubechies transform. Could you give a code example of how doing it to a bufferedImage, since the reading to writing?

Thank you!

lessthanoptimal commented 8 years ago

You'll need to convert the BufferedImage into a BoofCV type image, which is very easy. ConvertBufferedImage.convertFrom() to go from BufferedImage to your desired BoofCV image type and ConvertBufferedImage.convertTo() to go back from the BoofCV type to BufferedImage.

For future reference, post question like this (or any follow up questions) to the discussion group.

https://groups.google.com/forum/#!forum/boofcv