public int findNumberOfPixelsDiffering(int a,int b){

        int result = a^b;
        int _variations = 0;
        while (result != 0)
        {
            if(result % 2 == 1){
                _variations++;
            }
            result = result/2;
        }
        return _variations;
    }