Use the Ptr typedef from the class in CorrespondenceEstimation...::clone.