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 to transform canvas getImageData() to single channel matrix? #88

Open
nwheatle opened this issue Sep 3, 2019 · 0 comments
Open

Comments

@nwheatle
Copy link

nwheatle commented Sep 3, 2019

Hi I'm looking to use the image processing features of your library.
The sobel_derivatives documentation says it uses "single channel only".
jsfeat.imgproc.sobel_derivatives(source:matrix_t, dest:matrix_t);
I don't know what is meant by single channel image.

How can I convert grayscaled getImageData() output ( [r0, g0, b0, a0, r1, g1, b0...] ) to a single channel matrix_t input for jsfeat.imgproc.sobel_derivatives?

Thank you for your help,
Nicole

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