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

Somewhere of the output image get blur #823

Open
RockyBruce opened this issue Aug 17, 2023 · 0 comments
Open

Somewhere of the output image get blur #823

RockyBruce opened this issue Aug 17, 2023 · 0 comments

Comments

@RockyBruce
Copy link

What is wrong?

I used a flat Int32Array as the constant of a kernel function, which length is 330 * 360 *240.
Based on this constant, I use this kernel function to interpolate and generate an Image with a size of 330 * 360.
However, the image gets somewhere blurry (like waves). It seems array indexing gets left or right which is similar to issue #314, but I still can not find a way to solve it.

Where does it happen?

How do we replicate the issue?

  • Creating a flat Int32Array as the constant for the kernel, which length is 330 * 360 * 240.
  • setOuput([330, 360])
  • setGraphical(true)
  • Use the kernel function to interpolate and create pixel data for the image.
  • Get the kernel canvas and draw it on a canvas.

How important is this (1-5)?

5, It seems like a memory allocation issue, but I have no idea how to handle it.

Expected behavior (i.e. solution)

The image created is perfect, which has no wave in this image.

Other Comments

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