Skip to content

How to transform canvas getImageData() to single channel matrix? #88

@nwheatle

Description

@nwheatle

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions