logoalt Hacker News

flinkerflitzertoday at 7:06 PM1 replyview on HN

Sure!

The brush stroke accept/reject algorithm looks at the axis-aligned bounding box that surrounds each candidate brush stroke's affected area. It calculates the cumulative pixel color similarity between the input image and the painting over this area, before and after the candidate brush stroke.

Pixel color similarity is the sum of the absolute difference of each RGB color channel divided by 3.

The candidate brush stroke is accepted and kept by the painting if and only if it represents an improvement in similarity over its affected area AABB.


Replies

verdvermtoday at 9:31 PM

Thanks for more details. I've been getting into street photography lately and wanted to make renders of the images using old-school image processing techniques. There are a ton of them out there that could mix-n-match for some really cool effects.