inspirit / jsfeat

JavaScript Computer Vision library.
MIT License
2.74k stars 374 forks source link

Customising the background image colour of the canny image #56

Closed w9914420 closed 8 years ago

w9914420 commented 8 years ago

Hello

i was wondering if it is at all possible to customise the background colour of the canny demo from black to a colour of ones choosing.

https://inspirit.github.io/jsfeat/sample_canny_edge.html

ideally I would want to have a transparent background if possible and maybe the option to change the colours of the line edges to another colour apart from white.

I would appreciate any advice/help that you can give.

inspirit commented 8 years ago

well this has nothing to do with jsfeat. it gives you the black and white pixels so that you can see where is the gradient goes. how do u render it to screen is up to you. so please refer to JavaScript image operations to solve it.