Text: Matlab
With code using Matlab
1. Load or design the image.
2. Create MATLAB functions to:
2.1. Convert the image (matrix) to a vector.
2.2. Encode the vector with a repetition code of a defined length.
2.3. Decode the encoded vector with a repetition code of a defined length.
2.4. Convert the vector back to the image.
3. Add noise to the image. The noise density must reach 3%, 5%, 10%, 25%, and 50% of the image size.
4. Investigate the effectiveness of the repetition code with repetitions of 1, 3, 5, and 7.
5. Present the dependence of the quantity of incorrectly restored data versus the redundancy of the code.