public int getResult()
	{

		int i, j;
		double var_or = 0, var_ta = 0, var, result;
		for ( i = 0 ; i < orig.getWidth() ; i ++ )
		{
			for ( j = 0 ; j < orig.getHeight() ; j ++ )
			{
				var_or += Math.pow(((double)orig.getlum(i, j) - avg_or),2.0);
				
			}
		}
		
		for ( i = 0 ; i < target.getWidth() ; i ++ )
		{
			for ( j = 0 ; j < target.getHeight() ; j ++ )
			{
				var_ta += Math.pow(((double)target.getlum(i, j) - avg_ta),2.0);
				
			}
		}
		
		var = Math.sqrt(var_or * var_ta);
		
		result = getCov() / var;
		if(result < 0 )
		{
			result *= -1;
		}

		return (int)(result * 100);

	}