![]() |
KSquare Utilities
|
A class that is used by to represent a single image in memory. More...
#include <Raster.h>
Public Types | |
| typedef Raster const | RasterConst |
| typedef RasterConst * | RasterConstPtr |
| typedef Raster * | RasterPtr |
Public Member Functions | |
| Raster () | |
| Raster (const Raster &_raster) | |
| Copy Constructor. More... | |
| Raster (kkint32 _height, kkint32 _width) | |
| Constructs a blank image with given dimensions; all pixels will be initialized to 0. More... | |
| Raster (kkint32 _height, kkint32 _width, bool _color) | |
| Constructs a blank image with given dimensions. More... | |
| Raster (const BmpImage &_bmpImage) | |
| Constructs a Raster from a BMP image loaded from disk. More... | |
| Raster (const Raster &_raster, kkint32 _row, kkint32 _col, kkint32 _height, kkint32 _width) | |
| Constructs a new Raster using a subset of the specified Raster as its source. The dimensions of the resultant raster will be '_height', and '_width'. More... | |
| Raster (const Raster &_raster, MaskTypes _mask, kkint32 _row, kkint32 _col) | |
| Constructs a Raster that will be the same size as the specified '_mask' with the top left specified by '_row' and '_col'. More... | |
| Raster (const KKStr &fileName, bool &validFile) | |
| Constructs a Raster image from by reading an existing image File such as a BMP file. More... | |
| Raster (kkint32 _height, kkint32 _width, uchar *_Data, uchar **_Rows) | |
| Construct a raster object that will utilize a image already in memory. More... | |
| Raster (kkint32 _height, kkint32 _width, const uchar *_Data) | |
| Construct a Raster object using provided raw data. More... | |
| Raster (kkint32 _height, kkint32 _width, const uchar *_redChannel, const uchar *_greenChannel, const uchar *_blueChannel) | |
| Construct a Color Raster object using provided raw data,. More... | |
| virtual | ~Raster () |
| virtual RasterPtr | AllocateARasterInstance (kkint32 height, kkint32 width, bool color) const |
| virtual RasterPtr | AllocateARasterInstance (const Raster &r) const |
| virtual RasterPtr | AllocateARasterInstance (const Raster &_raster, kkint32 _row, kkint32 _col, kkint32 _height, kkint32 _width) const |
| bool | AreThereEdgePixels (kkint32 edgeWidth) |
| returns true if there are any foreground pixels within 'edgeWidth' pixels of the top, bottom, left, or right edges of the image. More... | |
| bool | BackgroundPixel (kkint32 row, kkint32 col) const |
| uchar | BackgroundPixelTH () const |
| void | BackgroundPixelTH (uchar _backgroundPixelTH) |
| uchar | BackgroundPixelValue () const |
| void | BackgroundPixelValue (uchar _backgroundPixelValue) |
| RasterPtr | BandPass (float lowerFreqBound, float upperFreqBound, bool retainBackground) |
| Returns a image that is the result of a BandPass using Fourier Transforms. More... | |
| RasterPtr | BinarizeByThreshold (uchar min, uchar max) const |
| kkint32 | BlobId (kkint32 row, kkint32 col) const |
| Return the ID of the blob that the specified pixel location belongs to. More... | |
| uchar ** | Blue () const |
| uchar * | BlueArea () const |
| kkint32 | CalcArea () |
| void | CalcAreaAndIntensityFeatures (kkint32 &area, float &weightedSize, kkuint32 intensityHistBuckets[8], kkint32 &areaWithWhiteSpace, kkuint32 intensityHistBucketsWhiteSpace[8]) const |
| Calculates both Intensity Histograms, one not including internal background pixels and one with plus size and weighted size. More... | |
| void | CalcAreaAndIntensityFeatures (kkint32 &area, float &weightedSize, kkuint32 intensityHistBuckets[8]) const |
| Calculates both Intensity Histograms, one not including internal background pixels and one with plus size and weighted size. More... | |
| void | CalcAreaAndIntensityFeatures16 (kkint32 &area, float &weighedSize, kkuint32 intensityHistBuckets[16]) |
| void | CalcAreaAndIntensityHistogram (kkint32 &area, kkuint32 intensityHistBuckets[8]) const |
| Calculates the occurrence of different intensity levels. More... | |
| void | CalcAreaAndIntensityHistogramWhite (kkint32 &area, kkuint32 intensityHistBuckets[8]) |
| Calculates a Intensity Histogram including Background pixels in the image. More... | |
| void | CalcCentroid (kkint32 &size, kkint32 &weight, float &rowCenter, float &colCenter, float &rowCenterWeighted, float &colCenterWeighted) const |
| void | CalcOrientationAndEigerRatio (float &eigenRatio, float &orientationAngle) |
| float | CalcWeightedArea () const |
| double | CenMoment (kkint32 colMoment, kkint32 rowMoment, double centerCol, double centerRow) const |
| float | CenMomentWeighted (kkint32 p, kkint32 q, float ew, float eh) const |
| void | CentralMoments (float features[9]) const |
| returns in 'features' the 8 central moments as defined by Hu plus eccentricity in the eight bucket. More... | |
| void | CentralMomentsWeighted (float features[9]) const |
| Similar to 'CentralMoments' except each pixel position is weighted by its intensity value. More... | |
| float | CentroidCol () const |
| float | CentroidRow () const |
| void | Closing () |
| void | Closing (MaskTypes mask) |
| bool | Color () const |
| void | ComputeCentralMoments (kkint32 &foregroundPixelCount, float &weightedPixelCount, float centralMoments[9], float centralMomentsWeighted[9]) const |
| Computes central moments; one set where each pixel is treated as 1 or 0(Foreground/Background) and the other where each pixel is weighted by intensity value. More... | |
| void | ConnectedComponent (uchar connectedComponentDist) |
| void | ConnectedComponent8Conected () |
| RasterPtr | CreateColor () const |
| RasterPtr | CreateColorImageFromLabels () |
| Produces a color image using the 'greenArea' channel, assuming that each unique value will be assigned a unique color. More... | |
| RasterPtr | CreateColorWithBlobsLabeldByColor (BlobListPtr blobs) |
| Returns image where each blob is labeled with a different color. More... | |
| RasterPtr | CreateDilatedRaster () const |
| RasterPtr | CreateDilatedRaster (MaskTypes mask) const |
| RasterPtr | CreateErodedImage (MaskTypes mask) const |
| RasterPtr | CreateFromOrginalImageWithSpecifidBlobsOnly (RasterPtr origImage, BlobListPtr blobs) |
| Returns a copy of 'origImage' where only the blobs specified in 'blobs' are copied over. More... | |
| RasterPtr | CreateGaussianSmoothedImage (float sigma) const |
| RasterPtr | CreateGrayScale () const |
| RasterPtr | CreateGrayScaleKLT () const |
| Creates a image using a KLT Transform with the goal of weighting in favor the color channels with greatest amount of variance. More... | |
| RasterPtr | CreateGrayScaleKLTOnMaskedArea (const Raster &mask) const |
| Same as 'CreateKLT' except it will only take into account pixels specified by the 'mask' image. More... | |
| RasterPtr | CreateSmoothedMediumImage (kkint32 maskSize) const |
| RasterPtr | CreateSmoothImage (kkint32 maskSize=3) const |
| PointListPtr | DeriveImageLength () const |
| void | Dilation () |
| void | Dilation (RasterPtr dest) const |
| void | Dilation (MaskTypes mask) |
| void | Dilation (RasterPtr dest, MaskTypes mask) const |
| void | Dilation (MorphOp::StructureType _structure, kkuint16 _structureSize, kkint32 _foregroundCountTH) |
| kkint32 | Divisor () const |
| void | Divisor (kkint32 _divisor) |
| void | DrawCircle (const Point &point, kkint32 radius, const PixelValue &color) |
| Draw a circle who's center is at 'point' and radius in pixels is 'radius' using color 'color'. More... | |
| void | DrawCircle (float centerRow, float centerCol, float radius, const PixelValue &pixelValue) |
| void | DrawCircle (float centerRow, float centerCol, float radius, float startAngle, float endAngle, const PixelValue &pixelValue) |
| void | DrawConnectedPointList (Point offset, const PointList &borderPixs, const PixelValue &pixelValue, const PixelValue &linePixelValue) |
| void | DrawDot (const Point &point, const PixelValue &color, kkint32 size) |
| void | DrawFatLine (Point startPoint, Point endPoint, PixelValue pv, float alpha) |
| void | DrawGrid (float pixelsPerMinor, kkuint32 minorsPerMajor, const PixelValue &hashColor, const PixelValue &gridColor) |
| void | DrawLine (kkint32 bpRow, kkint32 bpCol, kkint32 epRow, kkint32 epCol) |
| void | DrawLine (kkint32 bpRow, kkint32 bpCol, kkint32 epRow, kkint32 epCol, uchar pixelVal) |
| void | DrawLine (const Point &beginPoint, const Point &endPoint, uchar pixelVal) |
| void | DrawLine (const Point &beginPoint, const Point &endPoint, const PixelValue &pixelVal) |
| void | DrawLine (kkint32 bpRow, kkint32 bpCol, kkint32 epRow, kkint32 epCol, uchar r, uchar g, uchar b) |
| void | DrawLine (kkint32 bpRow, kkint32 bpCol, kkint32 epRow, kkint32 epCol, uchar r, uchar g, uchar b, float alpha) |
| void | DrawLine (kkint32 bpRow, kkint32 bpCol, kkint32 epRow, kkint32 epCol, PixelValue pixelVal) |
| void | DrawLine (kkint32 bpRow, kkint32 bpCol, kkint32 epRow, kkint32 epCol, PixelValue pixelVal, float alpha) |
| void | DrawPointList (const PointList &borderPixs, const PixelValue &pixelValue) |
| void | DrawPointList (Point offset, const PointList &borderPixs, const PixelValue &pixelValue) |
| void | DrawPointList (const PointList &borderPixs, uchar redVal, uchar greenVal, uchar blueVal) |
| void | DrawPointList (Point offset, const PointList &borderPixs, uchar redVal, uchar greenVal, uchar blueVal) |
| void | Edge () |
| reduces image to edge pixels only. More... | |
| void | Edge (RasterPtr dest) |
| void | ErodeSpurs () |
| removes spurs from image. More... | |
| void | Erosion () |
| void | Erosion (MaskTypes mask) |
| void | Erosion (MorphOp::StructureType _structure, kkuint16 _structureSize, kkint32 _backgroundCountTH) |
| void | Erosion (RasterPtr dest) const |
| Place into destination a eroded version of this instances image. More... | |
| void | Erosion (RasterPtr dest, MaskTypes mask) const |
| void | ErosionBoundary (MaskTypes mask, kkint32 blobrowstart, kkint32 blobrowend, kkint32 blobcolstart, kkint32 blobcolend) |
| void | ErosionChanged (MaskTypes mask, kkint32 row, kkint32 col) |
| void | ErosionChanged1 (MaskTypes mask, kkint32 row, kkint32 col) |
| RasterPtr | ExtractABlob (const BlobPtr blob) const |
| Extracts a specified blob from this image; useful to extract individual detected blobs. More... | |
| RasterPtr | ExtractABlobTightly (const BlobPtr blob, kkint32 padding) const |
| Extracts a specified blob from this image into a tightly bounded image. More... | |
| BlobListPtr | ExtractBlobs (kkint32 dist) |
| Will extract a list of connected components from this instance. More... | |
| RasterPtr | ExtractChannel (ColorChannels channel) |
| Will return a gray-scale image consisting of the specified color channel only. More... | |
| RasterPtr | ExtractUsingMask (RasterPtr mask) |
| Extracts the pixel locations where the 'mask' images pixel location is a foreground pixel. More... | |
| RasterPtr | FastFourier () const |
| RasterPtr | FastFourierKK () const |
| const KKStr & | FileName () const |
| void | FileName (const KKStr &_fileName) |
| void | FillBlob (RasterPtr origImage, BlobPtr blob, PixelValue color) |
| Will paint the specified blob with the specified color. More... | |
| void | FillHole () |
| void | FillHole (RasterPtr mask) |
| Fills holes in the image using the 'mask' raster as a work area. More... | |
| void | FillRectangle (kkint32 tlRow, kkint32 tlCol, kkint32 brRow, kkint32 brCol, const PixelValue &fillColor) |
| void | FindBoundingBox (kkint32 &tlRow, kkint32 &tlCol, kkint32 &brRow, kkint32 &brCol) const |
| RasterPtr | FindMagnitudeDifferences (const Raster &r) |
| Returns an image that reflects the differences between this image and the image supplied in the parameter. More... | |
| void | FollowContour (float countourFreq[5]) const |
| bool | ForegroundPixel (kkint32 row, kkint32 col) const |
| kkint32 | ForegroundPixelCount () const |
| void | ForegroundPixelCount (kkint32 _foregroundPixelCount) |
| uchar | ForegroundPixelValue () const |
| void | ForegroundPixelValue (uchar _foregroundPixelValue) |
| void | FourierExtractFeatures (float fourierFeatures[5]) const |
| float * | FourierMagArea () const |
| uchar | GetPixelValue (kkint32 row, kkint32 col) const |
| void | GetPixelValue (kkint32 row, kkint32 col, uchar &r, uchar &g, uchar &b) const |
| void | GetPixelValue (kkint32 row, kkint32 col, PixelValue &p) const |
| uchar | GetPixelValue (ColorChannels channel, kkint32 row, kkint32 col) const |
| uchar ** | GetSubSet (uchar **_src, kkint32 _row, kkint32 _col, kkint32 _height, kkint32 _width) const |
| Returns back a two dimension array that is a copy of the specified region in the image. More... | |
| uchar ** | Green () const |
| uchar * | GreenArea () const |
| RasterPtr | HalfSize () |
| kkint32 | Height () const |
| HistogramPtr | Histogram (ColorChannels channel) const |
| RasterPtr | HistogramEqualizedImage () const |
| RasterPtr | HistogramEqualizedImage (HistogramPtr equalizedHistogram) const |
| HistogramPtr | HistogramGrayscale () const |
| RasterPtr | HistogramGrayscaleImage () const |
| RasterPtr | HistogramImage (ColorChannels channel) const |
| void | Initialize (kkint32 _height, kkint32 _width, uchar *_Data, uchar **_Rows, bool _takeOwnership) |
| Sets an existing instance to specific Raster Data of a image. More... | |
| void | Initialize (kkint32 _height, kkint32 _width, uchar *_redArea, uchar **_red, uchar *_greenArea, uchar **_green, uchar *_blueArea, uchar **_blue, bool _takeOwnership) |
| Sets an existing instance to specific Raster Data of a image. More... | |
| uchar | MaxPixVal () const |
| void | MaxPixVal (uchar _maxPixVal) |
| kkint32 | MemoryConsumedEstimated () const |
| void | Opening () |
| void | Opening (MaskTypes mask) |
| RasterPtr | Padded (kkint32 padding) |
| void | PaintFatPoint (kkint32 row, kkint32 col, const PixelValue pv, float alpha) |
| void | PaintPoint (kkint32 row, kkint32 col, const PixelValue &pv, float alpha) |
| uchar ** | Red () const |
| uchar * | RedArea () const |
| RasterPtr | ReduceByEvenMultiple (kkint32 multiple) const |
| RasterPtr | ReduceByFactor (float factor) const |
| void | ReduceToMostCompleteBlob (uchar connectedComponentDist) |
| Locates most complete blob; that is the one with the largest (Height x Width); and removes all other images from the blob. More... | |
| void | ReSize (kkint32 _height, kkint32 _width, bool _color) |
| Lets you resize the raster dimensions; old image data will be lost. More... | |
| RasterPtr | ReversedImage () |
| void | ReverseImage () |
| RasterPtr | Rotate (float turnAngle) |
| Point | RotateDerivePreRotatedPoint (kkint32 height, kkint32 width, Point &rotatedPoint, float turnAngle) const |
| uchar ** | Rows () const |
| RasterPtr | SegmentImage (bool save=false) |
| void | SetPixelValue (const Point &point, const PixelValue &pixVal) |
| void | SetPixelValue (kkint32 row, kkint32 col, uchar pixVal) |
| void | SetPixelValue (kkint32 row, kkint32 col, const PixelValue &pixVal) |
| void | SetPixelValue (kkint32 row, kkint32 col, uchar r, uchar g, uchar b) |
| void | SetPixelValue (ColorChannels channel, kkint32 row, kkint32 col, uchar pixVal) |
| uchar * | SimpleCompression (kkuint32 &buffLen) const |
| Compresses the image in Raster using a simple Run length algorithm and returns a pointer to compressed data. More... | |
| RasterPtr | SobelEdgeDetector () const |
| RasterListPtr | SplitImageIntoEqualParts (kkint32 numColSplits, kkint32 numRowSplits) const |
| RasterPtr | StreatchImage (float rowFactor, float colFactor) const |
| RasterPtr | SwapQuadrants () const |
| void | TakeOwnershipOfAnotherRastersData (Raster &otherRaster) |
| Will take ownership of 'otherRaster' raster dynamically allocated data and copy its non dynamically allocated data. More... | |
| RasterPtr | ThinContour () const |
| RasterPtr | ThresholdInHSI (float thresholdH, float thresholdS, float thresholdI, float distance, const PixelValue &flagValue) |
| RasterPtr | TightlyBounded (kkuint32 borderPixels) const |
| const KKStr & | Title () const |
| void | Title (const KKStr &_title) |
| RasterPtr | ToColor () const |
| uchar * | ToCompressor (kkuint32 &compressedBuffLen) const |
| Compresses the image in Raster using zlib library and returns a pointer to compressed data. More... | |
| kkint32 | TotalBackgroundPixels () const |
| kkint32 | TotPixels () const |
| RasterPtr | Transpose () const |
| void | WeOwnRasterData (bool _weOwnRasterData) |
| void | WhiteOutBackground () |
| Sets all pixels that are in the Background Range ov values to BackgroundPixelValue. More... | |
| kkint32 | Width () const |
Static Public Member Functions | |
| static MatrixPtr | BuildGaussian2dKernel (float sigma) |
| Builds a 2d Gaussian kernel. More... | |
| static RasterPtr | CreatePaddedRaster (BmpImage &image, kkint32 padding) |
| static RasterPtr | FromCompressor (const uchar *compressedBuff, kkuint32 compressedBuffLen) |
| Creates a new instance of Raster object from zLib compressed data. More... | |
| static RasterPtr | FromSimpleCompression (const uchar *compressedBuff, kkuint32 compressedBuffLen) |
| Creates a raster from a compressedBuff created by 'SimpleCompression'. More... | |
| static void | PrintOutListOfAllocatedrasterInstances () |
Static Protected Member Functions | |
| static void | AddRasterInstance (const RasterPtr r) |
| static void | FinalCleanUp () |
| static void | Initialize () |
| static void | RemoveRasterInstance (const RasterPtr r) |
Protected Attributes | |
| uchar | backgroundPixelTH |
| uchar | backgroundPixelValue |
| kkint32 ** | blobIds |
| uchar ** | blue |
| uchar * | blueArea |
| float | centroidCol |
| float | centroidRow |
| bool | color |
| kkint32 | divisor |
| KKStr | fileName |
| kkint32 | foregroundPixelCount |
| uchar | foregroundPixelValue |
| float ** | fourierMag |
| float * | fourierMagArea |
| uchar ** | green |
| uchar * | greenArea |
| kkint32 | height |
| uchar | maxPixVal |
| uchar ** | red |
| uchar * | redArea |
| KKStr | title |
| kkint32 | totPixels |
| bool | weOwnRasterData |
| kkint32 | width |
Static Protected Attributes | |
| static std::map< RasterPtr, RasterPtr > | allocatedRasterInstances |
| Supports the tracking down of memory leaks in Raster; it will be called every time a new instance of a 'Raster' object is created. More... | |
| static volatile GoalKeeperPtr | goalKeeper = NULL |
| static volatile bool | rasterInitialized = false |
A class that is used by to represent a single image in memory.
This class supports morphological operations and other tasks and can handle either Gray-scale or Color. The default is Gray-scale unless otherwise specified. Each color channel will be allocated as one continuous block of memory. If the image is only gray-scale the Green Channel (G) will be used leaving the Red and Blue channels set to NULL. Access to individual pixels through is through methods that will ensure memory integrity. If required can also access the pixel data directly in memory. Each channel can be accessed as a one or two dimensional array. For example the green channel can be accesses as either "GreenArea ()" which returns a pointer to a one dimensional array or "Green ()" which returns a two dimensional array. The imagery is stored in the one dimensional array while the two dimensional is a list of pointers to the beginning of each row.
| typedef Raster const KKB::Raster::RasterConst |
| typedef RasterConst* KKB::Raster::RasterConstPtr |
| typedef Raster* KKB::Raster::RasterPtr |
| Raster::Raster | ( | ) |
Definition at line 287 of file Raster.cpp.
References backgroundPixelTH, backgroundPixelValue, blobIds, blue, blueArea, centroidCol, centroidRow, color, fileName, foregroundPixelCount, foregroundPixelValue, fourierMag, fourierMagArea, green, greenArea, height, KKB::KKStr::KKStr(), maxPixVal, red, redArea, title, totPixels, weOwnRasterData, and width.
| Raster::Raster | ( | const Raster & | _raster | ) |
Copy Constructor.
Definition at line 460 of file Raster.cpp.
References AddRasterInstance(), backgroundPixelTH, backgroundPixelValue, blobIds, blue, blueArea, centroidCol, centroidRow, color, divisor, fileName, foregroundPixelCount, foregroundPixelValue, fourierMag, fourierMagArea, green, greenArea, height, KKB::KKException::KKException(), KKB::KKStr::KKStr(), maxPixVal, red, redArea, title, totPixels, weOwnRasterData, and width.
Referenced by AllocateARasterInstance(), CalcAreaAndIntensityFeatures(), CalcAreaAndIntensityHistogramWhite(), CreateColor(), Edge(), ErodeSpurs(), Erosion(), ErosionBoundary(), ErosionChanged(), ErosionChanged1(), FillHole(), KKB::MorphOpDilation::PerformOperation(), KKB::MorphOpErosion::PerformOperation(), KKB::MorphOpMaskExclude::PerformOperation(), KKB::SaveImageInverted(), KKB::SegmentorOTSU::SegmentImage(), and KKB::SegmentorOTSU::SegmentMaskedImage().
Constructs a blank image with given dimensions; all pixels will be initialized to 0.
When working with images pixel value of '0' = Background and '255'= foreground. The green channel will be used to represent the value. When these raster images are saved to a image file such as a BMP file the pixel value of 0 will point to the color value of (255, 255, 255) and pixel value 255 will point to the color value of (0, 0, 0). This way when displaying the image background will appear as white.
Definition at line 318 of file Raster.cpp.
References AddRasterInstance(), backgroundPixelTH, backgroundPixelValue, blobIds, blue, blueArea, centroidCol, centroidRow, color, divisor, fileName, foregroundPixelCount, foregroundPixelValue, fourierMag, fourierMagArea, green, greenArea, height, KKB::KKStr::KKStr(), maxPixVal, red, redArea, title, totPixels, weOwnRasterData, and width.
Referenced by KKB::Histogram::CreateGraph(), FastFourier(), KKB::ConvexHull::Filter(), and KKB::MorphOpBinarize::PerformOperation().
Constructs a blank image with given dimensions.
The third parameter determines whether it will be a color or image, If a Color image then all three color channel will be set to = 255 which stands for white. If the green channel will be set to 0.
Definition at line 356 of file Raster.cpp.
References AddRasterInstance(), backgroundPixelTH, backgroundPixelValue, blobIds, blue, blueArea, centroidCol, centroidRow, color, divisor, fileName, foregroundPixelCount, foregroundPixelValue, fourierMag, fourierMagArea, green, greenArea, height, KKB::KKStr::KKStr(), maxPixVal, red, redArea, title, totPixels, weOwnRasterData, and width.
Referenced by AllocateARasterInstance(), CreateColor(), CreatePaddedRaster(), KKB::Chart::CreateRaster(), ExtractUsingMask(), FindMagnitudeDifferences(), FromCompressor(), FromSimpleCompression(), KKB::MorphOpStretcher::PerformOperation(), KKB::MorphOpMaskExclude::PerformOperation(), KKB::ReadImagePGM(), KKB::ReadImagePPM(), KKB::SegmentorOTSU::SegmentImage(), KKB::SegmentorOTSU::SegmentMaskedImage(), and Transpose().
| Raster::Raster | ( | const BmpImage & | _bmpImage | ) |
Constructs a Raster from a BMP image loaded from disk.
If BMP Image is a gray-scale value pixel values will be reversed. See description of constructor.
If BMP Image is a gray-scale value pixel values will be reversed. See description of gray-scale constructor.
Definition at line 405 of file Raster.cpp.
References AddRasterInstance(), backgroundPixelTH, backgroundPixelValue, blobIds, blue, blueArea, KKB::BmpImage::BlueRow(), centroidCol, centroidRow, KKB::BmpImage::Color(), color, divisor, KKB::BmpImage::FileName(), fileName, foregroundPixelCount, foregroundPixelValue, fourierMag, fourierMagArea, green, greenArea, KKB::BmpImage::Height(), height, KKB::BmpImage::ImageRow(), KKB::KKStr::KKStr(), maxPixVal, red, redArea, KKB::BmpImage::RedRow(), title, totPixels, weOwnRasterData, KKB::BmpImage::Width(), and width.
Referenced by KKB::ReadImage().
| Raster::Raster | ( | const Raster & | _raster, |
| kkint32 | _row, | ||
| kkint32 | _col, | ||
| kkint32 | _height, | ||
| kkint32 | _width | ||
| ) |
Constructs a new Raster using a subset of the specified Raster as its source. The dimensions of the resultant raster will be '_height', and '_width'.
| _raster | Source Raster |
| _row | Starting Row in '_raster' to copy from. |
| _col | Starting Col in '_raster' to copy from. |
| _height | Height of resultant raster. Will start from '_row' |
| _width | Width of resultant raster. |
Definition at line 514 of file Raster.cpp.
References AddRasterInstance(), backgroundPixelTH, backgroundPixelValue, blobIds, blue, blueArea, centroidCol, centroidRow, color, divisor, fileName, foregroundPixelCount, foregroundPixelValue, fourierMag, fourierMagArea, GetSubSet(), green, greenArea, height, KKB::KKStr::KKStr(), maxPixVal, red, redArea, title, totPixels, weOwnRasterData, and width.
Referenced by AllocateARasterInstance(), and SplitImageIntoEqualParts().
Constructs a Raster that will be the same size as the specified '_mask' with the top left specified by '_row' and '_col'.
The Height and Width of the resultant image will come from the bias of the specified mask. The Image data will come from the specified raster using '_row' and '_col' to specify the top left column.
| [in] | _raster | Source Raster to extract data from. |
| [in] | _mask | Used to derive height and with of resultant image. |
| [in] | _row | Starting row where image data is to be extracted from. |
| [in] | _col | Starting column where image data is to be extracted from. |
Definition at line 566 of file Raster.cpp.
References AddRasterInstance(), backgroundPixelTH, backgroundPixelValue, KKB::MorphOp::Biases(), blobIds, blue, blueArea, centroidCol, centroidRow, color, divisor, fileName, foregroundPixelCount, foregroundPixelValue, fourierMag, fourierMagArea, GetSubSet(), green, greenArea, height, KKB::KKStr::KKStr(), maxPixVal, red, redArea, title, totPixels, weOwnRasterData, and width.
| Raster::Raster | ( | const KKStr & | fileName, |
| bool & | validFile | ||
| ) |
Constructs a Raster image from by reading an existing image File such as a BMP file.
Will read from the specified file (fileName) the existing image. If the load fails then the contents of this object will be undefined.
| [in] | fileName | Name of Image file to read. |
| [out] | validFile | If image successfully loaded will be set to 'True' otherwise 'False'. |
| fileName | |
| fileName | name of image file to load/ |
| validFile | |
| validFile | will return true if image successfully loaded. |
Definition at line 622 of file Raster.cpp.
References AddRasterInstance(), backgroundPixelTH, backgroundPixelValue, blobIds, Blue(), blue, blueArea, centroidCol, centroidRow, color, divisor, fileName, ForegroundPixelCount(), foregroundPixelCount, foregroundPixelValue, fourierMag, fourierMagArea, Green(), green, greenArea, Height(), height, KKB::KKStr::KKStr(), MaxPixVal(), maxPixVal, KKB::ReadImage(), Red(), red, redArea, title, totPixels, weOwnRasterData, Width(), and width.
Referenced by KKMLL::GrayScaleImagesFVList::RecalcFeatureValuesFromImagesInDirTree().
Construct a raster object that will utilize a image already in memory.
This instance will NOT OWN the raster data; it will only point to it. That means when this instance is destroyed the raster data will still be left intact.
| [in] | _height | Height of image. |
| [in] | _width | Width of image. |
| [in] | _Data | Source gray-scale raster data; needs to be continuous and of length (_height * _width) with data stored row major. |
| [in] | _Rows | Two dimensional array where each entry will point into the respective image row data in '_Data'. |
Definition at line 689 of file Raster.cpp.
References AddRasterInstance(), backgroundPixelTH, backgroundPixelValue, blobIds, blue, blueArea, centroidCol, centroidRow, color, divisor, fileName, foregroundPixelCount, foregroundPixelValue, fourierMag, fourierMagArea, green, greenArea, height, KKB::KKStr::KKStr(), maxPixVal, red, redArea, title, totPixels, weOwnRasterData, and width.
Referenced by KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector().
Construct a Raster object using provided raw data.
| [in] | _height | Image Height. |
| [in] | _width | Image Width. |
| [in] | _Data | 8 Bit data, Row Major, that is to be used to populate new instance. |
Definition at line 727 of file Raster.cpp.
References AddRasterInstance(), backgroundPixelTH, backgroundPixelValue, blobIds, blue, blueArea, centroidCol, centroidRow, color, divisor, fileName, foregroundPixelCount, foregroundPixelValue, fourierMag, fourierMagArea, green, greenArea, height, KKB::KKException::KKException(), KKB::KKStr::KKStr(), maxPixVal, red, redArea, title, totPixels, weOwnRasterData, and width.
| Raster::Raster | ( | kkint32 | _height, |
| kkint32 | _width, | ||
| const uchar * | _redChannel, | ||
| const uchar * | _greenChannel, | ||
| const uchar * | _blueChannel | ||
| ) |
Construct a Color Raster object using provided raw data,.
| [in] | _height | Image Height. |
| [in] | _width | Image Width. |
| [in] | _redChannel | 8 Bit data, Row Major, that is to be used to populate the red channel. |
| [in] | _greenChannel | 8 Bit data, Row Major, that is to be used to populate the green channel. |
| [in] | _blueChannel | 8 Bit data, Row Major, that is to be used to populate the blue channel. |
Definition at line 766 of file Raster.cpp.
References AddRasterInstance(), backgroundPixelTH, backgroundPixelValue, blobIds, blue, blueArea, centroidCol, centroidRow, color, KKB::KKStr::Concat(), divisor, fileName, foregroundPixelCount, foregroundPixelValue, fourierMag, fourierMagArea, green, greenArea, height, KKB::KKException::KKException(), KKB::KKStr::KKStr(), maxPixVal, red, redArea, title, totPixels, weOwnRasterData, and width.
|
virtual |
Definition at line 826 of file Raster.cpp.
References RemoveRasterInstance().
|
staticprotected |
Definition at line 106 of file Raster.cpp.
Referenced by Raster().
|
virtual |
Definition at line 1014 of file Raster.cpp.
References Raster().
Referenced by BandPass(), CreateColorImageFromLabels(), CreateColorWithBlobsLabeldByColor(), CreateFromOrginalImageWithSpecifidBlobsOnly(), CreateGrayScale(), CreateGrayScaleKLT(), CreateGrayScaleKLTOnMaskedArea(), KKB::RasterList::CreateSmoothedFrame(), ExtractABlob(), ExtractABlobTightly(), ExtractChannel(), FastFourierKK(), HalfSize(), HistogramEqualizedImage(), Padded(), ReduceByEvenMultiple(), ReduceByFactor(), Rotate(), SegmentImage(), TightlyBounded(), and ToColor().
Definition at line 1024 of file Raster.cpp.
References Raster().
Referenced by CreateDilatedRaster(), CreateErodedImage(), CreateGaussianSmoothedImage(), CreateGrayScale(), CreateGrayScaleKLT(), CreateGrayScaleKLTOnMaskedArea(), CreateSmoothedMediumImage(), CreateSmoothImage(), ExtractChannel(), ReversedImage(), SegmentImage(), SwapQuadrants(), ThinContour(), ThresholdInHSI(), and ToColor().
|
virtual |
| _raster | Source Raster |
| _row | Starting Row in '_raster' to copy from. |
| _col | Starting Col in '_raster' to copy from. |
| _height | Height of resultant raster. Will start from '_row' |
| _width | Width of resultant raster. |
Definition at line 1031 of file Raster.cpp.
References Raster().
| bool Raster::AreThereEdgePixels | ( | kkint32 | edgeWidth | ) |
returns true if there are any foreground pixels within 'edgeWidth' pixels of the top, bottom, left, or right edges of the image.
Definition at line 1516 of file Raster.cpp.
References ForegroundPixel(), height, and width.
Definition at line 1074 of file Raster.cpp.
References backgroundPixelTH, backgroundPixelValue, and green.
Referenced by WhiteOutBackground().
|
inline |
Definition at line 335 of file Raster.h.
References backgroundPixelTH.
Referenced by KKB::ContourFollower::ContourFollower(), ExtractUsingMask(), KKB::MorphOpBmiFiltering::PerformOperation(), KKB::MorphOpStretcher::PerformOperation(), KKB::SegmentorOTSU::SegmentMaskedImage(), and KKB::MorphOp::SetSrcRaster().
|
inline |
Definition at line 341 of file Raster.h.
References backgroundPixelTH.
Referenced by ExtractUsingMask(), and KKB::MorphOpStretcher::PerformOperation().
|
inline |
Definition at line 336 of file Raster.h.
References backgroundPixelValue.
Referenced by ExtractUsingMask(), KKB::MorphOpBinarize::PerformOperation(), KKB::MorphOpErosion::PerformOperation(), KKB::MorphOpStretcher::PerformOperation(), and KKB::MorphOp::SetSrcRaster().
|
inline |
Definition at line 342 of file Raster.h.
References backgroundPixelValue.
Referenced by ExtractUsingMask(), KKB::MorphOpStretcher::PerformOperation(), and SegmentImage().
| RasterPtr Raster::BandPass | ( | float | lowerFreqBound, |
| float | upperFreqBound, | ||
| bool | retainBackground | ||
| ) |
Returns a image that is the result of a BandPass using Fourier Transforms.
A 2D Fourier transform is performed. The range specified is from 0.0 to 1.0 where range is determined from the center of the image to the farthest corner where the center is 0.0 and the farthest corner is 1.0. Pixels in the resultant 2D Transform that are "NOT" in the specified range are set to 0.0. A reverse transform is then performed and the resultant image is returned.
| [in] | lowerFreqBound | Lower range of frequencies to retain; between 0.0 and 1.0. |
| [in] | upperFreqBound | Upper range of frequencies to retain; between 0.0 and 1.0. |
| [in] | retainBackground |
| lowerFreqBound | Number's between 0.0 and 1.0 |
| upperFreqBound | Represent fraction. |
Definition at line 8735 of file Raster.cpp.
References AllocateARasterInstance(), backgroundPixelValue, color, green, greenArea, height, totPixels, and width.
Definition at line 7705 of file Raster.cpp.
References KKB::MorphOpBinarize::MorphOpBinarize(), and KKB::MorphOpBinarize::PerformOperation().
Return the ID of the blob that the specified pixel location belongs to.
If a connected component (ExtractBlobs) was performed on this image then the pixels that belong to blobs were assigned a blob ID. These ID's are retained with the original image in 'blobIds'.
| [in] | row | Row in image. |
| [in] | col | Column in image. |
Definition at line 3116 of file Raster.cpp.
References blobIds, height, and width.
|
inline |
returns a pointer to two dimensional array for 'Blue' color channel.
Definition at line 328 of file Raster.h.
References blue.
Referenced by KKB::BmpImage::BmpImage(), CreateSmoothedMediumImage(), CreateSmoothImage(), ExtractUsingMask(), FindMagnitudeDifferences(), KKB::MorphOpStretcher::PerformOperation(), Raster(), KKB::SaveImageInverted(), KKB::MorphOp::SetSrcRaster(), TightlyBounded(), and Transpose().
|
inline |
Definition at line 331 of file Raster.h.
References blueArea.
Referenced by KKB::SegmentorOTSU::ClassAverageRGB(), CreateColorImageFromLabels(), KKB::RasterList::CreateSmoothedFrame(), ExtractChannel(), FromCompressor(), KKB::SegmentorOTSU::GetClassClosestToTargetColor(), KKB::MorphOpMaskExclude::PerformOperation(), ReduceByFactor(), KKB::SaveImagePNG(), KKB::SaveImagePPM(), KKB::MorphOp::SetSrcRaster(), and ToColor().
|
static |
Builds a 2d Gaussian kernel.
Determines the size of the Gaussian kernel based off the specified sigma parameter. returns a 2D matrix representing the kernel which will have 'Len' x 'Len' dimensions. The caller will be responsible for deleting the kernel.
| [in] | sigma | parameter used to control the width of the Gaussian kernel |
Definition at line 9331 of file Raster.cpp.
References KKB::Matrix::Matrix(), KKB::Matrix::operator[](), and KKB::Row::operator[]().
Referenced by CreateGaussianSmoothedImage().
| kkint32 Raster::CalcArea | ( | ) |
Definition at line 3789 of file Raster.cpp.
References foregroundPixelCount, green, height, maxPixVal, and width.
| void Raster::CalcAreaAndIntensityFeatures | ( | kkint32 & | area, |
| float & | weightedSize, | ||
| kkuint32 | intensityHistBuckets[8], | ||
| kkint32 & | areaWithWhiteSpace, | ||
| kkuint32 | intensityHistBucketsWhiteSpace[8] | ||
| ) | const |
Calculates both Intensity Histograms, one not including internal background pixels and one with plus size and weighted size.
This method incorporates the functionality of several methods at once. The idea being that while we are iterating through the raster image we might as well get all the data we can so as to save total overall processing time.
| [out] | area | Number of foreground pixels. |
| [out] | weightedSize | Area that takes intensity into account. The largest pixel will have a value of 1.0. |
| [out] | intensityHistBuckets | A 8 element array containing a histogram by intensity range. |
| [out] | areaWithWhiteSpace | Area including any whitespace enclosed inside the image. |
| [out] | intensityHistBucketsWhiteSpace | A 8 element array containing a histogram by intensity range, with enclosed whitespace pixels included. |
Definition at line 3912 of file Raster.cpp.
References FillHole(), foregroundPixelCount, freqHistBucketIdx, GreenArea(), greenArea, maxPixVal, Raster(), and totPixels.
| void Raster::CalcAreaAndIntensityFeatures | ( | kkint32 & | area, |
| float & | weightedSize, | ||
| kkuint32 | intensityHistBuckets[8] | ||
| ) | const |
Calculates both Intensity Histograms, one not including internal background pixels and one with plus size and weighted size.
This method incorporates the functionality of several methods at once. The idea being that while we are iterating through the raster image we might as well get all the data we can so as to save total overall processing time.
| [out] | area | Number of foreground pixels. |
| [out] | weightedSize | Area that takes intensity into account. The largest pixel will have a value of 1.0. |
| [out] | intensityHistBuckets | A 8 element array containing a histogram by intensity range where each bucket represents a range of 32. |
Definition at line 4018 of file Raster.cpp.
References foregroundPixelCount, freqHistBucketIdx, greenArea, maxPixVal, and totPixels.
Referenced by KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector().
| void Raster::CalcAreaAndIntensityFeatures16 | ( | kkint32 & | area, |
| float & | weighedSize, | ||
| kkuint32 | intensityHistBuckets[16] | ||
| ) |
Definition at line 3975 of file Raster.cpp.
References foregroundPixelCount, freqHist16BucketIdx, greenArea, maxPixVal, and totPixels.
| void Raster::CalcAreaAndIntensityHistogram | ( | kkint32 & | area, |
| kkuint32 | intensityHistBuckets[8] | ||
| ) | const |
Calculates the occurrence of different intensity levels.
The pixel values 0-255 are split into 8 ranges. (0-31), (32-63), (64-95), (96-127), (128-159), (160-191), (192-223), (224-255). The background range (0-31) are not counted.
| [out] | area | Total number of foreground pixels in the image. |
| [out] | intensityHistBuckets | An array of 8 buckets where each bucket represents an intensity range. |
Definition at line 3872 of file Raster.cpp.
References foregroundPixelCount, freqHistBucketIdx, green, height, maxPixVal, and width.
| void Raster::CalcAreaAndIntensityHistogramWhite | ( | kkint32 & | area, |
| kkuint32 | intensityHistBuckets[8] | ||
| ) |
Calculates a Intensity Histogram including Background pixels in the image.
All background pixels that are inside the image will also be included in the counts. This is done by building a mask on the original image then performing a FillHole operation. This mask is then used to select pixels for inclusion in the histogram.
Definition at line 3825 of file Raster.cpp.
References FillHole(), freqHistBucketIdx, green, height, maxPixVal, Raster(), and width.
| void Raster::CalcCentroid | ( | kkint32 & | size, |
| kkint32 & | weight, | ||
| float & | rowCenter, | ||
| float & | colCenter, | ||
| float & | rowCenterWeighted, | ||
| float & | colCenterWeighted | ||
| ) | const |
Definition at line 5977 of file Raster.cpp.
References centroidCol, centroidRow, green, height, and width.
Referenced by CalcOrientationAndEigerRatio(), CentroidCol(), and CentroidRow().
| void Raster::CalcOrientationAndEigerRatio | ( | float & | eigenRatio, |
| float & | orientationAngle | ||
| ) |
Definition at line 5610 of file Raster.cpp.
References CalcCentroid(), centroidCol, centroidRow, green, height, KKB::tqli(), KKB::Tred2(), and width.
Referenced by DeriveImageLength().
| float Raster::CalcWeightedArea | ( | ) | const |
Definition at line 4060 of file Raster.cpp.
References green, height, and width.
| double KKB::Raster::CenMoment | ( | kkint32 | colMoment, |
| kkint32 | rowMoment, | ||
| double | centerCol, | ||
| double | centerRow | ||
| ) | const |
| void Raster::CentralMoments | ( | float | features[9] | ) | const |
returns in 'features' the 8 central moments as defined by Hu plus eccentricity in the eight bucket.
See M. K. Hu, Visual pattern recognition by moment invariants IRE Trans; Inform. Theory, vol. IT, no. 8, pp. 179�187, 1962.
| [in] | features | A array with 9 elements (0 through 8) that will receive the 8 central moments as defined by HU plus eccentricity in the eighth element. |
Definition at line 4100 of file Raster.cpp.
References backgroundPixelTH, centroidCol, centroidRow, foregroundPixelCount, green, height, and width.
Referenced by KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector().
| void Raster::CentralMomentsWeighted | ( | float | features[9] | ) | const |
Similar to 'CentralMoments' except each pixel position is weighted by its intensity value.
See M. K. Hu, Visual pattern recognition by moment invariants IRE Trans; Inform. Theory, vol. IT, no. 8, pp. 179, 187, 1962.
| [in] | features | A array with 9 elements (0 through 8) that will receive the 8 central moments as defined by HU plus eccentricity in the eighth element. |
Definition at line 4243 of file Raster.cpp.
References backgroundPixelTH, green, height, and width.
| float Raster::CentroidCol | ( | ) | const |
Definition at line 1100 of file Raster.cpp.
References CalcCentroid(), centroidCol, centroidRow, and totPixels.
| float Raster::CentroidRow | ( | ) | const |
Definition at line 1116 of file Raster.cpp.
References CalcCentroid(), centroidCol, centroidRow, and totPixels.
| void Raster::Closing | ( | ) |
| void Raster::Closing | ( | MaskTypes | mask | ) |
|
inline |
Definition at line 310 of file Raster.h.
References color.
Referenced by KKB::BmpImage::BmpImage(), KKB::SegmentorOTSU::ClassAverageRGB(), KKB::RasterList::CreateSmoothedFrame(), Dilation(), KKB::SegmentorOTSU::GetClassClosestToTargetColor(), KKB::MorphOpSobel::PerformOperation(), KKB::MorphOpStretcher::PerformOperation(), KKB::ReadImage(), KKB::SaveImageInverted(), KKB::SaveImagePGM(), KKB::SaveImagePNG(), KKB::SaveImagePPM(), KKB::SegmentorOTSU::SegmentImage(), SegmentImage(), KKB::SegmentorOTSU::SegmentMaskedImage(), and KKB::MorphOp::SetSrcRaster().
| void Raster::ComputeCentralMoments | ( | kkint32 & | foregroundPixelCount, |
| float & | weightedPixelCount, | ||
| float | centralMoments[9], | ||
| float | centralMomentsWeighted[9] | ||
| ) | const |
Computes central moments; one set where each pixel is treated as 1 or 0(Foreground/Background) and the other where each pixel is weighted by intensity value.
See M. K. Hu, Visual pattern recognition by moment invariants IRE Trans; Inform. Theory, vol. IT, no. 8, pp. 179?187, 1962. While performing this computation the mutable fields 'centroidRow' and 'centroidCol' will be recomputed and their values can be retrieved by their respective access methods.
| [out] | foregroundPixelCount | Number of pixels that are considered Foreground; as per the 'Foreground' method. |
| [out] | weightedPixelCount | The sum of all pixels that are Foreground pixels but weighted by their intensity; such that each foreground pixel will be divided by 255. |
| [out] | centralMoments | |
| [out] | centralMomentsWeighted |
Definition at line 4418 of file Raster.cpp.
References backgroundPixelTH, centroidCol, centroidRow, green, height, and width.
Referenced by KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector().
| void Raster::ConnectedComponent | ( | uchar | connectedComponentDist | ) |
Definition at line 3466 of file Raster.cpp.
References blobIds, ExtractBlobs(), green, greenArea, height, KKB::Blob::Id(), KKB::BlobList::LocateLargestBlob(), totPixels, and width.
Referenced by DeriveImageLength(), and ThinContour().
| void Raster::ConnectedComponent8Conected | ( | ) |
Definition at line 3577 of file Raster.cpp.
References blobIds, KKB::BlobList::BlobList(), green, greenArea, height, KKB::Blob::Id(), KKB::Blob::id, KKB::BlobList::LocateLargestBlob(), KKB::BlobList::LookUpByBlobId(), KKB::BlobList::MergeBlobIds(), KKB::BlobList::NewBlob(), KKB::Blob::pixelCount, totPixels, and width.
| RasterPtr Raster::CreateColor | ( | ) | const |
Definition at line 6028 of file Raster.cpp.
References color, KKB::PixelValue::FromHSI(), green, height, KKB::PixelValue::operator=(), Raster(), SetPixelValue(), KKB::PixelValue::White, and width.
| RasterPtr Raster::CreateColorImageFromLabels | ( | ) |
Produces a color image using the 'greenArea' channel, assuming that each unique value will be assigned a unique color.
Assuming that each value in the channel(GreenArea) will be assigned a different color useful for image created by "SegmentorOTSU::SegmentImage".
Definition at line 9837 of file Raster.cpp.
References AllocateARasterInstance(), KKB::PixelValue::b, KKB::PixelValue::Black, BlueArea(), KKB::PixelValue::FromHSI(), KKB::PixelValue::g, GreenArea(), greenArea, height, KKB::PixelValue::operator=(), KKB::PixelValue::r, RedArea(), totPixels, and width.
| RasterPtr Raster::CreateColorWithBlobsLabeldByColor | ( | BlobListPtr | blobs | ) |
Returns image where each blob is labeled with a different color.
Only useful if 'ExtractBlobs' was performed on this instance. Eight different colors are used and they are selected by the modules of the blobId(blobId % 8). Assignments are 0:Red, 1:Green, 2:Blue, 3:Yellow, 4:Orange, 5:Magenta, 6:Purple, 7:Teal.Only useful if 'ExtractBlobs' was performed on this instance, the returned image will be color with each blob labeled a different color.
Only useful if 'ExtractBlobs' was performed on this instance.
Definition at line 3331 of file Raster.cpp.
References AllocateARasterInstance(), blobIds, KKB::PixelValue::Blue, KKB::PixelValue::Green, height, KKB::Blob::Id(), KKB::PixelValue::Magenta, KKB::PixelValue::operator=(), KKB::PixelValue::Orange, KKB::PixelValue::Purple, KKB::PixelValue::Red, SetPixelValue(), KKB::PixelValue::Teal, width, and KKB::PixelValue::Yellow.
| RasterPtr Raster::CreateDilatedRaster | ( | ) | const |
Definition at line 1623 of file Raster.cpp.
References AllocateARasterInstance(), foregroundPixelCount, green, height, and width.
Referenced by Dilation().
Definition at line 1702 of file Raster.cpp.
References AllocateARasterInstance(), foregroundPixelCount, green, height, and width.
Referenced by Dilation().
Definition at line 2906 of file Raster.cpp.
References AllocateARasterInstance(), backgroundPixelValue, foregroundPixelCount, Green(), green, height, and width.
Referenced by DeriveImageLength().
| RasterPtr Raster::CreateFromOrginalImageWithSpecifidBlobsOnly | ( | RasterPtr | origImage, |
| BlobListPtr | blobs | ||
| ) |
Returns a copy of 'origImage' where only the blobs specified in 'blobs' are copied over.
| [in] | origImage | Image that this instance was derived for, must have same dimensions. |
| [in] | blobs | List of blob's that you want copied into new Raster instance that is created.. |
Definition at line 3382 of file Raster.cpp.
References AllocateARasterInstance(), blobIds, GetPixelValue(), height, KKB::Blob::Id(), SetPixelValue(), and width.
| RasterPtr Raster::CreateGaussianSmoothedImage | ( | float | sigma | ) | const |
Definition at line 9433 of file Raster.cpp.
References AllocateARasterInstance(), blue, BuildGaussian2dKernel(), color, green, and red.
| RasterPtr Raster::CreateGrayScale | ( | ) | const |
Definition at line 6060 of file Raster.cpp.
References AllocateARasterInstance(), blueArea, color, GreenArea(), greenArea, height, redArea, totPixels, and width.
Referenced by HistogramGrayscaleImage(), KKB::SaveImagePGM(), and SegmentImage().
| RasterPtr Raster::CreateGrayScaleKLT | ( | ) | const |
Creates a image using a KLT Transform with the goal of weighting in favor the color channels with greatest amount of variance.
The idea is to weight each color channel by the amount of variance. This is accomplished by producing a covariance matrix of the three color channels and then taking the Eigen-Vector with the largest eigen value and using its components to derive weights for each channel for the conversion from RGB to grayscale.
Definition at line 9503 of file Raster.cpp.
References AllocateARasterInstance(), blueArea, color, KKB::Matrix::EigenVectors(), KKB::Matrix::GetCol(), GreenArea(), greenArea, Height(), KKB::Matrix::Matrix(), KKB::Matrix::operator[](), KKB::Row::operator[](), redArea, totPixels, and Width().
Referenced by KKB::MorphOpSobel::PerformOperation(), KKB::SegmentorOTSU::SegmentImage(), and KKB::SegmentorOTSU::SegmentMaskedImage().
Same as 'CreateKLT' except it will only take into account pixels specified by the 'mask' image.
| [in] | mask | Raster object where pixels that are greater than 'backgroundPixelTH' are to be considered. |
Definition at line 9643 of file Raster.cpp.
References AllocateARasterInstance(), backgroundPixelTH, blueArea, color, KKB::Matrix::EigenVectors(), KKB::Matrix::GetCol(), GreenArea(), greenArea, Height(), height, KKB::Matrix::Matrix(), KKB::Matrix::operator[](), KKB::Row::operator[](), redArea, TotalBackgroundPixels(), totPixels, Width(), and width.
Referenced by KKB::SegmentorOTSU::SegmentMaskedImage().
Definition at line 1131 of file Raster.cpp.
References foregroundPixelCount, green, KKB::BmpImage::Height(), KKB::BmpImage::ImageRow(), Raster(), and KKB::BmpImage::Width().
Definition at line 7229 of file Raster.cpp.
References AllocateARasterInstance(), Blue(), color, Green(), green, height, Red(), and width.
Definition at line 7152 of file Raster.cpp.
References AllocateARasterInstance(), Blue(), blue, Green(), green, Red(), and red.
Referenced by SegmentImage().
| PointListPtr Raster::DeriveImageLength | ( | ) | const |
Definition at line 9922 of file Raster.cpp.
References CalcOrientationAndEigerRatio(), ConnectedComponent(), CreateErodedImage(), Erosion(), FillHole(), FindBoundingBox(), Green(), height, KKB::Point::Point(), KKB::PointList::PointList(), Rotate(), RotateDerivePreRotatedPoint(), KKB::MorphOp::SQUARE3, KKB::MorphOp::SQUARE7, and width.
| void Raster::Dilation | ( | ) |
Definition at line 1681 of file Raster.cpp.
References CreateDilatedRaster(), foregroundPixelCount, green, and greenArea.
Referenced by Closing(), and Opening().
| void Raster::Dilation | ( | RasterPtr | dest | ) | const |
Definition at line 1804 of file Raster.cpp.
References backgroundPixelTH, Color(), color, foregroundPixelCount, Green(), GreenArea(), Height(), height, ReSize(), Width(), and width.
Referenced by KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector().
| void Raster::Dilation | ( | MaskTypes | mask | ) |
Definition at line 1755 of file Raster.cpp.
References CreateDilatedRaster(), foregroundPixelCount, green, and greenArea.
Referenced by Closing(), Opening(), and KKB::MorphOpMaskExclude::PerformOperation().
Definition at line 1905 of file Raster.cpp.
References Color(), color, foregroundPixelCount, Green(), GreenArea(), Height(), height, ReSize(), Width(), and width.
Referenced by KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector().
| void Raster::Dilation | ( | MorphOp::StructureType | _structure, |
| kkuint16 | _structureSize, | ||
| kkint32 | _foregroundCountTH | ||
| ) |
Definition at line 1776 of file Raster.cpp.
References KKB::MorphOpStruct::ForegroundCountTH(), ForegroundPixelCount(), foregroundPixelCount, green, greenArea, KKB::MorphOpDilation::MorphOpDilation(), and KKB::MorphOpDilation::PerformOperation().
|
inline |
|
inline |
| void Raster::DrawCircle | ( | const Point & | point, |
| kkint32 | radius, | ||
| const PixelValue & | color | ||
| ) |
Draw a circle who's center is at 'point' and radius in pixels is 'radius' using color 'color'.
| [in] | point | Location in image where the center of circle is to be located. |
| [in] | radius | The radius in pixels of the circle that is to be drawn. |
| [in] | color | The color that is to be used to draw the circle with. |
Definition at line 7081 of file Raster.cpp.
References KKB::Point::Col(), DrawCircle(), and KKB::Point::Row().
| void Raster::DrawCircle | ( | float | centerRow, |
| float | centerCol, | ||
| float | radius, | ||
| const PixelValue & | pixelValue | ||
| ) |
Definition at line 6991 of file Raster.cpp.
References SetPixelValue().
Referenced by DrawCircle().
| void Raster::DrawCircle | ( | float | centerRow, |
| float | centerCol, | ||
| float | radius, | ||
| float | startAngle, | ||
| float | endAngle, | ||
| const PixelValue & | pixelValue | ||
| ) |
| centerRow | Row that will contain the center of the circle. |
| centerCol | Column that will contain the center of the circle. |
| radius | The radius of the circle in pixels. |
| startAngle | Start and End angles should be given in radians |
| endAngle | Where the angles are with respect to the compass |
| pixelValue | Pixel value that is to be assigned to locations in the image that are part of the circle. |
Definition at line 7030 of file Raster.cpp.
References height, SetPixelValue(), and width.
| void Raster::DrawConnectedPointList | ( | Point | offset, |
| const PointList & | borderPixs, | ||
| const PixelValue & | pixelValue, | ||
| const PixelValue & | linePixelValue | ||
| ) |
Definition at line 6894 of file Raster.cpp.
References KKB::PixelValue::b, blue, KKB::Point::Col(), color, DrawLine(), KKB::PixelValue::g, green, height, KKB::Point::operator+(), KKB::PixelValue::r, red, KKB::Point::Row(), and width.
| void Raster::DrawDot | ( | const Point & | point, |
| const PixelValue & | color, | ||
| kkint32 | size | ||
| ) |
Definition at line 6948 of file Raster.cpp.
References KKB::Point::Col(), KKB::Point::Row(), and SetPixelValue().
Referenced by KKB::Chart::CreateRaster().
| void Raster::DrawFatLine | ( | Point | startPoint, |
| Point | endPoint, | ||
| PixelValue | pv, | ||
| float | alpha | ||
| ) |
Definition at line 6636 of file Raster.cpp.
References KKB::Point::Col(), height, PaintFatPoint(), KKB::Point::Row(), and width.
| void Raster::DrawGrid | ( | float | pixelsPerMinor, |
| kkuint32 | minorsPerMajor, | ||
| const PixelValue & | hashColor, | ||
| const PixelValue & | gridColor | ||
| ) |
Definition at line 1543 of file Raster.cpp.
References DrawLine(), FillRectangle(), height, and width.
Definition at line 6239 of file Raster.cpp.
References DrawLine().
| void Raster::DrawLine | ( | kkint32 | bpRow, |
| kkint32 | bpCol, | ||
| kkint32 | epRow, | ||
| kkint32 | epCol, | ||
| uchar | pixelVal | ||
| ) |
Definition at line 6253 of file Raster.cpp.
References DrawLine().
Referenced by KKB::Histogram::CreateGraph(), and DrawLine().
Definition at line 6794 of file Raster.cpp.
References KKB::Point::Col(), DrawLine(), and KKB::Point::Row().
| void Raster::DrawLine | ( | const Point & | beginPoint, |
| const Point & | endPoint, | ||
| const PixelValue & | pixelVal | ||
| ) |
Definition at line 6807 of file Raster.cpp.
References KKB::Point::Col(), DrawLine(), and KKB::Point::Row().
Referenced by KKB::Chart::CreateRaster(), and DrawConnectedPointList().
| void Raster::DrawLine | ( | kkint32 | bpRow, |
| kkint32 | bpCol, | ||
| kkint32 | epRow, | ||
| kkint32 | epCol, | ||
| uchar | r, | ||
| uchar | g, | ||
| uchar | b | ||
| ) |
Definition at line 6264 of file Raster.cpp.
References blue, color, green, height, red, and width.
Referenced by DrawLine().
| void Raster::DrawLine | ( | kkint32 | bpRow, |
| kkint32 | bpCol, | ||
| kkint32 | epRow, | ||
| kkint32 | epCol, | ||
| uchar | r, | ||
| uchar | g, | ||
| uchar | b, | ||
| float | alpha | ||
| ) |
Definition at line 6479 of file Raster.cpp.
References blue, color, green, height, MergeAlpfaBeta(), red, and width.
Referenced by DrawLine().
| void Raster::DrawLine | ( | kkint32 | bpRow, |
| kkint32 | bpCol, | ||
| kkint32 | epRow, | ||
| kkint32 | epCol, | ||
| PixelValue | pixelVal | ||
| ) |
Definition at line 6771 of file Raster.cpp.
References KKB::PixelValue::b, DrawLine(), KKB::PixelValue::g, and KKB::PixelValue::r.
Referenced by KKB::Chart::CreateRaster(), and DrawLine().
| void Raster::DrawLine | ( | kkint32 | bpRow, |
| kkint32 | bpCol, | ||
| kkint32 | epRow, | ||
| kkint32 | epCol, | ||
| PixelValue | pixelVal, | ||
| float | alpha | ||
| ) |
Definition at line 6782 of file Raster.cpp.
References KKB::PixelValue::b, DrawLine(), KKB::PixelValue::g, and KKB::PixelValue::r.
Referenced by DrawGrid().
| void Raster::DrawPointList | ( | const PointList & | borderPixs, |
| const PixelValue & | pixelValue | ||
| ) |
Definition at line 6822 of file Raster.cpp.
References KKB::PixelValue::b, DrawPointList(), KKB::PixelValue::g, KKB::Point::Point(), and KKB::PixelValue::r.
| void Raster::DrawPointList | ( | Point | offset, |
| const PointList & | borderPixs, | ||
| const PixelValue & | pixelValue | ||
| ) |
Definition at line 6830 of file Raster.cpp.
References KKB::PixelValue::b, DrawPointList(), KKB::PixelValue::g, and KKB::PixelValue::r.
| void Raster::DrawPointList | ( | const PointList & | borderPixs, |
| uchar | redVal, | ||
| uchar | greenVal, | ||
| uchar | blueVal | ||
| ) |
Definition at line 6841 of file Raster.cpp.
References DrawPointList(), and KKB::Point::Point().
| void Raster::DrawPointList | ( | Point | offset, |
| const PointList & | borderPixs, | ||
| uchar | redVal, | ||
| uchar | greenVal, | ||
| uchar | blueVal | ||
| ) |
Definition at line 6853 of file Raster.cpp.
References blue, KKB::Point::Col(), color, green, height, red, KKB::Point::Row(), and width.
Referenced by DrawPointList().
| void Raster::Edge | ( | ) |
reduces image to edge pixels only.
Definition at line 3043 of file Raster.cpp.
References Edge(), and Raster().
| void Raster::Edge | ( | RasterPtr | dest | ) |
Definition at line 3052 of file Raster.cpp.
References backgroundPixelValue, foregroundPixelCount, foregroundPixelValue, Green(), GreenArea(), Height(), height, ReSize(), Width(), and width.
Referenced by KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector(), and Edge().
| void Raster::ErodeSpurs | ( | ) |
removes spurs from image.
Definition at line 8089 of file Raster.cpp.
References backgroundPixelValue, green, height, Raster(), and width.
Referenced by ThinContour().
| void Raster::Erosion | ( | ) |
Definition at line 2241 of file Raster.cpp.
References backgroundPixelTH, backgroundPixelValue, foregroundPixelCount, green, height, Raster(), and width.
Referenced by Closing(), and Opening().
| void Raster::Erosion | ( | MaskTypes | mask | ) |
Definition at line 2294 of file Raster.cpp.
References backgroundPixelValue, KKB::MorphOp::Biases(), foregroundPixelCount, Green(), green, height, KKB::MorphOp::MaskShapes(), Raster(), KKB::MorphOp::stSquare, and width.
Referenced by Closing(), DeriveImageLength(), and Opening().
| void Raster::Erosion | ( | MorphOp::StructureType | _structure, |
| kkuint16 | _structureSize, | ||
| kkint32 | _backgroundCountTH | ||
| ) |
Definition at line 2388 of file Raster.cpp.
References KKB::MorphOpStruct::BackgroundCountTH(), ForegroundPixelCount(), foregroundPixelCount, green, greenArea, KKB::MorphOpErosion::MorphOpErosion(), and KKB::MorphOpErosion::PerformOperation().
| void Raster::Erosion | ( | RasterPtr | dest | ) | const |
Place into destination a eroded version of this instances image.
Definition at line 2411 of file Raster.cpp.
References backgroundPixelTH, foregroundPixelCount, Green(), green, GreenArea(), greenArea, Height(), height, ReSize(), TotPixels(), Width(), and width.
Referenced by KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector().
Definition at line 2514 of file Raster.cpp.
References foregroundPixelCount, Green(), green, GreenArea(), Height(), height, ReSize(), Width(), and width.
Referenced by KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector().
| void Raster::ErosionBoundary | ( | MaskTypes | mask, |
| kkint32 | blobrowstart, | ||
| kkint32 | blobrowend, | ||
| kkint32 | blobcolstart, | ||
| kkint32 | blobcolend | ||
| ) |
Definition at line 2787 of file Raster.cpp.
References backgroundPixelValue, KKB::MorphOp::Biases(), foregroundPixelCount, Green(), green, height, KKB::MorphOp::MaskShapes(), Raster(), KKB::MorphOp::stSquare, and width.
Definition at line 2558 of file Raster.cpp.
References backgroundPixelValue, KKB::MorphOp::Biases(), foregroundPixelCount, Green(), green, KKB::MorphOp::MaskShapes(), Raster(), and KKB::MorphOp::stSquare.
Definition at line 2671 of file Raster.cpp.
References backgroundPixelValue, KKB::MorphOp::Biases(), foregroundPixelCount, Green(), green, KKB::MorphOp::MaskShapes(), Raster(), and KKB::MorphOp::stSquare.
Extracts a specified blob from this image; useful to extract individual detected blobs.
The 'ExtractBlobs' method needs to have been performed on this instance first. You would use this method after calling 'ExtractBlobs'. The extracted image will be of the same dimensions as the original image except it will extract the pixels that belong to the specified blob only.
Definition at line 3761 of file Raster.cpp.
References AllocateARasterInstance(), blobIds, blue, KKB::Blob::colLeft, color, KKB::Blob::colRight, green, height, KKB::Blob::id, red, KKB::Blob::rowBot, KKB::Blob::rowTop, and width.
Extracts a specified blob from this image into a tightly bounded image.
Similar to 'ExtractABlob' except that the returned image will have the dimension necessary to contain the specified blob with the specified number of padded row and columns.
Definition at line 3722 of file Raster.cpp.
References AllocateARasterInstance(), blobIds, blue, KKB::Blob::colLeft, color, KKB::Blob::colRight, green, KKB::Blob::Height(), KKB::Blob::id, red, KKB::Blob::rowBot, KKB::Blob::rowTop, and KKB::Blob::Width().
| BlobListPtr Raster::ExtractBlobs | ( | kkint32 | dist | ) |
Will extract a list of connected components from this instance.
Will perform a connected component analysis and label each individual blob. A list of blob descriptors will be returned. These blob descriptors can then be used to access individual blobs. See 'ExtractABlob' for an example on how to use this method. The 'ForegroundPixel' method is used to determine if a given pixel is foreground or background.
| [in] | dist | The distance in pixels that two different pixel locations have to be for them to be considered connected. "dist = 1" would indicate that two pixels have to be directly connected. |
Definition at line 3200 of file Raster.cpp.
References blobIds, KKB::BlobList::BlobList(), KKB::KKStr::Concat(), green, height, KKB::Blob::Id(), KKB::Blob::id, KKB::KKException::KKException(), KKB::BlobList::LookUpByBlobId(), KKB::BlobList::MergeIntoSingleBlob(), KKB::BlobList::NewBlob(), KKB::Blob::pixelCount, and width.
Referenced by KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector(), ConnectedComponent(), and ReduceToMostCompleteBlob().
| RasterPtr Raster::ExtractChannel | ( | ColorChannels | channel | ) |
Will return a gray-scale image consisting of the specified color channel only.
Definition at line 7717 of file Raster.cpp.
References AllocateARasterInstance(), BlueArea(), color, KKB::KKStr::Concat(), FileName(), KKB::Green, GreenArea(), height, KKB::KKStr::operator+(), KKB::osGetRootName(), KKB::Red, RedArea(), and width.
Referenced by SegmentImage().
Extracts the pixel locations where the 'mask' images pixel location is a foreground pixel.
Definition at line 7759 of file Raster.cpp.
References BackgroundPixelTH(), BackgroundPixelValue(), Blue(), blue, color, ForegroundPixelValue(), Green(), green, height, Raster(), Red(), red, and width.
| RasterPtr Raster::FastFourier | ( | ) | const |
Definition at line 5016 of file Raster.cpp.
References fourierMagArea, greenArea, height, Raster(), totPixels, and width.
| RasterPtr Raster::FastFourierKK | ( | ) | const |
Definition at line 4939 of file Raster.cpp.
References AllocateARasterInstance(), fourierMagArea, greenArea, height, totPixels, and width.
|
inline |
|
inline |
Definition at line 346 of file Raster.h.
References fileName, and KKB::KKStr::operator=().
Referenced by ExtractChannel().
| void Raster::FillBlob | ( | RasterPtr | origImage, |
| BlobPtr | blob, | ||
| PixelValue | color | ||
| ) |
Will paint the specified blob with the specified color.
| [in] | origImage | The image where the blob was extracted from. |
| [in] | blob | The specific blob that you want to fill in/ paint. |
| [in] | color | that is to be filled in. |
Definition at line 9885 of file Raster.cpp.
References blobIds, Height(), height, KKB::Blob::Id(), SetPixelValue(), Width(), and width.
| void Raster::FillHole | ( | ) |
Definition at line 2047 of file Raster.cpp.
References foregroundPixelCount, foregroundPixelValue, green, height, Raster(), and width.
Referenced by CalcAreaAndIntensityFeatures(), CalcAreaAndIntensityHistogramWhite(), and DeriveImageLength().
| void Raster::FillHole | ( | RasterPtr | mask | ) |
Fills holes in the image using the 'mask' raster as a work area.
Any pixel that is not a foreground pixels that has not path by a cross structure to the edge of the image will be painted with the foreground pixel value. The 'mask' raster instance provided will be used as a temporary work area. If its dimensions are not the same as this instance it will e resized.
Definition at line 2107 of file Raster.cpp.
References backgroundPixelTH, foregroundPixelCount, foregroundPixelValue, Green(), GreenArea(), Height(), height, ReSize(), totPixels, Width(), and width.
Referenced by KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector().
| void Raster::FillRectangle | ( | kkint32 | tlRow, |
| kkint32 | tlCol, | ||
| kkint32 | brRow, | ||
| kkint32 | brCol, | ||
| const PixelValue & | fillColor | ||
| ) |
Definition at line 1947 of file Raster.cpp.
References KKB::PixelValue::b, blue, color, KKB::PixelValue::g, green, KKB::PixelValue::r, and red.
Referenced by DrawGrid().
|
staticprotected |
Definition at line 93 of file Raster.cpp.
References KKB::GoalKeeper::Destroy(), and goalKeeper.
| void Raster::FindBoundingBox | ( | kkint32 & | tlRow, |
| kkint32 & | tlCol, | ||
| kkint32 & | brRow, | ||
| kkint32 & | brCol | ||
| ) | const |
Definition at line 5823 of file Raster.cpp.
References green, height, and width.
Referenced by DeriveImageLength(), ThinContour(), and TightlyBounded().
Returns an image that reflects the differences between this image and the image supplied in the parameter.
Each pixel will represent the magnitude of the difference between the two raster instances for that pixel location. If there are no differences than a raster of all 0's will be returned. If dimensions are different then the largest dimensions will be sued.
| [in] | r | Raster to compare with. |
Definition at line 5924 of file Raster.cpp.
References Blue(), blue, color, Green(), green, Raster(), Red(), and red.
| void Raster::FollowContour | ( | float | countourFreq[5] | ) | const |
Definition at line 5357 of file Raster.cpp.
References KKB::MovDir::col, green, height, movements, KKB::MovDir::row, and width.
Definition at line 1054 of file Raster.cpp.
References green.
Referenced by AreThereEdgePixels().
|
inline |
Definition at line 317 of file Raster.h.
References foregroundPixelCount.
Referenced by KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector(), Dilation(), Erosion(), KKB::MorphOpDilation::PerformOperation(), and Raster().
|
inline |
Definition at line 344 of file Raster.h.
References foregroundPixelCount.
Referenced by KKB::MorphOpBinarize::PerformOperation(), KKB::MorphOpDilation::PerformOperation(), KKB::MorphOpErosion::PerformOperation(), and ReduceByEvenMultiple().
|
inline |
Definition at line 337 of file Raster.h.
References foregroundPixelValue.
Referenced by ExtractUsingMask(), KKB::MorphOpStretcher::PerformOperation(), and ToColor().
|
inline |
Definition at line 345 of file Raster.h.
References foregroundPixelValue.
Referenced by ExtractUsingMask(), KKB::MorphOpStretcher::PerformOperation(), and SegmentImage().
| void Raster::FourierExtractFeatures | ( | float | fourierFeatures[5] | ) | const |
Definition at line 5216 of file Raster.cpp.
References fourierMag, fourierMagArea, height, KKB::osWaitForEnter(), and width.
|
inline |
|
static |
Creates a new instance of Raster object from zLib compressed data.
Performs the inverse operation of Raster::ToCompressor.
| [in] | compressedBuff | Pointer to buffer area containing compressed data originally created by 'ToCompressor'. |
| [in] | compressedBuffLen | Length in bytes of 'compressedBuff'. |
Definition at line 9228 of file Raster.cpp.
References BlueArea(), KKB::Compressor::Decompress(), GreenArea(), Raster(), and RedArea().
|
static |
Creates a raster from a compressedBuff created by 'SimpleCompression'.
Definition at line 9035 of file Raster.cpp.
References KKB::SimpleCompressor::Decompress(), GreenArea(), and Raster().
Definition at line 1289 of file Raster.cpp.
References green, height, and width.
Referenced by Padded(), Rotate(), and SegmentImage().
Definition at line 1308 of file Raster.cpp.
References blue, color, green, height, red, and width.
Referenced by GetPixelValue().
| void Raster::GetPixelValue | ( | kkint32 | row, |
| kkint32 | col, | ||
| PixelValue & | p | ||
| ) | const |
Definition at line 1343 of file Raster.cpp.
References KKB::PixelValue::b, KKB::PixelValue::g, GetPixelValue(), and KKB::PixelValue::r.
Referenced by CreateFromOrginalImageWithSpecifidBlobsOnly(), and ThresholdInHSI().
| uchar Raster::GetPixelValue | ( | ColorChannels | channel, |
| kkint32 | row, | ||
| kkint32 | col | ||
| ) | const |
Definition at line 1356 of file Raster.cpp.
References blue, color, KKB::Green, green, height, KKB::Red, red, and width.
| uchar ** Raster::GetSubSet | ( | uchar ** | _src, |
| kkint32 | _row, | ||
| kkint32 | _col, | ||
| kkint32 | _height, | ||
| kkint32 | _width | ||
| ) | const |
Returns back a two dimension array that is a copy of the specified region in the image.
The caller will take ownership of the two dimensional array created.
Definition at line 4703 of file Raster.cpp.
Referenced by Raster().
|
inline |
returns a pointer to two dimensional array for 'Green' color channel; note this is the same as 'Rows'.
Definition at line 327 of file Raster.h.
References green.
Referenced by CreateErodedImage(), CreateSmoothedMediumImage(), CreateSmoothImage(), DeriveImageLength(), Dilation(), Edge(), Erosion(), ErosionBoundary(), ErosionChanged(), ErosionChanged1(), ExtractUsingMask(), FillHole(), FindMagnitudeDifferences(), KKB::MorphOpBinarize::PerformOperation(), KKB::MorphOpDilation::PerformOperation(), KKB::MorphOpErosion::PerformOperation(), KKB::MorphOpStretcher::PerformOperation(), Raster(), ReduceByEvenMultiple(), KKB::SaveImageInverted(), KKB::MorphOp::SetSrcRaster(), ThinContour(), TightlyBounded(), and Transpose().
|
inline |
Definition at line 330 of file Raster.h.
References greenArea.
Referenced by CalcAreaAndIntensityFeatures(), KKB::SegmentorOTSU::ClassAverageRGB(), CreateColorImageFromLabels(), CreateGrayScale(), CreateGrayScaleKLT(), CreateGrayScaleKLTOnMaskedArea(), KKB::RasterList::CreateSmoothedFrame(), Dilation(), Edge(), Erosion(), ExtractChannel(), FillHole(), FromCompressor(), FromSimpleCompression(), KKB::SegmentorOTSU::GetClassClosestToTargetColor(), KKB::MorphOpMaskExclude::PerformOperation(), ReduceByFactor(), KKB::SaveImagePGM(), KKB::SaveImagePNG(), KKB::SaveImagePPM(), KKB::SegmentorOTSU::SegmentImage(), KKB::SegmentorOTSU::SegmentMaskedImage(), KKB::MorphOp::SetSrcRaster(), and ToColor().
| RasterPtr Raster::HalfSize | ( | ) |
Definition at line 7326 of file Raster.cpp.
References AllocateARasterInstance(), KKB::Blue, blue, color, green, height, KKB::Red, red, SetPixelValue(), and width.
|
inline |
Definition at line 319 of file Raster.h.
References height.
Referenced by KKB::BmpImage::BmpImage(), KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector(), KKB::ContourFollower::ContourFollower(), CreateGrayScaleKLT(), CreateGrayScaleKLTOnMaskedArea(), KKB::RasterList::CreateSmoothedFrame(), Dilation(), KKB::DisplayImage(), Edge(), Erosion(), FillBlob(), FillHole(), KKB::ConvexHull::Filter(), KKB::MorphOpBinarize::PerformOperation(), Raster(), Rotate(), KKB::SaveImageInverted(), KKB::SaveImagePGM(), KKB::SaveImagePNG(), KKB::SaveImagePPM(), KKB::SegmentorOTSU::SegmentImage(), SegmentImage(), KKB::SegmentorOTSU::SegmentMaskedImage(), KKB::MorphOp::SetSrcRaster(), and KKB::ConvexHull::Store().
| HistogramPtr Raster::Histogram | ( | ColorChannels | channel | ) | const |
Definition at line 6110 of file Raster.cpp.
References KKB::Blue, blueArea, color, KKB::ColorChannelToKKStr(), KKB::KKStr::Concat(), KKB::Green, greenArea, KKB::Histogram::Histogram(), KKB::Histogram::Increment(), KKB::KKException::KKException(), KKB::KKStr::KKStr(), KKB::Red, redArea, and totPixels.
Referenced by HistogramImage().
| RasterPtr Raster::HistogramEqualizedImage | ( | ) | const |
Definition at line 6143 of file Raster.cpp.
References KKB::Histogram::Equalized(), HistogramEqualizedImage(), and HistogramGrayscale().
| RasterPtr Raster::HistogramEqualizedImage | ( | HistogramPtr | equalizedHistogram | ) | const |
Definition at line 6159 of file Raster.cpp.
References AllocateARasterInstance(), KKB::Histogram::EqualizedMapTable(), green, height, KKB::Histogram::NumOfBuckets(), KKB::osWaitForEnter(), Rows(), and width.
Referenced by HistogramEqualizedImage().
| HistogramPtr Raster::HistogramGrayscale | ( | ) | const |
Definition at line 6091 of file Raster.cpp.
References green, height, KKB::Histogram::Histogram(), KKB::Histogram::Increment(), and width.
Referenced by HistogramEqualizedImage(), HistogramGrayscaleImage(), and SegmentImage().
| RasterPtr Raster::HistogramGrayscaleImage | ( | ) | const |
Definition at line 6203 of file Raster.cpp.
References color, KKB::Histogram::CreateGraph(), CreateGrayScale(), and HistogramGrayscale().
| RasterPtr Raster::HistogramImage | ( | ColorChannels | channel | ) | const |
Definition at line 6227 of file Raster.cpp.
References KKB::Histogram::CreateGraph(), and Histogram().
| void Raster::Initialize | ( | kkint32 | _height, |
| kkint32 | _width, | ||
| uchar * | _Data, | ||
| uchar ** | _Rows, | ||
| bool | _takeOwnership | ||
| ) |
Sets an existing instance to specific Raster Data of a image.
This instance of 'Raster' can take ownership of '_Data' and '_Rows' depending on '_takeOwnership'.
| [in] | _height | Image Height. |
| [in] | _width | Image Width. |
| [in] | _Data | The raster data that is to be used by this instance of 'Raster'; it should be continuous data, Row Major, of length (_height * _width). |
| [in] | _Rows | Two dimensional assessors to '_Data'; each entry will point to the respective row in '_Data' that contains that row. |
| [in] | _takeOwnership | Indicates whether this instance of 'Raster' will own the memory pointed to by '_Data' and '_Rows'; if set to true will delete them in the destructor. |
Definition at line 917 of file Raster.cpp.
References color, green, greenArea, height, KKB::KKException::KKException(), totPixels, weOwnRasterData, and width.
| void Raster::Initialize | ( | kkint32 | _height, |
| kkint32 | _width, | ||
| uchar * | _redArea, | ||
| uchar ** | _red, | ||
| uchar * | _greenArea, | ||
| uchar ** | _green, | ||
| uchar * | _blueArea, | ||
| uchar ** | _blue, | ||
| bool | _takeOwnership | ||
| ) |
Sets an existing instance to specific Raster Data of a image.
This instance of 'Raster' can take ownership of '_Data' and '_Rows' depending on '_takeOwnership'. The parameters '_redArea', '_greenArea', and '_blueArea' will point to raster data that represents their respective color channels. This data will be 'Row-Major' and of length '(_height * _width) bytes. For each color channel there will be a corresponding 2d accessors matrix '_red', '_green', and '_blue' where each entry in these 2d arrays will point to their respective rows in the color channel. The '_takeOwnership' parameters indicates whether this instance of 'Raster' will own these memory locations. '
| [in] | _height | Image Height. |
| [in] | _width | Image Width. |
| [in] | _redArea | The raster data representing the red channel. |
| [in] | _red | Two dimensional accessor to '_redArea'. |
| [in] | _greenArea | The raster data representing the green channel. |
| [in] | _green | Two dimensional accessor to '_greenArea'. |
| [in] | _blueArea | The raster data representing the blue channel. |
| [in] | _blue | Two dimensional accessor to '_blueArea'. |
| [in] | _takeOwnership | Indicates whether this instance of 'Raster' will own the supplied raster data. |
Definition at line 944 of file Raster.cpp.
References blue, blueArea, color, green, greenArea, height, KKB::KKException::KKException(), red, redArea, totPixels, weOwnRasterData, and width.
|
staticprotected |
Definition at line 79 of file Raster.cpp.
References KKB::GoalKeeper::Create(), KKB::GoalKeeper::EndBlock(), goalKeeper, rasterInitialized, and KKB::GoalKeeper::StartBlock().
|
inline |
|
inline |
Definition at line 347 of file Raster.h.
References maxPixVal.
Referenced by ReduceByEvenMultiple().
| kkint32 Raster::MemoryConsumedEstimated | ( | ) | const |
Definition at line 864 of file Raster.cpp.
References blobIds, color, fileName, fourierMagArea, height, KKB::KKStr::MemoryConsumedEstimated(), and totPixels.
Referenced by KKB::RasterBuffer::AddRaster().
| void Raster::Opening | ( | ) |
| void Raster::Opening | ( | MaskTypes | mask | ) |
Definition at line 2952 of file Raster.cpp.
References Dilation(), and Erosion().
Referenced by KKB::MorphOpMaskExclude::PerformOperation().
Definition at line 9308 of file Raster.cpp.
References AllocateARasterInstance(), GetPixelValue(), height, SetPixelValue(), and width.
| void Raster::PaintFatPoint | ( | kkint32 | row, |
| kkint32 | col, | ||
| const PixelValue | pv, | ||
| float | alpha | ||
| ) |
Definition at line 6453 of file Raster.cpp.
References PaintPoint().
Referenced by DrawFatLine().
| void Raster::PaintPoint | ( | kkint32 | row, |
| kkint32 | col, | ||
| const PixelValue & | pv, | ||
| float | alpha | ||
| ) |
Definition at line 6432 of file Raster.cpp.
References color, height, and width.
Referenced by PaintFatPoint().
|
static |
Definition at line 153 of file Raster.cpp.
|
inline |
returns a pointer to two dimensional array for 'Red' color channel.
Definition at line 326 of file Raster.h.
References red.
Referenced by KKB::BmpImage::BmpImage(), CreateSmoothedMediumImage(), CreateSmoothImage(), ExtractUsingMask(), FindMagnitudeDifferences(), KKB::MorphOpStretcher::PerformOperation(), Raster(), KKB::SaveImageInverted(), KKB::MorphOp::SetSrcRaster(), TightlyBounded(), and Transpose().
|
inline |
Definition at line 329 of file Raster.h.
References redArea.
Referenced by KKB::SegmentorOTSU::ClassAverageRGB(), CreateColorImageFromLabels(), KKB::RasterList::CreateSmoothedFrame(), ExtractChannel(), FromCompressor(), KKB::SegmentorOTSU::GetClassClosestToTargetColor(), KKB::MorphOpMaskExclude::PerformOperation(), KKB::ReadImagePPM(), ReduceByFactor(), KKB::SaveImagePNG(), KKB::SaveImagePPM(), KKB::MorphOp::SetSrcRaster(), and ToColor().
Definition at line 7361 of file Raster.cpp.
References AllocateARasterInstance(), ForegroundPixelCount(), Green(), green, height, MaxPixVal(), and width.
| RasterPtr Raster::ReduceByFactor | ( | float | factor | ) | const |
Definition at line 7473 of file Raster.cpp.
References AllocateARasterInstance(), blue, BlueArea(), color, green, GreenArea(), height, red, RedArea(), and width.
| void Raster::ReduceToMostCompleteBlob | ( | uchar | connectedComponentDist | ) |
Locates most complete blob; that is the one with the largest (Height x Width); and removes all other images from the blob.
Definition at line 3522 of file Raster.cpp.
References blobIds, ExtractBlobs(), green, greenArea, height, KKB::Blob::Id(), KKB::BlobList::LocateMostComplete(), totPixels, and width.
|
staticprotected |
Definition at line 129 of file Raster.cpp.
Referenced by ~Raster().
Lets you resize the raster dimensions; old image data will be lost.
Definition at line 898 of file Raster.cpp.
References color, height, and width.
Referenced by Dilation(), Edge(), Erosion(), FillHole(), and KKB::ConvexHull::Filter().
| RasterPtr Raster::ReversedImage | ( | ) |
Definition at line 1177 of file Raster.cpp.
References AllocateARasterInstance(), and ReverseImage().
| void Raster::ReverseImage | ( | ) |
Definition at line 1198 of file Raster.cpp.
References backgroundPixelTH, backgroundPixelValue, blueArea, color, foregroundPixelValue, greenArea, redArea, and totPixels.
Referenced by KKB::Histogram::CreateGraph(), KKB::ReadImage(), and ReversedImage().
| RasterPtr Raster::Rotate | ( | float | turnAngle | ) |
Definition at line 5732 of file Raster.cpp.
References AllocateARasterInstance(), GetPixelValue(), Height(), height, SetPixelValue(), Width(), and width.
Referenced by DeriveImageLength().
| Point Raster::RotateDerivePreRotatedPoint | ( | kkint32 | height, |
| kkint32 | width, | ||
| Point & | rotatedPoint, | ||
| float | turnAngle | ||
| ) | const |
Definition at line 5792 of file Raster.cpp.
References KKB::Point::Col(), KKB::Point::Point(), and KKB::Point::Row().
Referenced by DeriveImageLength().
|
inline |
returns a pointer to a 2D array that allows the caller to access the raster data by row and column.
Definition at line 321 of file Raster.h.
References green.
Referenced by KKB::BmpImage::BmpImage(), KKB::ContourFollower::ContourFollower(), HistogramEqualizedImage(), SegmentImage(), and KKB::ConvexHull::Store().
| RasterPtr Raster::SegmentImage | ( | bool | save = false | ) |
Definition at line 7824 of file Raster.cpp.
References AllocateARasterInstance(), KKB::Histogram::AverageOfMaxBucketInRange(), BackgroundPixelValue(), KKB::Blue, Color(), KKB::KKStr::Concat(), CreateGrayScale(), CreateSmoothImage(), ExtractChannel(), fileName, ForegroundPixelValue(), GetPixelValue(), KKB::Green, Height(), HistogramGrayscale(), KKB::KKStr::operator+(), KKB::operator+(), KKB::osAddLastSlash(), KKB::osCreateDirectoryPath(), KKB::osGetRootName(), KKB::Red, Rows(), KKB::Histogram::Save(), KKB::Histogram::SaveGraphImage(), KKB::SaveImage(), SetPixelValue(), KKB::Histogram::Smooth(), KKB::StrFormatInt(), and Width().
| void Raster::SetPixelValue | ( | const Point & | point, |
| const PixelValue & | pixVal | ||
| ) |
Definition at line 1440 of file Raster.cpp.
References KKB::Point::Col(), KKB::Point::Row(), and SetPixelValue().
Referenced by DrawDot().
Definition at line 1390 of file Raster.cpp.
References green, height, and width.
Referenced by KKB::Histogram::CreateGraph(), KKB::ConvexHull::Draw(), HalfSize(), Padded(), KKB::ReadImagePGM(), Rotate(), and SegmentImage().
| void Raster::SetPixelValue | ( | kkint32 | row, |
| kkint32 | col, | ||
| const PixelValue & | pixVal | ||
| ) |
Definition at line 1413 of file Raster.cpp.
References KKB::PixelValue::b, blue, color, KKB::PixelValue::g, green, height, KKB::PixelValue::r, red, and width.
Referenced by CreateColor(), CreateColorWithBlobsLabeldByColor(), CreateFromOrginalImageWithSpecifidBlobsOnly(), DrawCircle(), DrawDot(), FillBlob(), SetPixelValue(), and ThresholdInHSI().
| void Raster::SetPixelValue | ( | ColorChannels | channel, |
| kkint32 | row, | ||
| kkint32 | col, | ||
| uchar | pixVal | ||
| ) |
Definition at line 1479 of file Raster.cpp.
References blue, color, KKB::Green, green, height, KKB::Red, red, and width.
Referenced by HalfSize().
Compresses the image in Raster using a simple Run length algorithm and returns a pointer to compressed data.
Using a simple run length compression algorithm compress the data in Raster and return a pointer to the resultant buffer. The caller will take ownership of the compressed data and be responsible for deleting it. The function 'FromCompressor' can take the compressed data with its length and recreate the original Raster object.
| buffLen | [in,out] Length of the compressed buffer returned. |
Definition at line 9016 of file Raster.cpp.
References KKB::SimpleCompressor::Add16BitInt(), KKB::SimpleCompressor::AddByte(), KKB::SimpleCompressor::CreateCompressedBuffer(), greenArea, height, KKB::SimpleCompressor::SimpleCompressor(), and width.
| RasterPtr Raster::SobelEdgeDetector | ( | ) | const |
Definition at line 7696 of file Raster.cpp.
References KKB::MorphOpSobel::PerformOperation().
| RasterListPtr Raster::SplitImageIntoEqualParts | ( | kkint32 | numColSplits, |
| kkint32 | numRowSplits | ||
| ) | const |
Definition at line 8025 of file Raster.cpp.
References height, Raster(), KKB::RasterList::RasterList(), and width.
| RasterPtr Raster::StreatchImage | ( | float | rowFactor, |
| float | colFactor | ||
| ) | const |
Definition at line 1187 of file Raster.cpp.
References KKB::MorphOpStretcher::MorphOpStretcher(), and KKB::MorphOpStretcher::PerformOperation().
| RasterPtr Raster::SwapQuadrants | ( | ) | const |
summary> Thresholds image in HSI space.
remarks> Returns an image with only the pixels that are within a specified distance in HSI space to the supplied HSI parameters. All pixels that are not within the specified distance will be set to flagValue . /remarks> param name='thresholdH'> Hue in radians(0.0 thru 2Pie).
param name='thresholdS'> Saturation (0.0 thru 1.0).
param name='thresholdI'> Intensity (0.0 thru 1.0).
param name='distance'> Euclidean Distance (0.0 thru 1.0) that a pixel must be within in HSI space to be included.
param name='flagValue'> PixelValue to set for pixels that are NOT within 'distance' of threshold.
returns> A image where pixels that are within the threshold will retain their original pixel values and the ones that are not will be set to 'flagValue'.
Definition at line 5165 of file Raster.cpp.
References AllocateARasterInstance(), blue, fourierMag, green, height, red, and width.
| void Raster::TakeOwnershipOfAnotherRastersData | ( | Raster & | otherRaster | ) |
Will take ownership of 'otherRaster' raster dynamically allocated data and copy its non dynamically allocated data.
Dynamic structures for Fourier Transform and BlobId's will be set to NULL on the 'otherRaster' instance.
Definition at line 978 of file Raster.cpp.
References backgroundPixelTH, backgroundPixelValue, blobIds, blue, blueArea, centroidCol, centroidRow, color, divisor, fileName, foregroundPixelCount, foregroundPixelValue, fourierMag, fourierMagArea, green, greenArea, height, maxPixVal, KKB::KKStr::operator=(), red, redArea, title, totPixels, weOwnRasterData, and width.
| RasterPtr Raster::ThinContour | ( | ) | const |
Definition at line 8187 of file Raster.cpp.
References AllocateARasterInstance(), backgroundPixelValue, KKB::Point::Col(), ConnectedComponent(), ErodeSpurs(), FindBoundingBox(), Green(), k_ThinningCheckTransitions(), k_ThinningStep1cdTests(), k_ThinningStep2cdTests(), KKB::Point::Point(), KKB::PointList::PointList(), KKB::Point::Row(), and width.
Referenced by KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector().
| RasterPtr Raster::ThresholdInHSI | ( | float | thresholdH, |
| float | thresholdS, | ||
| float | thresholdI, | ||
| float | distance, | ||
| const PixelValue & | flagValue | ||
| ) |
Definition at line 9455 of file Raster.cpp.
References AllocateARasterInstance(), GetPixelValue(), height, KKB::PixelValue::PixelValue(), SetPixelValue(), KKB::PixelValue::ToHSI(), and width.
Returns the smallest image that contains all the foreground pixels plus column and row padding specified by 'borderPixels'.
Definition at line 8619 of file Raster.cpp.
References AllocateARasterInstance(), Blue(), blue, color, FindBoundingBox(), Green(), green, Red(), and red.
|
inline |
|
inline |
| RasterPtr Raster::ToColor | ( | ) | const |
Definition at line 8696 of file Raster.cpp.
References AllocateARasterInstance(), BlueArea(), color, ForegroundPixelValue(), GreenArea(), greenArea, height, RedArea(), totPixels, and width.
Compresses the image in Raster using zlib library and returns a pointer to compressed data.
Will first write Rater data to a buffer that will be compressed by the Compressor class using the zlib library.
| [out] | compressedBuffLen | Length of the compressed buffer returned. |
Definition at line 9172 of file Raster.cpp.
References blueArea, color, KKB::Compressor::CreateCompressedBuffer(), greenArea, height, redArea, totPixels, and width.
| kkint32 Raster::TotalBackgroundPixels | ( | ) | const |
Definition at line 1086 of file Raster.cpp.
References backgroundPixelTH, greenArea, and totPixels.
Referenced by CreateGrayScaleKLTOnMaskedArea(), and KKB::SegmentorOTSU::SegmentMaskedImage().
|
inline |
The total number of pixels (Height * Width).
Definition at line 323 of file Raster.h.
References totPixels.
Referenced by KKB::SegmentorOTSU::ClassAverageRGB(), Erosion(), KKB::SegmentorOTSU::GetClassClosestToTargetColor(), KKB::SegmentorOTSU::SegmentImage(), and KKB::SegmentorOTSU::SegmentMaskedImage().
| RasterPtr Raster::Transpose | ( | ) | const |
|
inline |
| void Raster::WhiteOutBackground | ( | ) |
Sets all pixels that are in the Background Range ov values to BackgroundPixelValue.
Definition at line 9814 of file Raster.cpp.
References BackgroundPixel(), backgroundPixelValue, blue, color, green, height, red, and width.
|
inline |
Definition at line 324 of file Raster.h.
References width.
Referenced by KKB::BmpImage::BmpImage(), KKMLL::GrayScaleImagesFVProducer::ComputeFeatureVector(), KKB::ContourFollower::ContourFollower(), CreateGrayScaleKLT(), CreateGrayScaleKLTOnMaskedArea(), KKB::RasterList::CreateSmoothedFrame(), Dilation(), KKB::DisplayImage(), Edge(), Erosion(), FillBlob(), FillHole(), KKB::ConvexHull::Filter(), KKB::MorphOpBinarize::PerformOperation(), Raster(), Rotate(), KKB::SaveImageInverted(), KKB::SaveImagePGM(), KKB::SaveImagePNG(), KKB::SaveImagePPM(), KKB::SegmentorOTSU::SegmentImage(), SegmentImage(), KKB::SegmentorOTSU::SegmentMaskedImage(), KKB::MorphOp::SetSrcRaster(), and KKB::ConvexHull::Store().
|
protected |
Threshold used to split Background and foreground pixel/
Definition at line 1325 of file Raster.h.
Referenced by BackgroundPixel(), BackgroundPixelTH(), CentralMoments(), CentralMomentsWeighted(), ComputeCentralMoments(), CreateGrayScaleKLTOnMaskedArea(), Dilation(), Erosion(), FillHole(), Raster(), ReverseImage(), TakeOwnershipOfAnotherRastersData(), and TotalBackgroundPixels().
|
protected |
Definition at line 1324 of file Raster.h.
Referenced by BackgroundPixel(), BackgroundPixelValue(), BandPass(), CreateErodedImage(), Edge(), ErodeSpurs(), Erosion(), ErosionBoundary(), ErosionChanged(), ErosionChanged1(), Raster(), ReverseImage(), TakeOwnershipOfAnotherRastersData(), ThinContour(), and WhiteOutBackground().
|
protected |
Used when searching for connected components
Definition at line 1326 of file Raster.h.
Referenced by BlobId(), ConnectedComponent(), ConnectedComponent8Conected(), CreateColorWithBlobsLabeldByColor(), CreateFromOrginalImageWithSpecifidBlobsOnly(), ExtractABlob(), ExtractABlobTightly(), ExtractBlobs(), FillBlob(), MemoryConsumedEstimated(), Raster(), ReduceToMostCompleteBlob(), and TakeOwnershipOfAnotherRastersData().
|
protected |
Definition at line 1354 of file Raster.h.
Referenced by Blue(), CreateGaussianSmoothedImage(), CreateSmoothImage(), DrawConnectedPointList(), DrawLine(), DrawPointList(), ExtractABlob(), ExtractABlobTightly(), ExtractUsingMask(), FillRectangle(), FindMagnitudeDifferences(), GetPixelValue(), HalfSize(), Initialize(), Raster(), ReduceByFactor(), SetPixelValue(), SwapQuadrants(), TakeOwnershipOfAnotherRastersData(), TightlyBounded(), Transpose(), and WhiteOutBackground().
|
protected |
Definition at line 1345 of file Raster.h.
Referenced by BlueArea(), CreateGrayScale(), CreateGrayScaleKLT(), CreateGrayScaleKLTOnMaskedArea(), Histogram(), Initialize(), Raster(), ReverseImage(), TakeOwnershipOfAnotherRastersData(), and ToCompressor().
|
mutableprotected |
Definition at line 1327 of file Raster.h.
Referenced by CalcCentroid(), CalcOrientationAndEigerRatio(), CentralMoments(), CentroidCol(), CentroidRow(), ComputeCentralMoments(), Raster(), and TakeOwnershipOfAnotherRastersData().
|
mutableprotected |
Definition at line 1328 of file Raster.h.
Referenced by CalcCentroid(), CalcOrientationAndEigerRatio(), CentralMoments(), CentroidCol(), CentroidRow(), ComputeCentralMoments(), Raster(), and TakeOwnershipOfAnotherRastersData().
|
protected |
Definition at line 1329 of file Raster.h.
Referenced by BandPass(), Color(), CreateColor(), CreateGaussianSmoothedImage(), CreateGrayScale(), CreateGrayScaleKLT(), CreateGrayScaleKLTOnMaskedArea(), CreateSmoothedMediumImage(), Dilation(), DrawConnectedPointList(), DrawLine(), DrawPointList(), ExtractABlob(), ExtractABlobTightly(), ExtractChannel(), ExtractUsingMask(), FillRectangle(), FindMagnitudeDifferences(), GetPixelValue(), HalfSize(), Histogram(), HistogramGrayscaleImage(), Initialize(), MemoryConsumedEstimated(), PaintPoint(), Raster(), ReduceByFactor(), ReSize(), ReverseImage(), SetPixelValue(), TakeOwnershipOfAnotherRastersData(), TightlyBounded(), ToColor(), ToCompressor(), Transpose(), and WhiteOutBackground().
|
protected |
Definition at line 1330 of file Raster.h.
Referenced by Divisor(), Raster(), and TakeOwnershipOfAnotherRastersData().
|
protected |
Definition at line 1331 of file Raster.h.
Referenced by FileName(), MemoryConsumedEstimated(), Raster(), SegmentImage(), and TakeOwnershipOfAnotherRastersData().
|
mutableprotected |
Definition at line 1332 of file Raster.h.
Referenced by CalcArea(), CalcAreaAndIntensityFeatures(), CalcAreaAndIntensityFeatures16(), CalcAreaAndIntensityHistogram(), CentralMoments(), CreateDilatedRaster(), CreateErodedImage(), CreatePaddedRaster(), Dilation(), Edge(), Erosion(), ErosionBoundary(), ErosionChanged(), ErosionChanged1(), FillHole(), ForegroundPixelCount(), Raster(), and TakeOwnershipOfAnotherRastersData().
|
protected |
Definition at line 1333 of file Raster.h.
Referenced by Edge(), FillHole(), ForegroundPixelValue(), Raster(), ReverseImage(), and TakeOwnershipOfAnotherRastersData().
|
protected |
Only used if image is result of a Fourier Transform
Definition at line 1334 of file Raster.h.
Referenced by FourierExtractFeatures(), Raster(), SwapQuadrants(), and TakeOwnershipOfAnotherRastersData().
|
protected |
Only used if image is result of a Fourier Transform
Definition at line 1335 of file Raster.h.
Referenced by FastFourier(), FastFourierKK(), FourierExtractFeatures(), FourierMagArea(), MemoryConsumedEstimated(), Raster(), and TakeOwnershipOfAnotherRastersData().
|
staticprotected |
Definition at line 1359 of file Raster.h.
Referenced by FinalCleanUp(), and Initialize().
|
protected |
Definition at line 1353 of file Raster.h.
Referenced by BackgroundPixel(), BandPass(), CalcArea(), CalcAreaAndIntensityHistogram(), CalcAreaAndIntensityHistogramWhite(), CalcCentroid(), CalcOrientationAndEigerRatio(), CalcWeightedArea(), CentralMoments(), CentralMomentsWeighted(), ComputeCentralMoments(), ConnectedComponent(), ConnectedComponent8Conected(), CreateColor(), CreateDilatedRaster(), CreateErodedImage(), CreateGaussianSmoothedImage(), CreatePaddedRaster(), CreateSmoothedMediumImage(), CreateSmoothImage(), Dilation(), DrawConnectedPointList(), DrawLine(), DrawPointList(), ErodeSpurs(), Erosion(), ErosionBoundary(), ErosionChanged(), ErosionChanged1(), ExtractABlob(), ExtractABlobTightly(), ExtractBlobs(), ExtractUsingMask(), FillHole(), FillRectangle(), FindBoundingBox(), FindMagnitudeDifferences(), FollowContour(), ForegroundPixel(), GetPixelValue(), Green(), HalfSize(), HistogramEqualizedImage(), HistogramGrayscale(), Initialize(), Raster(), ReduceByEvenMultiple(), ReduceByFactor(), ReduceToMostCompleteBlob(), Rows(), SetPixelValue(), SwapQuadrants(), TakeOwnershipOfAnotherRastersData(), TightlyBounded(), Transpose(), and WhiteOutBackground().
|
protected |
Definition at line 1344 of file Raster.h.
Referenced by BandPass(), CalcAreaAndIntensityFeatures(), CalcAreaAndIntensityFeatures16(), ConnectedComponent(), ConnectedComponent8Conected(), CreateColorImageFromLabels(), CreateGrayScale(), CreateGrayScaleKLT(), CreateGrayScaleKLTOnMaskedArea(), Dilation(), Erosion(), FastFourier(), FastFourierKK(), GreenArea(), Histogram(), Initialize(), Raster(), ReduceToMostCompleteBlob(), ReverseImage(), SimpleCompression(), TakeOwnershipOfAnotherRastersData(), ToColor(), ToCompressor(), and TotalBackgroundPixels().
|
protected |
Definition at line 1336 of file Raster.h.
Referenced by AreThereEdgePixels(), BandPass(), BlobId(), CalcArea(), CalcAreaAndIntensityHistogram(), CalcAreaAndIntensityHistogramWhite(), CalcCentroid(), CalcOrientationAndEigerRatio(), CalcWeightedArea(), CentralMoments(), CentralMomentsWeighted(), ComputeCentralMoments(), ConnectedComponent(), ConnectedComponent8Conected(), CreateColor(), CreateColorImageFromLabels(), CreateColorWithBlobsLabeldByColor(), CreateDilatedRaster(), CreateErodedImage(), CreateFromOrginalImageWithSpecifidBlobsOnly(), CreateGrayScale(), CreateGrayScaleKLTOnMaskedArea(), CreateSmoothedMediumImage(), DeriveImageLength(), Dilation(), DrawCircle(), DrawConnectedPointList(), DrawFatLine(), DrawGrid(), DrawLine(), DrawPointList(), Edge(), ErodeSpurs(), Erosion(), ErosionBoundary(), ExtractABlob(), ExtractBlobs(), ExtractChannel(), ExtractUsingMask(), FastFourier(), FastFourierKK(), FillBlob(), FillHole(), FindBoundingBox(), FollowContour(), FourierExtractFeatures(), GetPixelValue(), GetSubSet(), HalfSize(), Height(), HistogramEqualizedImage(), HistogramGrayscale(), Initialize(), MemoryConsumedEstimated(), Padded(), PaintPoint(), Raster(), ReduceByEvenMultiple(), ReduceByFactor(), ReduceToMostCompleteBlob(), ReSize(), Rotate(), SetPixelValue(), SimpleCompression(), SplitImageIntoEqualParts(), SwapQuadrants(), TakeOwnershipOfAnotherRastersData(), ThresholdInHSI(), ToColor(), ToCompressor(), Transpose(), and WhiteOutBackground().
|
mutableprotected |
Definition at line 1337 of file Raster.h.
Referenced by CalcArea(), CalcAreaAndIntensityFeatures(), CalcAreaAndIntensityFeatures16(), CalcAreaAndIntensityHistogram(), CalcAreaAndIntensityHistogramWhite(), MaxPixVal(), Raster(), and TakeOwnershipOfAnotherRastersData().
|
staticprotected |
Definition at line 1360 of file Raster.h.
Referenced by Initialize().
|
protected |
Definition at line 1352 of file Raster.h.
Referenced by CreateGaussianSmoothedImage(), CreateSmoothImage(), DrawConnectedPointList(), DrawLine(), DrawPointList(), ExtractABlob(), ExtractABlobTightly(), ExtractUsingMask(), FillRectangle(), FindMagnitudeDifferences(), GetPixelValue(), HalfSize(), Initialize(), Raster(), Red(), ReduceByFactor(), SetPixelValue(), SwapQuadrants(), TakeOwnershipOfAnotherRastersData(), TightlyBounded(), Transpose(), and WhiteOutBackground().
|
protected |
Definition at line 1343 of file Raster.h.
Referenced by CreateGrayScale(), CreateGrayScaleKLT(), CreateGrayScaleKLTOnMaskedArea(), Histogram(), Initialize(), Raster(), RedArea(), ReverseImage(), TakeOwnershipOfAnotherRastersData(), and ToCompressor().
|
protected |
Title such as 'Class" that can be assigned to an image.
Definition at line 1338 of file Raster.h.
Referenced by Raster(), TakeOwnershipOfAnotherRastersData(), and Title().
|
mutableprotected |
Definition at line 1339 of file Raster.h.
Referenced by BandPass(), CalcAreaAndIntensityFeatures(), CalcAreaAndIntensityFeatures16(), CentroidCol(), CentroidRow(), ConnectedComponent(), ConnectedComponent8Conected(), CreateColorImageFromLabels(), CreateGrayScale(), CreateGrayScaleKLT(), CreateGrayScaleKLTOnMaskedArea(), FastFourier(), FastFourierKK(), FillHole(), Histogram(), Initialize(), MemoryConsumedEstimated(), Raster(), ReduceToMostCompleteBlob(), ReverseImage(), TakeOwnershipOfAnotherRastersData(), ToColor(), ToCompressor(), TotalBackgroundPixels(), and TotPixels().
|
protected |
Definition at line 1340 of file Raster.h.
Referenced by Initialize(), Raster(), TakeOwnershipOfAnotherRastersData(), and WeOwnRasterData().
|
protected |
Definition at line 1341 of file Raster.h.
Referenced by AreThereEdgePixels(), BandPass(), BlobId(), CalcArea(), CalcAreaAndIntensityHistogram(), CalcAreaAndIntensityHistogramWhite(), CalcCentroid(), CalcOrientationAndEigerRatio(), CalcWeightedArea(), CentralMoments(), CentralMomentsWeighted(), ComputeCentralMoments(), ConnectedComponent(), ConnectedComponent8Conected(), CreateColor(), CreateColorImageFromLabels(), CreateColorWithBlobsLabeldByColor(), CreateDilatedRaster(), CreateErodedImage(), CreateFromOrginalImageWithSpecifidBlobsOnly(), CreateGrayScale(), CreateGrayScaleKLTOnMaskedArea(), CreateSmoothedMediumImage(), DeriveImageLength(), Dilation(), DrawCircle(), DrawConnectedPointList(), DrawFatLine(), DrawGrid(), DrawLine(), DrawPointList(), Edge(), ErodeSpurs(), Erosion(), ErosionBoundary(), ExtractABlob(), ExtractBlobs(), ExtractChannel(), ExtractUsingMask(), FastFourier(), FastFourierKK(), FillBlob(), FillHole(), FindBoundingBox(), FollowContour(), FourierExtractFeatures(), GetPixelValue(), GetSubSet(), HalfSize(), HistogramEqualizedImage(), HistogramGrayscale(), Initialize(), Padded(), PaintPoint(), Raster(), ReduceByEvenMultiple(), ReduceByFactor(), ReduceToMostCompleteBlob(), ReSize(), Rotate(), SetPixelValue(), SimpleCompression(), SplitImageIntoEqualParts(), SwapQuadrants(), TakeOwnershipOfAnotherRastersData(), ThinContour(), ThresholdInHSI(), ToColor(), ToCompressor(), Transpose(), WhiteOutBackground(), and Width().