Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
1 answer
74 views

I am trying to figure out how to match the output from FTTW to OpenCV's 2D DCT. It looks like the output is scaled in some way related to square root of the number of rows and columns, if the rows or ...
0 votes
1 answer
151 views

Getting black images while applying discrete cosine transform (DCT) on image def perform_dct(image_path): # Load the image in grayscale img = cv2.imread(image_path, cv2.IMREAD_GRAYSCALE) ...
0 votes
0 answers
43 views

I have a huge amount of time series data, each representing some observations at a certain position. Thus of course there exists spatial correlation. I am trying to reorganize these lines of ...
0 votes
1 answer
179 views

if I put zeros at the end of an input sequence, and take fft, then take ifft of a greater length by appending zeros to the fft output, will the zeros of the input sequence reflect on the final ifft ...
1 vote
2 answers
109 views

For context: I'm trying to create a simple "level monitor" animation of audio data streaming from a microphone. I'm running this code on an iOS device and leaning heavily on the Accelerate ...
0 votes
0 answers
121 views

I have the below code and i get this error: File "C:\Users\omar\AppData\Local\Programs\Python\Python312\Lib\site-packages\jpeglib\functional.py", line 71, in read_dct return DCTJPEG( ^^^^^^^...
0 votes
1 answer
71 views

If I do DCT on an input value with pixel range [-128, 127], next how do I min-max scale this DCT transformed output? What should be my maximum and minimum DCT values that I can use to find the [0,1] ...
0 votes
1 answer
123 views

I have been given the task of rewriting some python code into a different language. A piece of that codes makes use of the standard 2-D DCT in scipy. I honestly don't have much clue about different ...
1 vote
1 answer
110 views

I am passing an array of 64 bits/elements to DCT function. But when I send the dctResult (obtained from DCT) to IDCT for inverse, I don't get the same values what I passed to DCT function. Below is ...
user avatar
0 votes
0 answers
58 views

What's the proportional relation between idct2 in MATLAB and FFTW_REDFT01? The answer in 'FFTW fftwf_plan_r2r_2d() with FFTW_REDFT01 equivalent' The following relation seems incorrect: resFFT /= (4 * ...
sdfa's user avatar
  • 1
-1 votes
1 answer
176 views

I have 3D real data, say, 64 * 64 * 64 real data points, and I want to do a 3D Fourier transform. Specifically, I want to do DFT (exponential transform, containing both sine and cosine terms) on two ...
Dennis's user avatar
  • 109
1 vote
1 answer
500 views

I’m looking to find a library and/or guide that would allow me to encode an image with DCT (discrete cosine transform ) so I can place it in a basic 1.0 pdf file. (FYI I’m using https://git.catseye.tc/...
nodecentral's user avatar
1 vote
0 answers
149 views

I'm a newbie learning FFT, I'm writing fft using swift vDSP to process audio from the microphone. My goal is to fine-tune the calculation to 0.1 Hz on the audio whose frequency changes every 0.1 ...
pekkabear's user avatar
2 votes
1 answer
154 views

I wonder how I could compute the following in Julia import scipy.fftpack scipy.fftpack.dct([1,2,3], axis=0) array([ 1.20000000e+01, -3.46410162e+00, -4.44089210e-16]) I have seen that FFTW.jl seems ...
1 vote
0 answers
90 views

I want to make a JPEG where for each of the 3 components (Y, Cb, Cr), you encode a 8x8 block one after another, and then move to the next 8x8 block in the image. E.X. A 16x16 image exists. write ...

15 30 50 per page
1
2 3 4 5
...
19

AltStyle によって変換されたページ (->オリジナル) /