Creating a Histogram of Oriented Gradients with p5.js

Hello, My goal is to digitally compose a oil painting effect.

The best attempt so far is done with Mathematica ( http://mathematica.stackexchange.com/a/39049 ). To calculate the strokes direction, they are using the "GradientOrientationFilter" which appears to be a Histogram of Oriented Gradients.

I wonder if I'm missing something already existing to achieve the same with p5.js, or if there are alternate solutions I didn't think about.

Tagged:
Sign In or Register to comment.