Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can decompressed image have color like the input one #2

Open
tuanhm11299 opened this issue Jun 25, 2019 · 3 comments
Open

how can decompressed image have color like the input one #2

tuanhm11299 opened this issue Jun 25, 2019 · 3 comments

Comments

@tuanhm11299
Copy link

I test your code and when I imshow the decompressed image, it has only black and white :v so I don't know how to restore color for decompressed image in matlab with your code, can you give me idea for this problem ?
Also, I want to calculate MSE, SNR and PSNR but it can't caculate in some picture, and your code run didn't well with .jpg, can you show me your idea for this problem too, please ?
Thank you.

@ahmedmayman
Copy link
Owner

@tuanhm11299 Unfortunately this implementation is for binarized images, so what you found was expected and I can't help you with the colors.

Also I only tested using png images as .jpg are already compressed images and I needed to test with the original image data.

Do you have any other issues ?

@ahmedmayman
Copy link
Owner

@tuanhm11299 I updated the description in 3747bf4

@tuanhm11299
Copy link
Author

So do you have any ideas with colored images ? I'm doing a project for lzw algorithm with colored images, so do you have any ideas for processing with colored image, and do we need to do step by step like this one ?
https://hackernoon.com/why-do-we-need-jpeg-compression-and-how-its-technically-working-52a3a9ced55d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants