Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gerfautge/reed-solomon-image
this project aims to implement Reed-Solomon algorithm for image transfer errors
https://github.com/gerfautge/reed-solomon-image
Last synced: about 1 month ago
JSON representation
this project aims to implement Reed-Solomon algorithm for image transfer errors
- Host: GitHub
- URL: https://github.com/gerfautge/reed-solomon-image
- Owner: GerfautGE
- Created: 2022-11-06T17:34:15.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-22T18:09:01.000Z (almost 2 years ago)
- Last Synced: 2023-04-03T19:29:41.865Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 45.9 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Reed-Solomon-image
This is a simple program to encode and decode images using Reed-Solomon codes.
It is written in Python 3.x and relies on the [Pyfinite Module](https://github.com/emin63/pyfinite) from [@Emin63](https://github.com/emin63/pyfinite).
---
## Usage
### Encoding
```Python
from src.Coding.Encode import encode
from src.Math.FiniteField import CARDINAL, MESSAGE_SIZE
from random import randrange()message = [randrange(0, CARDINAL) for _ in range(MESSAGE_SIZE)]
encoded = encode(message)
```### Error generation
```Python
from src.Error import errorerror(encoded) # errors are generated in place
```### Decoding
#### Using Polynomial Algorithm
```Python
from src.Coding.DecodePolynomial import decode_polynomialdecoded = decode_polynomial(encoded)
```#### Using Syndrome Algorithm
```Python
from src.Coding.DecodeSyndrome import decode_syndromedecoded = decode_syndrome(encoded)
```