Basic Image AlgorithmS Library
2.8.0
|
Detects multiple blobs in an image, image has to be black except blocks to detect. More...
#include <FeatureDetector/BlobDetectorBFS.hh>
Public Member Functions | |
BlobDetectorBFS () | |
standard constructor More... | |
int | Detect (BIAS::Image< StorageType > &image, std::vector< BIAS::BIASBlob > &blobs) |
Detect and return blobs in an image. More... | |
int | DrawInImage (BIAS::Image< StorageType > &image) |
draws the detected blobs in image More... | |
int | GetLargestBoundingBox (BIAS::BIASBlob &corners) |
return largest blob (bounding box) More... | |
int | GetMaxNumBlobs () |
return maximum number of blobs More... | |
void | SetEraseBelowMinSize (bool erase) |
setting this true will clear pixels (0) in clusters of weight < minWeight More... | |
void | SetGaussSigma (double sigma) |
set sigma for gaussian blurr before blobdetection More... | |
void | SetMaxNumBlobs (const int maxnum) |
void | SetMaxSize (unsigned maxSize) |
void | SetMinSize (unsigned minSize) |
set minimum size of blobs More... | |
void | SetROI (const BIAS::Vector2< unsigned > &UL, const BIAS::Vector2< unsigned > &LR) |
set a ROI (region of interest) in the image to detect More... | |
void | SetThreshold (StorageType threshold) |
set threshold for blobdetection More... | |
virtual | ~BlobDetectorBFS () |
standard destructor More... | |
Protected Member Functions | |
int | ClusterDescent_ (const unsigned int x, const unsigned int y, const unsigned int w, const unsigned int h, StorageType **idaIn, unsigned char **idaMark, BIAS::BIASBlob &corners, StorageType **idaOrig) |
protected blobDetection function More... | |
Protected Attributes | |
std::vector< BIAS::BIASBlob > | corners_ |
int | dMaxNumBlobs_ |
maximum number of corners to return More... | |
bool | eraseBelowMinWeight_ |
double | gaussSigma_ |
BIAS::Image< StorageType > | imageSmooth_ |
BIAS::Vector2< unsigned > | LR_ |
BIAS::Image< unsigned char > | marker_ |
BIAS::Image< unsigned char > | markerBackup_ |
BIAS::BIASBlob | maxCorners_ |
unsigned | maxWeight_ |
unsigned | minWeight_ |
BIAS::Gauss< StorageType, StorageType > | smoothFilter_ |
StorageType | threshold_ |
BIAS::Vector2< unsigned > | UL_ |
Detects multiple blobs in an image, image has to be black except blocks to detect.
Definition at line 23 of file BlobDetectorBFS.hh.
BlobDetectorBFS::BlobDetectorBFS | ( | ) |
standard constructor
Definition at line 13 of file BlobDetectorBFS.cpp.
|
virtual |
standard destructor
Definition at line 27 of file BlobDetectorBFS.cpp.
|
protected |
protected blobDetection function
[in] | x | start x pixel coordinate |
[in] | y | start y pixel coordinate |
[in] | w | width of search space |
[in] | h | height of search space |
[in] | idaIn | input image imageDataArray |
[out] | idaMark | mark image imageDataArray (handled pixels are marked here) |
[out] | corners | detected corners |
Definition at line 145 of file BlobDetectorBFS.cpp.
References BIAS::BIASBlob::centerofmass, BIAS::BIASBlob::LR, BIAS::BIASBlob::UL, and BIAS::BIASBlob::weight.
|
virtual |
Detect and return blobs in an image.
[in] | image | the image to detect blobs in |
[out] | corners | vector where detected blobs are stored in |
Implements BIAS::BlobDetectorBase< StorageType >.
Definition at line 39 of file BlobDetectorBFS.cpp.
References BIAS::ImageBase::CopyIn_NoInit(), BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageDataArray(), BIAS::ImageBase::GetWidth(), and BIAS::BIASBlob::weight.
int BlobDetectorBFS::DrawInImage | ( | BIAS::Image< StorageType > & | image | ) |
draws the detected blobs in image
[in] | image | the blobs are drawn in here |
Definition at line 321 of file BlobDetectorBFS.cpp.
References BIAS::BIASBlob::centerofmass, BIAS::ImageDraw< StorageType >::CircleCenterFilled(), BIAS::ImageBase::GetChannelCount(), BIAS::BIASBlob::LR, BIAS::ImageDraw< StorageType >::RectangleCorners(), BIAS::ImageConvert::ToRGB(), and BIAS::BIASBlob::UL.
|
inline |
return largest blob (bounding box)
corners | largest detected blob |
Definition at line 62 of file BlobDetectorBFS.hh.
|
inlineinherited |
return maximum number of blobs
Definition at line 82 of file BlobDetectorBase.hh.
|
inline |
setting this true will clear pixels (0) in clusters of weight < minWeight
erase | true to clean up |
Definition at line 108 of file BlobDetectorBFS.hh.
|
inline |
set sigma for gaussian blurr before blobdetection
sigma | the gauss sigma |
Definition at line 89 of file BlobDetectorBFS.hh.
|
inlineinherited |
Definition at line 74 of file BlobDetectorBase.hh.
|
inline |
Definition at line 101 of file BlobDetectorBFS.hh.
|
inline |
set minimum size of blobs
minsize | minimum size in pixel |
Definition at line 97 of file BlobDetectorBFS.hh.
|
inline |
set a ROI (region of interest) in the image to detect
Definition at line 52 of file BlobDetectorBFS.hh.
|
inline |
set threshold for blobdetection
threshold | difference between background (black) and blob content |
Definition at line 81 of file BlobDetectorBFS.hh.
|
protected |
Definition at line 133 of file BlobDetectorBFS.hh.
|
protectedinherited |
maximum number of corners to return
Definition at line 89 of file BlobDetectorBase.hh.
|
protected |
Definition at line 139 of file BlobDetectorBFS.hh.
|
protected |
Definition at line 135 of file BlobDetectorBFS.hh.
|
protected |
Definition at line 137 of file BlobDetectorBFS.hh.
|
protected |
Definition at line 131 of file BlobDetectorBFS.hh.
|
protected |
Definition at line 130 of file BlobDetectorBFS.hh.
|
protected |
Definition at line 130 of file BlobDetectorBFS.hh.
|
protected |
Definition at line 132 of file BlobDetectorBFS.hh.
|
protected |
Definition at line 138 of file BlobDetectorBFS.hh.
|
protected |
Definition at line 138 of file BlobDetectorBFS.hh.
|
protected |
Definition at line 136 of file BlobDetectorBFS.hh.
|
protected |
Definition at line 134 of file BlobDetectorBFS.hh.
|
protected |
Definition at line 131 of file BlobDetectorBFS.hh.