Pixel Access
[Utils]

This pixelaccess is a carmen module intended to provide fast (but unsafe) iplimage pixel read and write functions. More...

Collaboration diagram for Pixel Access:

Files

file  pixelaccess.cpp
 

This is where main is defined and etc.


file  pixelaccess.h
 

main header file for this module. Includes, global vars, funtion prototypes, etc.


Functions

int set_all_processors_speed (int speed)
int get_number_of_processors (void)
int setup_intel_ipp (void)
 Sets up intel ipp libraries. Warning must do the followin in .bashrc "export LD_LIBRARY_PATH=/opt/intel/ipp/6.1.1.042/em64t/sharedlib/:$LD_LIBRARY_PATH".
unsigned char GetPixel_8UC1 (const IplImage *src, int u, int v)
 Get the value of pixel index u,v from the 1 channel 8 bit unsigned char IPLImage src.
void SetPixel_8UC1 (IplImage *dst, int u, int v, unsigned char val)
 Sets the value of pixel index u,v from the 1 channel 8 bit unsigned char IPLImage src to value val.
void SetMVAL_32FC1 (CvMat *src, int u, int v, float val)
 Sets the value of element index u,v from the 1 channel 32 bit CVMat src to value val.
float GetMVAL_32FC1 (CvMat *src, int u, int v)
 Get the value of element index u,v from the 1 channel 32 bit CVMat src.
void SetMVAL_8UC1 (CvMat *src, int u, int v, unsigned char val)
 Sets the value of element index u,v from the 1 channel 8 bit CVMat src to value val.
unsigned char GetMVAL_8UC1 (CvMat *src, int u, int v)
 Get the value of element index u,v from the 1 channel 8 bit CVMat src.
unsigned char * GetPixel_8UC3 (IplImage *src, int u, int v)
 Get the value of pixel index u,v from the 3 channel 8 bit IPLImage src.
void SetPixel_8UC3 (IplImage *dst, int u, int v, unsigned char *val)
 Sets the value of pixel index u,v from the 3 channel 8 bit unsigned char IPLImage src to value val.
void SetMVAL_32FC3 (CvMat *src, int u, int v, float *val)
 Sets the value of element index u,v for 3 channel 32 bit CVMat src to value val.
float * GetMVAL_32FC3 (CvMat *src, int u, int v)
 Get the value of element index u,v from the 3 channel 32 bit CVMat src.
float GetPixel_32FC1 (IplImage *src, int u, int v)
void SetPixel_32FC1 (IplImage *src, int u, int v, double val)

Detailed Description

This pixelaccess is a carmen module intended to provide fast (but unsafe) iplimage pixel read and write functions.

Note:
Use only if you know what youre doing. Can cause wild pointers and segmentation faults.

Function Documentation

int get_number_of_processors ( void   ) 
float GetMVAL_32FC1 ( CvMat *  src,
int  u,
int  v 
)

Get the value of element index u,v from the 1 channel 32 bit CVMat src.

Parameters:
src The IplImage to get the pixel from.
u the line coordinate of the image.
v the column coordinate of the image.
Returns:
The value of the element.

Referenced by class_base_ipm::RemapImages_Gray(), class_base_ipm::RemapImages_RGB(), class_base_ipm::ReportProjectionMaps(), and class_base_ipm::ReportProjectionMaps2().

Here is the caller graph for this function:

float * GetMVAL_32FC3 ( CvMat *  src,
int  u,
int  v 
)

Get the value of element index u,v from the 3 channel 32 bit CVMat src.

Parameters:
src The IplImage to get the pixel from.
u the line coordinate of the image.
v the column coordinate of the image.
Returns:
The value of the element.
unsigned char GetMVAL_8UC1 ( CvMat *  src,
int  u,
int  v 
)

Get the value of element index u,v from the 1 channel 8 bit CVMat src.

Parameters:
src The IplImage to get the pixel from.
u the line coordinate of the image.
v the column coordinate of the image.
Returns:
The value of the element.

Referenced by class_base_ipm::RemapImages_Gray(), class_base_ipm::RemapImages_RGB(), class_base_ipm::ReportProjectionMaps(), and class_base_ipm::ReportProjectionMaps2().

Here is the caller graph for this function:

