segmentImage2 Class Reference

Collaboration diagram for segmentImage2:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 segmentImage2 (int imageType)
 create an object. Set true for RGB false for HSV
void SIsetRed (int val, int thresh, int skew)
 set the red value you are looking for with thresh error, and skew
void SIsetGreen (int val, int thresh, int skew)
 set the green value you are looking for with thresh error, and skew
void SIsetBlue (int val, int thresh, int skew)
 set the blue value you are looking for with thresh error, and skew
void SIsetHue (double val, double thresh, double skew)
 set the Hue value you are looking for with thresh error, and skew
void SIsetSat (double val, double thresh, double skew)
 set the Saturation value you are looking for with thresh error, and skew
void SIsetVal (double val, double thresh, double skew)
 set the Value (brightness) value you are looking for with thresh error
void SIsetFrame (int x1, int y1, int x2, int y2, int realX, int realY)
 set the region of the image to inspect
void SIsetHSVavg (long doAvg)
 set up averaging for HSV color averaging
void SIsegment (Image< PixRGB< float > > &image)
 segment image based upon parameters input
void SIsegment (Image< float > &image)
 segment image based upon parameters input
Image< long > SIcreateMother (Image< long > &img)
 merge all blobs into one big blob, useful if you erase blobs
Image< long > SIreturnBlobs ()
 return an image with labeled blobs. Use getBlobMap to map blobs
Image< bool > SIreturnCandidates ()
 return a bool map off all candidate pixels
Image< float > SIreturnNormalizedCandidates ()
 return a normalized displayable map off all candidate pixels
Image< PixRGB< float > > SIreturnWorkImage ()
 return the image that is being worked on, to check if its ok
Image< float > SIreturnWorkImageGREY ()
 return the image that is being worked on, to check if its ok
int SInumberBlobs ()
 return the total number of blobs
std::vector< long > SIgetBlobMap ()
 return a map of blobs that gives the numeric ID of a blob from the image
void SIcalcMassCenter ()
 calculate basic mass/center blob properties
float SIgetCenterX (long blob)
 get blob center in X
float SIgetCenterY (long blob)
 get blob center in X
long SIgetMass (long blob)
 get blob mass
int SIgetXmin (long blob)
 get X min for a blob
int SIgetXmax (long blob)
 get X max for a blob
int SIgetYmin (long blob)
 get Y min for a blob
int SIgetYmax (long blob)
 get Y max for a blob
int SIgetImageSizeX ()
 get the working image size in X
int SIgetImageSizeY ()
 get the working image size in Y
void SIgetHSVvalue (long blob, float *H, float *S, float *V, float *Hstd, float *Sstd, float *Vstd)
 get HSV mean values and standard deviations for a blob
void SIgetHSVvalueMean (long blob, float *H, float *S, float *V, float *Hstd, float *Sstd, float *Vstd)
 do HVS color value means for x last iterations

Detailed Description

Definition at line 48 of file segmentImage2.H.


Constructor & Destructor Documentation

segmentImage2::segmentImage2 ( int  imageType  ) 

create an object. Set true for RGB false for HSV

skews here are used to skew the curve towards one end of the threshold that is, you pick the ideal color value as val, the you pick the cut off threshold as thresh. You can then bias towads one end or the other by setting skew to +/- value, that value bing added to the upper or lower bound for the cut off depending on whether it is +/- that is, if its a neg. value then the lower bound is extended

Definition at line 415 of file segmentImage2.C.

References segmentImage2().

Referenced by segmentImage2().


Member Function Documentation

void segmentImage2::SIcalcMassCenter (  ) 

calculate basic mass/center blob properties

Definition at line 702 of file segmentImage2.C.

References Image< T >::getVal().

Referenced by segmentImageMerge2::SIMtrackImage(), segmentImageMerge2::SIMtrackImageMulti(), and ColorSegmenterI::updateFrame().

Image< long > segmentImage2::SIcreateMother ( Image< long > &  img  ) 

merge all blobs into one big blob, useful if you erase blobs

else just use returnCandidates

Definition at line 632 of file segmentImage2.C.

References Image< T >::getHeight(), Image< T >::getVal(), Image< T >::getWidth(), Image< T >::resize(), Image< T >::setVal(), and ZEROS.

std::vector< long > segmentImage2::SIgetBlobMap (  ) 

return a map of blobs that gives the numeric ID of a blob from the image

Definition at line 697 of file segmentImage2.C.

float segmentImage2::SIgetCenterX ( long  blob  ) 

get blob center in X

Definition at line 752 of file segmentImage2.C.

Referenced by segmentImageMerge2::SIMverganceSpring(), and ColorSegmenterI::updateFrame().

float segmentImage2::SIgetCenterY ( long  blob  ) 

get blob center in X

Definition at line 757 of file segmentImage2.C.

Referenced by ColorSegmenterI::updateFrame().

void segmentImage2::SIgetHSVvalue ( long  blob,
float *  H,
float *  S,
float *  V,
float *  Hstd,
float *  Sstd,
float *  Vstd 
)

get HSV mean values and standard deviations for a blob

Definition at line 804 of file segmentImage2.C.

References Image< T >::getVal(), and sqrt().

Referenced by SIgetHSVvalueMean().

void segmentImage2::SIgetHSVvalueMean ( long  blob,
float *  H,
float *  S,
float *  V,
float *  Hstd,
float *  Sstd,
float *  Vstd 
)

do HVS color value means for x last iterations

Definition at line 840 of file segmentImage2.C.

References SIgetHSVvalue().

