Questions tagged [haar-wavelet]

In mathematics, the Haar wavelet is a sequence of rescaled "square-shaped" functions which together form a wavelet family or basis. They are similar to techniques used in facial recognition.

In mathematics, the Haar wavelet is a sequence of rescaled "square-shaped" functions which together form a wavelet family or basis. Haar-like features are digital image features used in object recognition. They owe their name to their intuitive similarity with Haar wavelets and were used in the first real-time face detector.

117 questions
0
votes
0 answers

How to get matrix 1D from Wavelet DWT using Opencv?

I've tried to use haar wavelet method but the result matrix is not in 1D matrix. How to get 1D matrix from haar wavelet? Here's my code: Import cv2 From pwt import wavedec imgcv1 = cv2.split(resize)[0] cv2.boxFilter(imgcv1, 0, (7,7), imgcv1,…
0
votes
1 answer

how to change dilation and translation coefficient in pywt

I am new to pywt and wavelet analysis. I am now facing several problems, and I hope someone can help me with them. First, I would like to change dilation (D) and translation (x) in my_wavelet, but I do not know how to do it exactly. I will be very…
Grace Wang
  • 67
  • 5
0
votes
0 answers

Vstack to get array

Im trying to put the vector i get from z in A and from q in B and then stacking them together. arr is an array from image of size (600,478). M=600, N=478. For some reason the matrix i get out is not the right one. def avgdif(M): …
bajsmackan
  • 13
  • 3
0
votes
0 answers

ValueError: Input array has fewer dimensions than the specified axes

I was trying to apply discrete wavelet transform on 2D matrix of size (23x7680) but I get this error ValueError: Input array has fewer dimensions than the specified axes. Any help would be appreciated. code: data=np.random.rand(23,7680) coeffs =…
Edayildiz
  • 545
  • 7
  • 16
0
votes
1 answer

Can Flatbuffers take advantage of 0's in vectors? Or are other wavelets better than the Haar transform?

I'm serializing some data and want to make the file size as small as possible without losing the essential details of the data. The first step for me was to save the data in a binary format instead of ASCII and I decided to try Flatbuffers. …
premes
  • 363
  • 2
  • 8
0
votes
2 answers

Why is Wavelet Denoising producing identical results regardless of threshold level?

I'm trying to denoise financial time series data (second by second). I have a very long time series, but I've been working with 100,000 observations just to test how well the wavelet denoising (haar) works. It doesn't. No matter what I do, the…
0
votes
1 answer

Wavelet rasterzation - Apply agorithm/understand algorithm

I try algorithm in paper for triangle have points (0;0), (1;0), (1, 1/2) but get answer I think is wrong (calculation is below): http://faculty.cs.tamu.edu/schaefer/research/wavelet_rasterization.pdf Basic idea is this algorithm calculate faction…
Châu
  • 103
  • 1
  • 6
0
votes
1 answer

Discrete wavelet transform for image texture analysis

I am planning to use the discrete wavelet transform to extract textural features from grayscale images for classification purpose. However, I am not sure which type of wavelet should I choose? most of the studies I read, using Haar or Daubechies…
0
votes
0 answers

Haar wavelet result colors are messed up

I tried adjusting this code of Haar wavelet transform to work with OpenCV.js. The recursion works fine but the colors of the resulting image are all messed up. Here's a screenshot of my results: Here's what the output should look like: And here's…
Stella
  • 95
  • 3
  • 13
0
votes
0 answers

Customize haar cascade classifier for object detection

I have implemented the haar cascade classification for object detection. I want to extract daubechies features in the same way and apply a classifier of my interest. How to customize haar cascade classifier in this way? I have collected positive and…
0
votes
0 answers

HAAR cascade training stuck in the middle

I have 9768 positive images and 18050 negative images. At stage 2 I think it is stuck now more than 10 hours. I have already spent one day training. I don't want to waste that by closing the training.. Is it normal for this kind of behavior in the…
Nemi Bhattarai
  • 181
  • 1
  • 4
  • 11
0
votes
0 answers

running Discrete wavelet transform in R Language

Please can someone help with a solution for running Discrete wavelet transform in R. I have tried with the following data format; Year, Rain. Year is in form of 1970,1972,1973.... and Rain in form of 200, 85, 34, 56 23, 0.5... etc. I don't know if…
0
votes
0 answers

Haar Wavalet transform using matlab

I want to make haar wavelet transform of an image. I use this code, but the result is too bad. Can you help me?…
0
votes
1 answer

Scala: Haar Wavelet Transform

I am trying to implement Haar Wavelet Transform in Scala. I am using this Python Code for reference Github Link to Python implementation of HWT I am also giving here my Scala code version. I am new to Scala so forgive me for not-so-good-code. /** …
Vipul Vaibhaw
  • 395
  • 7
  • 15
0
votes
0 answers

Normalization procedure behind haar transform in R

I run the haar transform for [9,7,3,5] (using wavelets package) and I'm not figuring out how to achieve the output coefficients. I believe that the unnormalized result would be: [6,2,1,-1]. From what I've read, the normalization is done by…
Printil
  • 1
  • 1