bmp图像插值算法近邻取样(效果最差,也最快),双线性插值(效果可以,速度一般),三次卷积插值(效果最好,速度最慢)
UNCHAR3 ** CContourJudge::ImgInterp(int k, float imgfactor, float mode,UNCHAR3 **resimg) { int i,j; int pos; //UNCHAR3 ** reimg; long x,y; long newimgw,newimgh; float xScale, yScale, fX, fY; M