33 #include "../BlobDetectorBFS.hh"
34 #include "Base/Image/ImageIO.hh"
38 int main(
int argc,
char** argv)
41 std::cout<<
"usage: "<<argv[0]<<
" segmentedImg outputFile"<<std::endl;
49 std::vector<BIAS::BIASBlob> blobs;
52 for (
unsigned int i=0;i<blobs.size();i++) {
53 std::cout<<
"blob "<<i<<
": weight "<<blobs[i].weight<<
54 " UL:"<<blobs[i].UL<<
" br:"<<blobs[i].LR<<
" centerofmass: "
55 <<blobs[i].centerofmass<<std::endl;
int Detect(BIAS::Image< StorageType > &image, std::vector< BIAS::BIASBlob > &blobs)
Detect and return blobs in an image.
static int Save(const std::string &filename, const ImageBase &img, const enum TFileFormat FileFormat=FF_auto, const bool sync=BIAS_DEFAULT_SYNC, const int c_jpeg_quality=BIAS_DEFAULT_IMAGE_QUALITY, const bool forceNewID=BIAS_DEFAULT_FORCENEWID, const bool &writeMetaData=true)
Export image as file using extrnal libs.
static int Load(const std::string &FileName, ImageBase &img)
first tries a call to Read MIP image and if that fails, tries to Import Image with all other availabl...
int DrawInImage(BIAS::Image< StorageType > &image)
draws the detected blobs in image