Hello, for an assignment I needed to create an image of 512x512 pixels black with in its center a square of white pixel of 100pixels, then I had to make its transformation into discrete cosine and now I must thanks to the function idct2, reconstruct the initial image by retaining only :
- The 80% largest coefficients of the DCT
- The 50% largest coefficients of the DCT
- The 20% largest coefficients of the DCT
But I don't know how to set this parameter, here is my code currently.
J = dct2(image);