Quantizing dct2() coefficents in blockproc()
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi guys
I am trying to Quantize DCT coeficents. I have used blockproc() and dct2() and got the resultant image in say matrix ResBloc. Now my formula for quantization is round(a/stepSize)*stepSize where a is original coefficients and stepSize is 40. When i do this i get all zeros in my resultant image.This is how iam appying dct2() and blockproc() where I is my image
I=imread('myImage')
fun = @(block_struct) dct2(block_struct.data);
ResBloc= (blockproc(I,[8 8],fun));
now when i do QuantCoeff=round(ResBloc/40)*40; I get an all zero matrix Can any one give me a clue
Thanks
0 commentaires
Réponses (0)
Voir également
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!