javascript - Photo filter - pixelate (mozaik), rotate 45deg and take color of these squares? -


need algorithm :

original: enter image description here

after effect: enter image description here

and after effect want take color of every square ( save x,y,rgb);

first idea resize image. if need 32x32 image resize normal image 64x64 , take every second pixel. , every second row move x+1.

any better ideas? me important colors info. dont' need image, colors.

edit:

i found code : http://www.exorithm.com/algorithm/view/pixelate .

so think. first rotate image 45deg, procces code, save color of each square, procces data colors matrix transform. possible rotate pixels data 45 deg?

p.s. i'm doing in javascript, jq etc.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -