public static int[] translate(int[] pixs, int tx, int ty, int w, int h, int ow, int oh) {
		int u, v;
		int[] pix = new int[ow * oh];
		for (int j = 0; j < h; j++) {
			for (int i = 0; i < w; i++) {
				u = i + tx;
				v = j + ty;
				pix[v * ow + u] = pixs[j * w + i];
			}
		}
		return pix;
	}