float GetPixel_32FC1 ( IplImage *  src,
int  u,
int  v 
)
unsigned char GetPixel_8UC1 ( const IplImage *  src,
int  u,
int  v 
)

Get the value of pixel index u,v from the 1 channel 8 bit unsigned char IPLImage src.

Parameters:
src The IplImage to get the pixel from.
u the line coordinate of the image.
v the column coordinate of the image.
Returns:
The value of the pixel.

Referenced by findbasepoints(), findgroups_rightpix(), get_sparse_pts_from_img(), class_base_ipm::InterpolateImage_Gray(), class_base_ipm::RemapImages_Gray(), setbasepointspix(), sparse_and(), stretch_image(), imageprocessing::stretch_image_histogram(), stretch_image_masked(), and tf_stretch_image().

Here is the caller graph for this function:

unsigned char * GetPixel_8UC3 ( IplImage *  src,
int  u,
int  v 
)

Get the value of pixel index u,v from the 3 channel 8 bit IPLImage src.

Get the value of pixel index u,v from the 1 channel 32 bit IPLImage src.

Parameters:
src The IplImage to get the pixel from.
u the line coordinate of the image.
v the column coordinate of the image.
Returns:
The value of the pixel.

Referenced by class_base_ipm::RemapImages_RGB().

Here is the caller graph for this function:

int set_all_processors_speed ( int  speed  ) 
Parameters:
speed in MHz
void SetMVAL_32FC1 ( CvMat *  src,
int  u,
int  v,
float  val 
)

Sets the value of element index u,v from the 1 channel 32 bit CVMat src to value val.

Parameters:
src The IplImage to get the pixel from.
u the line coordinate of the image.
v the column coordinate of the image.
val the value of the element.

Referenced by class_base_ipm::CalculateProjectionMaps().

Here is the caller graph for this function:

void SetMVAL_32FC3 ( CvMat *  src,
int  u,
int  v,
float *  val 
)

Sets the value of element index u,v for 3 channel 32 bit CVMat src to value val.

Parameters:
src The IplImage to get the pixel from.
u the line coordinate of the image.
v the column coordinate of the image.
val the value of the element.
void SetMVAL_8UC1 ( CvMat *  src,
int  u,
int  v,
unsigned char  val 
)

Sets the value of element index u,v from the 1 channel 8 bit CVMat src to value val.

Parameters:
src The IplImage to get the pixel from.
u the line coordinate of the image.
v the column coordinate of the image.
val the value of the element.

Referenced by class_base_ipm::CalculateProjectionMaps().

Here is the caller graph for this function:

void SetPixel_32FC1 ( IplImage *  src,
int  u,
int  v,
double  val 
)
void SetPixel_8UC1 ( IplImage *  dst,
int  u,
int  v,
unsigned char  val 
)

Sets the value of pixel index u,v from the 1 channel 8 bit unsigned char IPLImage src to value val.

Parameters:
src The IplImage to get the pixel from.
u the line coordinate of the image.
v the column coordinate of the image.
val the value of the pixel.

Referenced by class_base_ipm::InterpolateImage_Gray(), class_base_ipm::RemapImages_Gray(), class_advancedfloodfill::show_image(), stretch_image(), imageprocessing::stretch_image_histogram(), stretch_image_masked(), and tf_stretch_image().

Here is the caller graph for this function:

void SetPixel_8UC3 ( IplImage *  dst,
int  u,
int  v,
unsigned char *  val 
)

Sets the value of pixel index u,v from the 3 channel 8 bit unsigned char IPLImage src to value val.

Parameters:
src The IplImage to get the pixel from.
u the line coordinate of the image.
v the column coordinate of the image.
val the value of the pixel.

Referenced by class_base_ipm::RemapImages_RGB().

Here is the caller graph for this function:

int setup_intel_ipp ( void   ) 

Sets up intel ipp libraries. Warning must do the followin in .bashrc "export LD_LIBRARY_PATH=/opt/intel/ipp/6.1.1.042/em64t/sharedlib/:$LD_LIBRARY_PATH".

Returns:
always retuns 1 for now

Referenced by main().

Here is the caller graph for this function:

Generated on Wed Jun 2 12:43:28 2010 for LAR Atlas by  doxygen 1.6.3