An image similarity comparator in opencl