Comments (3)
Sorry, I forgot to mention that printing the image is done by treating the normalized wavelet coefficient as pixel values.
from jwave.
Hi DionK90,
sorry for being late in answer but I am very busy those days.
Thanks for your input, great job!
I did the same around 7 years ago with images in C++ code instead java and MATLAB.
I have two answers for you:
First, If you have a precsion betweenn a 2.E-0 and a 2.9799526887373042E-12, the E-12 can be seen as "numerical zero", independently of the sign.
Second, by wavelets theory you have the possiblity to implement the transform algorithms in several ways, due to having an orthogonal (orthonormal) basis, the wavelets. My implementation adds up each level (step) to the coefficients (low pass, engery & high pass, details) before, and splits it up again in the reverse transform. This allows for not having larger matrices while transforming and, therfore, opens the way to a very efficient image compression.
My fwt works for the Haar like:
signal: low0_1, low0_2, low0_3, low0_4, low0_5, low0_6, low0_7, low0_8
haar_fwt1: low1_1, low1_2, low1_3, low1_4, high1_1, high1_2, high1_3, high1_4
haar_fwt2: low2_1, low2_2, high2_1, high2_1, high1_1, high1_2, high1_3, high1_4
haar_fwt3: low3_1, high3_1, high2_1, high2_1, high1_1, high1_2, high1_3, high1_4
(8=2^3 => 3 steps useful)
As a note, independent of how the transform algorithm is implemented, displaying information using any orthogonal wavelet basis is the big gain.
best
Christian
from jwave.
Hey Guys!
Could you give me a code example of how to do a fastWaveletTransform, forward or reverse, in an image java from reading to the writing.
I would appreciate a lot, thanks!!!
from jwave.
Related Issues (19)
- easy speed improvement HOT 1
- Consider moving to Maven project layout? HOT 1
- decompose() then recompose() giving incorrect results HOT 4
- continuous wavelet transforms HOT 1
- AMD Aparapi OpenCL Java suport? HOT 1
- Arbitrary length wavelet coefficients order HOT 4
- Flipped signs in all high pass filter coefficients, error in _buildOrthonormalSpace HOT 1
- Symlet HOT 1
- Question: Structure of the coefficients in the array returned from the forward transform HOT 1
- Java 16 SIMD Support for faster Library HOT 1
- Power of 2 test (isBinary) HOT 4
- Cannot build
- reverse and forward functions HOT 1
- Maven repo HOT 1
- Discrete Wavelet Transform HOT 1
- Use of arbitrary length input array to Daubechies 4 FWT HOT 6
- Example Usage doesn't work HOT 1
- question on example. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jwave.