private void 비디오toBMPToolStripMenuItem_Click(object sender, EventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.Multiselect = true;
if(ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
IplImage img;
foreach(string filename in ofd.FileNames)
{
//open video files
CvCapture ccap = CvCapture.FromFile(filename);
//loop
{
img = ccap.QueryFrame();
if(img == null)
{
break;
}
Cv.ShowImage(filename, img);
Cv.WaitKey(0);
Cv.ReleaseImage(img);
}
////memory release
Cv.ReleaseCapture(ccap);
}
}
}
'컴퓨터 과학 & 영상처리 관련 > 영상처리' 카테고리의 다른 글
Head up display(HUD) 기술 기사 (0) | 2014.09.01 |
---|---|
영상 빅데이터 분석기술 동향을 읽고 동영상들 (0) | 2014.09.01 |
min max scaling (0) | 2014.07.30 |
Adaboost 알고리즘 (0) | 2014.07.16 |
[동영상] 현기증의 원인을 시선 추적을 통해서 알아보는 기계 (0) | 2014.06.22 |