1. An image processing system comprising: a hardware block configured to receive a first image and generate a first feature value and a first segmented image from the first image; a central processing unit (CPU) configured to generate a first transformation matrix based on the first segmented image and the first feature value, wherein the hardware block is further configured to generate a first transformed image by applying the first transformation matrix to the first image.