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

Test-OpenCLIPP produces unreadable image #21

Open
ydirey opened this issue Feb 5, 2018 · 1 comment
Open

Test-OpenCLIPP produces unreadable image #21

ydirey opened this issue Feb 5, 2018 · 1 comment

Comments

@ydirey
Copy link

ydirey commented Feb 5, 2018

Hi,

after some adjustment in make (include path to CL/cl.h for compiler) and source files (adjust absolute path to cl-files) I've successfully built the Test-OpenCLIPP sub-project.
I have also loaded the well-known lena.png image for test.
After running the code the code my GPU device is recognized and success is reported:
image
However the produced Result.png file includes an image which nowhere near resembles the input image.
I tried manipulating the filters and parameters with no success.
image

I also tried to just pass the SourceData to Return.png.
The result was no better.
Do you have an idea what could cause the problems?

Thanks!

Kind regards,
Yaroslav

@ydirey
Copy link
Author

ydirey commented Feb 5, 2018

Modified line
lodepng_encode24_file("result.png", (unsigned char*) SourceData, ImageInfo.Width, ImageInfo.Height);
produces file "result.png" identical to the initial image.
The problem seems to come up when the image is written on the GPU device.

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

1 participant