Compare Image
A small library to compare ImageData objects.
Install
npm install compare-image-data
API
The library exposes 2 functions at the moment.
isSamea: ImageData, b: ImageData: boolean
isSubsetimageData: ImageData, subset: ImageData: boolean
Example
;; compareImage.isSameimageDataA, imageDataB; // true ;imageDataA.fill255;imageDataC.fill255; compareImage.isSubsetimageDataA, imageDataC; // true
Look at the tests for more examples.