// TODO: Add your command handler code here
CImageDoc*pDoc=GetDocument();
pDoc->save_curregionID();
std::ifstream ID_file("E:\\all_ID.txt",ios::in );
std::ifstream label_file("E:\\all_label.txt",ios::in );
if (!ID_file.is_open())
AfxMessageBox("Unable to open ID_file") ;
if (!label_file.is_open())
AfxMessageBox("Unable to open label_file") ;
int m,n;
while(ID_file)
{
ID_file >> m ;
label_file >> n;
pDoc->classify_region(m,n);
}