pierrepaleo / pdwt Goto Github PK
View Code? Open in Web Editor NEWA GPU implementation of the Wavelet Transform
License: Other
A GPU implementation of the Wavelet Transform
License: Other
Hi there,
Is it possible to set cuda stream explicit when use this library? Which interface function should I invoke?
Hello there.
I'm using Wavelets::forward() to perfrom DWT and Wavelets::get_coeff() to get my result.
The wavelet used here is "db8", and here are the results:
I compared them with the output from another DWT library (Rice Wavelets Toolbox), who gives these:
I found that the spatial position of the coefficients seems to be shifted by a small amount.
I'm no an expert at signal processing so I don't know whether this is a bug or a non-critical issue.
Hi there,
I am interested on working with this API since it is very useful for my thesis work. Do you know if the functions are compatible with CUDA 10?
Best regards
I'm trying to make a 1D forward transformation, but whatever I try it always return a set of zeros as the coefficients.
Here is the code: xaionaro-go@3bade79#diff-c45b8ec98032bf3c66a8cf8226fecd05fbe771cfe0bdbc60f9e1c76c76983e8cR110-R120
Here is data
:
[1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2,1, 2, 1, 2, 1, 2, 1, 2]
levels
is 2
wavelet
is haar
.
Could you advise what do I do wrong?
I tried to reproduce the 2D discrete wavelet transform in Matlab and PDWT, and then plotted a histogram of the cA parameter. The results are shown in the figure below, with red representing the result from Matlab and blue representing the result from PDWT. I would like to know what could be the possible reasons for this situation?
This is my C++ code.
Wavelets w(img_f,rows,cols,"haar",1,1,1,0,0,2); w.forward(); w.get_coeff(LL, 0); //....change LL(float *) to LL(cv::Mat) cv::Mat hist_cA; const int bin = 256; float range[] = {0,255}; const float* histRange[] = {range}; cv::normalize(LL,LL,0,255,cv::NORM_MINMAX,-1); cv::calcHist(&LL,1,0,cv::Mat(),hist_cA,1,&bin,histRange,true);
This is the Matlab code.
[LL,LH,HL,HH] = dwt2(I1,'haar'); hist_cA = imhist(mat2gray(LL));
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.