2D and 3D kernel with homogeneous representation