def f(i, j, k, affine):
	"""
	Returns affine transformed coordinates (i,j,k) -> (x,y,z) Use to set correct coordinates and size for the mesh.
	
	Parameters
	----------
	i,j,k : int
		Integer coordinates of points in 3D space to be transformed.
	affine : array
		4x4 matrix containing affine transformation information of Nifti-Image.
	
	Returns
	-------
	x,y,z : int
		Affine transformed coordinates of input points.
	
	"""

	M = affine[:3, :3]
	abc = affine[:3, 3]
	return M.dot([i, j, k]) + abc