摘要:        
算是保存个副本吧:#include "cv.h"#include "highgui.h"#include <fstream>#include <iostream>using namespace std;int main(){	IplImage* img = cvLoadImage("F:\\易康小分类图1_seg.bmp", 1);	/* always check */	assert(img);	int nWidth = img->width;	int nHeight = img->height;	    阅读全文
posted @ 2012-03-21 10:28
hailong
阅读(314)
评论(0)
推荐(0)
        
            
        
        
摘要:        
每次close之后,想继续读入而不擦除原来的内容,可以这样写:ofstream area_file ("area.txt",ios::app|ios::out|ios::in);而每次均要擦除,这样写:ofstream area_file ("area.txt",ios::trunc|ios::out|ios::in);ofstream area_file ("area.txt",ios::ate|ios::out|ios::in);经过测试,效果是这样的!    阅读全文
posted @ 2012-03-21 08:50
hailong
阅读(212)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号