int segmentImage2::SIgetImageSizeX (  ) 

get the working image size in X

Definition at line 794 of file segmentImage2.C.

References Image< T >::getWidth().

int segmentImage2::SIgetImageSizeY (  ) 

get the working image size in Y

Definition at line 799 of file segmentImage2.C.

References Image< T >::getHeight().

long segmentImage2::SIgetMass ( long  blob  ) 

get blob mass

Definition at line 762 of file segmentImage2.C.

Referenced by ColorSegmenterI::updateFrame().

int segmentImage2::SIgetXmax ( long  blob  ) 

get X max for a blob

Definition at line 774 of file segmentImage2.C.

int segmentImage2::SIgetXmin ( long  blob  ) 

get X min for a blob

Definition at line 767 of file segmentImage2.C.

int segmentImage2::SIgetYmax ( long  blob  ) 

get Y max for a blob

Definition at line 788 of file segmentImage2.C.

int segmentImage2::SIgetYmin ( long  blob  ) 

get Y min for a blob

Definition at line 781 of file segmentImage2.C.

int segmentImage2::SInumberBlobs (  ) 

return the total number of blobs

Definition at line 692 of file segmentImage2.C.

Referenced by segmentImageMerge2::SIMverganceSpring(), and ColorSegmenterI::updateFrame().

Image< long > segmentImage2::SIreturnBlobs (  ) 

return an image with labeled blobs. Use getBlobMap to map blobs

Definition at line 652 of file segmentImage2.C.

Image< bool > segmentImage2::SIreturnCandidates (  ) 

return a bool map off all candidate pixels

Definition at line 657 of file segmentImage2.C.

Referenced by ColorSegmenterI::updateFrame().

Image< float > segmentImage2::SIreturnNormalizedCandidates (  ) 

return a normalized displayable map off all candidate pixels

Definition at line 662 of file segmentImage2.C.

References Image< T >::getHeight(), Image< T >::getVal(), Image< T >::getWidth(), Image< T >::resize(), and Image< T >::setVal().

Referenced by segmentImageMerge2::SIMreturnCandidateImage().

Image< PixRGB< float > > segmentImage2::SIreturnWorkImage (  ) 

return the image that is being worked on, to check if its ok

Definition at line 679 of file segmentImage2.C.

References ASSERT.

Image< float > segmentImage2::SIreturnWorkImageGREY (  ) 

return the image that is being worked on, to check if its ok

Definition at line 685 of file segmentImage2.C.

References ASSERT.

void segmentImage2::SIsegment ( Image< float > &  image  ) 

segment image based upon parameters input

Definition at line 610 of file segmentImage2.C.

References lowPass5(), and Image< T >::resize().

void segmentImage2::SIsegment ( Image< PixRGB< float > > &  image  ) 

segment image based upon parameters input

Definition at line 589 of file segmentImage2.C.

References image, lowPass5(), and Image< T >::resize().

Referenced by segmentImageMerge2::SIMtrackImage(), segmentImageMerge2::SIMtrackImageMulti(), and ColorSegmenterI::updateFrame().

void segmentImage2::SIsetBlue ( int  val,
int  thresh = 1,
int  skew = 0 
)

set the blue value you are looking for with thresh error, and skew

Definition at line 470 of file segmentImage2.C.

References ASSERT.

void segmentImage2::SIsetFrame ( int  x1,
int  y1,
int  x2,
int  y2,
int  realX,
int  realY 
)

set the region of the image to inspect

Definition at line 540 of file segmentImage2.C.

References Image< T >::resize().

Referenced by segmentImageMerge2::SIMsetFrame(), and ColorSegmenterI::updateFrame().

void segmentImage2::SIsetGreen ( int  val,
int  thresh = 1,
int  skew = 0 
)

set the green value you are looking for with thresh error, and skew

Definition at line 453 of file segmentImage2.C.

References ASSERT.

void segmentImage2::SIsetHSVavg ( long  doAvg  ) 

set up averaging for HSV color averaging

Definition at line 567 of file segmentImage2.C.

Referenced by segmentImageMerge2::SIMsetTrackColor().

void segmentImage2::SIsetHue ( double  val,
double  thresh = 1,
double  skew = 0 
)

set the Hue value you are looking for with thresh error, and skew

Definition at line 487 of file segmentImage2.C.

References ASSERT.

Referenced by segmentImageMerge2::SIMclusterColor(), segmentImageMerge2::SIMsetTrackColor(), and ColorSegmenterI::updateFrame().

void segmentImage2::SIsetRed ( int  val,
int  thresh = 1,
int  skew = 0 
)

set the red value you are looking for with thresh error, and skew

Definition at line 436 of file segmentImage2.C.

References ASSERT.

void segmentImage2::SIsetSat ( double  val,
double  thresh = 1,
double  skew = 0 
)

set the Saturation value you are looking for with thresh error, and skew

Definition at line 504 of file segmentImage2.C.

References ASSERT.

Referenced by segmentImageMerge2::SIMclusterColor(), segmentImageMerge2::SIMsetTrackColor(), and ColorSegmenterI::updateFrame().

void segmentImage2::SIsetVal ( double  val,
double  thresh = 1,
double  skew = 0 
)

set the Value (brightness) value you are looking for with thresh error

Definition at line 521 of file segmentImage2.C.

References ASSERT.

Referenced by segmentImageMerge2::SIMclusterColor(), segmentImageMerge2::SIMsetTrackColor(), and ColorSegmenterI::updateFrame().


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:43:48 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3