Implement the following parts of the transform coding/decoding.
- Convert the image to gray scale (monochromatic) image using an in-built function
- Division of image to blocks (sub images)
- Transform of blocks
- Truncation or quantization (can try different strategies).
- Inverse transform and reconstruction of image from the retained coefficents.
- Use Discrete Fourier Transform and Discrete Cosine Transform and compare and show the error enountered for the same number of coefficients retained for each.