in InverseDistTransform fuc, out is CV_32FC1, but using out.at to get and assign data;
also,in CalibrationTrack,I think GenGridIsometry3f should be initialized in for loop(with iter),otherwise, the iter may no sense, please check!
Thanks for your code