Affine transformation using keypoints and descriptors from two pictures

Hi everybody, I would like to register two similar pictures with keypoints and descriptors retrieve from detectAndCompute method, but would like to apply affine transformation (euclidean 2D motion) and not homography (3D motion). Is it possible ?
Thanks for you help

there’s estimateAffine2D, estimateAffinePartial2D, …

Hi Christoph, thanks again, your answer was enough and clear. My mistake.