cvBlobslib 元件
目地:可計算物件面積跟長跟寬之類...........
比較詳細請看 Lubosz Sarnecki的Github
https://github.com/lubosz/cvblobslib
1.
常應用於AOI錫球之類................
for (int i = 0; i < blobs.GetNumBlobs(); i++ )
{
currentBlob = blobs.GetBlob(i);
//dataGridView1->Rows->Insert(0,"1","2","3");
//p1.x =(int)currentBlob->MinX();
//p1.y =(int)currentBlob->MinY();
//p2.x =(int)currentBlob->MaxX();
//p2.y =(int)currentBlob->MaxY();
dataGridView1->Rows->Insert(0,currentBlob->GetID(),currentBlob->Area(),currentBlob->Perimeter());
}
沒有留言:
張貼留言