Example for usage of class BlobDetectorBFS
- Author
- ischiller
#include "../BlobDetectorBFS.hh"
#include "Base/Image/ImageIO.hh"
using namespace std;
int main(int argc, char** argv)
{
if (argc<=2) {
std::cout<<"usage: "<<argv[0]<<" segmentedImg outputFile"<<std::endl;
exit(1);
}
std::vector<BIAS::BIASBlob> blobs;
for (unsigned int i=0;i<blobs.size();i++) {
std::cout<<"blob "<<i<<": weight "<<blobs[i].weight<<
" UL:"<<blobs[i].UL<<" br:"<<blobs[i].LR<<" centerofmass: "
<<blobs[i].centerofmass<<std::endl;
}
}