public void applyKernelTemp(int[][] kernel, double dividend) {

		for (int i = 0; i < pixels.length; i++) {
			for (int j = 0; j < pixels[i].length; j++) {

				int average = 0;

				for (int k = -kernel.length / 2; k <= kernel.length / 2; k++) {
					for (int l = -kernel[0].length / 2; l <= kernel[0].length / 2; l++) {

						if (i + k < 0 || i + k >= pixels.length)
							continue;
						if (j + l < 0 || j + l >= pixels[i].length)
							continue;

						average += pixels[i + k][j + l]
								* kernel[k + kernel.length / 2][l
										+ kernel[0].length / 2];
					}
				}

				temp[i][j] = (int) Math.round(average / dividend);

				if (temp[i][j] < 0)
					temp[i][j] = 0;
				else if (temp[i][j] > 255)
					temp[i][j] = 255;
			}
		}
	}