![]() |
KSquare Utilities
|
Maintains a list of blobs. More...
#include <Blob.h>
Inheritance diagram for KKB::BlobList:Public Member Functions | |
| BlobList (bool _owner) | |
| ~BlobList () | |
| void | DeleteEntry (BlobPtr b) |
| BlobPtr | LocateLargestBlob () |
| Will return Blob with largest pixel count. More... | |
| BlobPtr | LocateMostComplete () |
| Locates the blob that covers the greatest part of the raster; that is the one who has the largest (Height x Width) More... | |
| BlobPtr | LookUpByBlobId (kkint32 blobId) |
| Will return pointer to blob with 'blobId'; if not found will return NULL. More... | |
| void | MergeBlobIds (BlobPtr blob, kkint32 blobId, kkint32 **blobIds) |
| Used by the Connected component analysis to merge two blobs together. More... | |
| BlobPtr | MergeIntoSingleBlob (BlobPtr blob1, kkint32 blob2Id, kkint32 **blobIds) |
| BlobPtr | NewBlob (kkuint32 rowTop, kkuint32 colLeft) |
| void | PushOnBack (BlobPtr blob) |
| void | PushOnFront (BlobPtr blob) |
| BlobList::BlobList | ( | bool | _owner | ) |
Definition at line 64 of file Blob.cpp.
References BlobList().
Referenced by BlobList(), KKB::Raster::ConnectedComponent8Conected(), and KKB::Raster::ExtractBlobs().
| void KKB::BlobList::DeleteEntry | ( | BlobPtr | b | ) |
| BlobPtr BlobList::LocateLargestBlob | ( | ) |
Will return Blob with largest pixel count.
Definition at line 230 of file Blob.cpp.
References KKB::Blob::pixelCount.
Referenced by KKB::Raster::ConnectedComponent(), and KKB::Raster::ConnectedComponent8Conected().
| BlobPtr BlobList::LocateMostComplete | ( | ) |
Locates the blob that covers the greatest part of the raster; that is the one who has the largest (Height x Width)
Definition at line 253 of file Blob.cpp.
References KKB::Blob::Height(), and KKB::Blob::Width().
Referenced by KKB::Raster::ReduceToMostCompleteBlob().
Will return pointer to blob with 'blobId'; if not found will return NULL.
Definition at line 53 of file Blob.cpp.
Referenced by KKB::Raster::ConnectedComponent8Conected(), and KKB::Raster::ExtractBlobs().
Used by the Connected component analysis to merge two blobs together.
When the connected component discovers that two separate blobs are actually connected if will call this method to merge them together into a single blob.
Definition at line 122 of file Blob.cpp.
References KKB::Blob::colLeft, KKB::Blob::colRight, KKB::Blob::Id(), KKB::Blob::pixelCount, KKB::Blob::rowBot, and KKB::Blob::rowTop.
Referenced by KKB::Raster::ConnectedComponent8Conected().
Definition at line 163 of file Blob.cpp.
References KKB::Blob::colLeft, KKB::Blob::colRight, KKB::Blob::Id(), KKB::Blob::PixelCount(), KKB::Blob::pixelCount, KKB::Blob::rowBot, and KKB::Blob::rowTop.
Referenced by KKB::Raster::ExtractBlobs().
Definition at line 93 of file Blob.cpp.
References KKB::Blob::colLeft, KKB::Blob::colRight, PushOnBack(), KKB::Blob::rowBot, and KKB::Blob::rowTop.
Referenced by KKB::Raster::ConnectedComponent8Conected(), and KKB::Raster::ExtractBlobs().
| void BlobList::PushOnBack | ( | BlobPtr | blob | ) |