Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   Related Pages   Examples  

Neighborhood operations


Functions

void LocalOp (Image< T > &input, string op_type, int w_x, int w_y, Image< T > &output)
void LocalOp (Image< T > &input, string op_type, int w, Image< T > &output)
void LocalOp (Image< T > &input, string op_type, int w_x, int w_y)
void LocalOp (Image< T > &input, string op_type, int w)

Detailed Description

This group contains stand-alone functions implementing neighborhood operations.

Function Documentation

void LocalOp ( Image< T > & input,
string op_type,
int w )
 

Computes the value of each pixel in the output image as statistics of the pixel values inside a window of size centered in the corresponding pixel in the input image. The operation is done in place. The type of statistics is determined by the parameter op_type. Six types of statistics are allowed:

  • the mean, in which case the parameter op_type should be "mean";
  • the median, in which case the parameter op_type should be "median";
  • the standard deviation, in which case the parameter op_type should be "stdev";
  • the variance, in which case the parameter op_type should be "var";
  • the min, in which case the parameter op_type should be "min";
  • the max, in which case the parameter op_type should be "max".

Definition at line 71 of file LocalOp.cpp.

void LocalOp ( Image< T > & input,
string op_type,
int w_x,
int w_y )
 

Computes the value of each pixel in the output image as statistics of the pixel values inside a window of size centered in the corresponding pixel in the input image. The operation is done in place. The type of statistics is determined by the parameter op_type. Six types of statistics are allowed:

  • the mean, in which case the parameter op_type should be "mean";
  • the median, in which case the parameter op_type should be "median";
  • the standard deviation, in which case the parameter op_type should be "stdev";
  • the variance, in which case the parameter op_type should be "var";
  • the min, in which case the parameter op_type should be "min";
  • the max, in which case the parameter op_type should be "max".

Definition at line 66 of file LocalOp.cpp.

void LocalOp ( Image< T > & input,
string op_type,
int w,
Image< T > & output )
 

Computes the value of each pixel in the output image as statistics of the pixel values inside a window of size centered in the corresponding pixel in the input image. The type of statistics is determined by the parameter op_type. Six types of statistics are allowed:

  • the mean, in which case the parameter op_type should be "mean";
  • the median, in which case the parameter op_type should be "median";
  • the standard deviation, in which case the parameter op_type should be "stdev";
  • the variance, in which case the parameter op_type should be "var";
  • the min, in which case the parameter op_type should be "min";
  • the max, in which case the parameter op_type should be "max".

Definition at line 61 of file LocalOp.cpp.

void LocalOp ( Image< T > & input,
string op_type,
int w_x,
int w_y,
Image< T > & output )
 

Computes the value of each pixel in the output image as statistics of the pixel values inside a window of size centered in the corresponding pixel in the input image. The type of statistics is determined by the parameter op_type. Six types of statistics are allowed:

  • the mean, in which case the parameter op_type should be "mean";
  • the median, in which case the parameter op_type should be "median";
  • the standard deviation, in which case the parameter op_type should be "stdev";
  • the variance, in which case the parameter op_type should be "var";
  • the min, in which case the parameter op_type should be "min";
  • the max, in which case the parameter op_type should be "max".
Examples:
test_localop.cpp.

Definition at line 37 of file LocalOp.cpp.