add undistort and patterndot