This interface provide functionalities of blob filtering.
Blob filter is used to filter blobs of interest according to their features. There's two common ways to use the blob filter:
- Configure a blob filter, then attach it to the blob analysis tool via ILBlobAnalysis::AddBlobFilter().
- Manually filter the blob results to build a new filtered collection via ILBlobFilter::FilterResults().
You can have multiple blob filters in a blob analysis tool, for each blob candidate, it's reported as a result if one of the filters' criteria is satisfied.
You can define multiple filtering features in a blob filter, for each blob candidate, it's reported as a result if all filtering features' limitations are satisfied.
To use this interface, you should create a LBlobFilter object.
Example Code
C++
ILBlobFilterPtr blob_filter = LBlobFilter::Create();
blob_filter->SetFilterFeature(LPVBlobFeatures::LPVBlobArea, 1000, -1);
blobResult2 = blob_filter->FilterResults(blobResult);
C#
LBlobFilter blob_filter = new LBlobFilter();
blobResult2 = blob_filter.FilterResults(blobResult);
LPVBlobFeatures
This enumeration represents the numeric features of the blob.
Definition: LPVBlob.idl:89
COM
ILBlobFilterPtr blob_filter = LBlobFilter::Create();
blob_filter->SetFilterFeature(LPVBlobFeatures::LPVBlobArea, 1000, -1);
blobResult2 = blob_filter->FilterResults(blobResult);