两者图像格式均为:BGR 但是CxImagebit分布为(假定左上坐标0,0): h...... h-1.... ....... 0...... OpenCV分布为(假定左上坐标0,0): 0..... ...... h-1... h..... 转换: //image.IncreaseBpp(24); int ws = image2.GetEffWidth(); for(int y=0;y<image2.GetHeight();y++){//cximageimage data convert to opencv data memcpy(&p1[(h-y-1)*ws],&p2[y*ws],ws…
2013-03-15 13:18