How to calculate and plot the histogram of DCT coefficients of an image?

 Risposta accettata

Calculate the coefficients with dct(). Call histogram() with them.

2 Commenti

can you explain it with an example?
Img = imread('cameraman.tif');
y = dct(double(Img));
histogram(y)

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by