![]() |
KSquare Utilities
|
Used by the Raster object to identify a distinct blob; where it is in the raster and its unique id. More...
#include <Blob.h>
Public Member Functions | |
| Blob (kkint32 _id) | |
| ~Blob () | |
| Point | BotRight () const |
| Returns a point to the Bottom Right corner of the blob. More... | |
| kkint32 | ColLeft () |
| Left most column in the raster object that this blob occupies. More... | |
| kkint32 | ColRight () |
| Right most column in the raster object that this blob occupies. More... | |
| kkint32 | Height () |
| Number of rows that the blob occupies. More... | |
| kkint32 | Id () |
| The unique ID assigned to this blob. More... | |
| void | InitialzieAsNew (kkint32 _id) |
| kkint32 | PixelCount () |
| Number of pixels that are part of this blob. More... | |
| kkint32 | RowBot () |
| Bottom row in the raster object that this blob occupies. More... | |
| kkint32 | RowTop () |
| Top row in the raster object that this blob occupies. More... | |
| Point | TopLeft () const |
| Returns a point to the Top Left corner of the blob. More... | |
| kkint32 | Width () |
| Number of columns that this blob occupies. More... | |
Public Attributes | |
| kkint32 | colLeft |
| kkint32 | colRight |
| kkint32 | id |
| kkint32 | pixelCount |
| kkint32 | rowBot |
| kkint32 | rowTop |
Friends | |
| class | BlobList |
Used by the Raster object to identify a distinct blob; where it is in the raster and its unique id.
It is used by the Raster object while performing a connected component analysis. For each distinct blob located an instance of this class will be created. Its location in the raster and its unique blob ID will be stored here. These blobs will later be able to be extracted from the image by referencing this blob.
The "id" field in this blob will be stored in a array in the associated Raster object. This allows the Raster object to identify the specific pixels that belong to this Blob. Using the fields "colLeft" "colRight", "rowBot", and "rowTop" the Raster object will be able to quickly locate the associated blob.
| Blob::Blob | ( | kkint32 | _id | ) |
|
inline |
Returns a point to the Bottom Right corner of the blob.
Definition at line 59 of file Blob.h.
References colRight, KKB::Point::Point(), and rowBot.
|
inline |
|
inline |
|
inline |
Number of rows that the blob occupies.
Definition at line 49 of file Blob.h.
Referenced by KKB::Raster::ExtractABlobTightly(), and KKB::BlobList::LocateMostComplete().
|
inline |
The unique ID assigned to this blob.
Definition at line 44 of file Blob.h.
References id.
Referenced by KKB::Raster::ConnectedComponent(), KKB::Raster::ConnectedComponent8Conected(), KKB::Raster::CreateColorWithBlobsLabeldByColor(), KKB::Raster::CreateFromOrginalImageWithSpecifidBlobsOnly(), KKB::Raster::ExtractBlobs(), KKB::Raster::FillBlob(), KKB::BlobList::MergeBlobIds(), KKB::BlobList::MergeIntoSingleBlob(), and KKB::Raster::ReduceToMostCompleteBlob().
| void Blob::InitialzieAsNew | ( | kkint32 | _id | ) |
|
inline |
Number of pixels that are part of this blob.
Definition at line 56 of file Blob.h.
References pixelCount.
Referenced by KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector(), and KKB::BlobList::MergeIntoSingleBlob().
|
inline |
|
inline |
|
inline |
Returns a point to the Top Left corner of the blob.
Definition at line 58 of file Blob.h.
References colLeft, KKB::Point::Point(), and rowTop.
|
inline |
Number of columns that this blob occupies.
Definition at line 54 of file Blob.h.
Referenced by KKB::Raster::ExtractABlobTightly(), and KKB::BlobList::LocateMostComplete().
| kkint32 KKB::Blob::colLeft |
Definition at line 61 of file Blob.h.
Referenced by Blob(), ColLeft(), KKB::Raster::ExtractABlob(), KKB::Raster::ExtractABlobTightly(), InitialzieAsNew(), KKB::BlobList::MergeBlobIds(), KKB::BlobList::MergeIntoSingleBlob(), KKB::BlobList::NewBlob(), and TopLeft().
| kkint32 KKB::Blob::colRight |
Definition at line 62 of file Blob.h.
Referenced by Blob(), BotRight(), ColRight(), KKB::Raster::ExtractABlob(), KKB::Raster::ExtractABlobTightly(), InitialzieAsNew(), KKB::BlobList::MergeBlobIds(), KKB::BlobList::MergeIntoSingleBlob(), and KKB::BlobList::NewBlob().
| kkint32 KKB::Blob::id |
Definition at line 63 of file Blob.h.
Referenced by Blob(), KKB::Raster::ConnectedComponent8Conected(), KKB::Raster::ExtractABlob(), KKB::Raster::ExtractABlobTightly(), KKB::Raster::ExtractBlobs(), Id(), and InitialzieAsNew().
| kkint32 KKB::Blob::pixelCount |
Definition at line 64 of file Blob.h.
Referenced by Blob(), KKB::Raster::ConnectedComponent8Conected(), KKB::Raster::ExtractBlobs(), InitialzieAsNew(), KKB::BlobList::LocateLargestBlob(), KKB::BlobList::MergeBlobIds(), KKB::BlobList::MergeIntoSingleBlob(), and PixelCount().
| kkint32 KKB::Blob::rowBot |
Definition at line 65 of file Blob.h.
Referenced by Blob(), BotRight(), KKB::Raster::ExtractABlob(), KKB::Raster::ExtractABlobTightly(), InitialzieAsNew(), KKB::BlobList::MergeBlobIds(), KKB::BlobList::MergeIntoSingleBlob(), KKB::BlobList::NewBlob(), and RowBot().
| kkint32 KKB::Blob::rowTop |
Definition at line 66 of file Blob.h.
Referenced by Blob(), KKB::Raster::ExtractABlob(), KKB::Raster::ExtractABlobTightly(), InitialzieAsNew(), KKB::BlobList::MergeBlobIds(), KKB::BlobList::MergeIntoSingleBlob(), KKB::BlobList::NewBlob(), RowTop(), and TopLeft().