canvas - JavaScript: Cut circular small images out of a big one and compare them using resemble.js -
i'd cut several circular parts (px) out of big image (a) , compare them pixel pixel same sized round portions (qx) of big image (b) using resemble.js (or similar, did not find else seems suitable) factor of similarity.
update: "factor of similarity" mean average of color distance (length of rgb vector between both pixels) of 1 pixel of px corresponding pixel of qx. if both images same images 100% identical, factor 1. if identical 1 inverted, 0% identical because each pixel has maximum possible color distance corresponding 1 of image compare. in case, factor 0.
the aim find px fits best qx @ orientation (5 degrees rotation steps), , replace qx px in final image @ best fitting angle.
imagine kind of photo mosaic. want reassamble given image circular smaller images in big image conveniance. first have cut them out, place them on photo in hex grid manner. challenge find fits best @ position , in orientation.
i c# backend developer, javascript knowledge pretty basic. if not neccessary cut out images @ , approach not experienced js frontend developer that, please so. answers , comments in advance!
Comments
Post a Comment