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

Tests for importing PNG images #32

Open
axmat opened this issue Apr 3, 2022 · 0 comments
Open

Tests for importing PNG images #32

axmat opened this issue Apr 3, 2022 · 0 comments
Labels
good first issue Good for newcomers

Comments

@axmat
Copy link
Contributor

axmat commented Apr 3, 2022

Is your feature request related to a problem? Please describe.
The MemRef container has the ability to import images using libPNG or OpenCV. Currently there are no tests for importing RGB images.

Describe the solution you'd like
We should:

  1. Generate a PNG image.
  2. Read the image using OpenCV and libPNG and create a MemRef container.
  3. Compare the memref and the generated image pixel by pixel.
  4. Add tests for importing images in UnitTests/TestContainer.cpp.
    The following script for generating random PNG images using PIL can be used as a starting point https://github.com/axmat/mlir-inference/blob/master/scripts/gen-images.py
@axmat axmat added the good first issue Good for newcomers label Apr 3, 2022
@axmat axmat changed the title Image IO test Tests for importing PNG images Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant