IM: Synthetic Image Render

IM - Imaging Libray

Synthetic Image Render
[Image Processing]


Detailed Description

Renders some 2D mathematical functions as images. All the functions operates in place and supports all data types except IM_COMPLEX.
See im_process_pon.h


Typedefs

typedef float(* imRenderFunc )(int x, int y, int d, float *param)
typedef float(* imRenderCondFunc )(int x, int y, int d, int *cond, float *param)

Functions

int imProcessRenderOp (imImage *image, imRenderFunc render_func, char *render_name, float *param, int plus)
int imProcessRenderCondOp (imImage *image, imRenderCondFunc render_func, char *render_name, float *param)
int imProcessRenderAddSpeckleNoise (const imImage *src_image, imImage *dst_image, float percent)
int imProcessRenderAddGaussianNoise (const imImage *src_image, imImage *dst_image, float mean, float stddev)
int imProcessRenderAddUniformNoise (const imImage *src_image, imImage *dst_image, float mean, float stddev)
int imProcessRenderRandomNoise (imImage *image)
int imProcessRenderConstant (imImage *image, float *value)
int imProcessRenderWheel (imImage *image, int int_radius, int ext_radius)
int imProcessRenderCone (imImage *image, int radius)
int imProcessRenderTent (imImage *image, int width, int height)
int imProcessRenderRamp (imImage *image, int start, int end, int dir)
int imProcessRenderBox (imImage *image, int width, int height)
int imProcessRenderSinc (imImage *image, float xperiod, float yperiod)
int imProcessRenderGaussian (imImage *image, float stddev)
int imProcessRenderLapOfGaussian (imImage *image, float stddev)
int imProcessRenderCosine (imImage *image, float xperiod, float yperiod)
int imProcessRenderGrid (imImage *image, int x_space, int y_space)
int imProcessRenderChessboard (imImage *image, int x_space, int y_space)

Typedef Documentation

typedef float(* imRenderFunc)(int x, int y, int d, float *param)
 

Render Funtion.

typedef float(* imRenderCondFunc)(int x, int y, int d, int *cond, float *param)
 

Render Conditional Funtion.


Function Documentation

int imProcessRenderOp imImage image,
imRenderFunc  render_func,
char *  render_name,
float *  param,
int  plus
 

Render a synthetic image using a render function.
plus will make the render be added to the current image data, or else all data will be replaced. All the render functions use this or the conditional function.
Returns zero if the counter aborted.

int imProcessRenderCondOp imImage image,
imRenderCondFunc  render_func,
char *  render_name,
float *  param
 

Render a sintetic image using a conditional render function.
Data will be rendered only if the condional param is true.
Returns zero if the counter aborted.

int imProcessRenderAddSpeckleNoise const imImage src_image,
imImage dst_image,
float  percent
 

Render speckle noise on existing data. Can be done in place.

int imProcessRenderAddGaussianNoise const imImage src_image,
imImage dst_image,
float  mean,
float  stddev
 

Render gaussian noise on existing data. Can be done in place.

int imProcessRenderAddUniformNoise const imImage src_image,
imImage dst_image,
float  mean,
float  stddev
 

Render uniform noise on existing data. Can be done in place.

int imProcessRenderRandomNoise imImage image  ) 
 

Render random noise.

int imProcessRenderConstant imImage image,
float *  value
 

Render a constant. The number of values must match the depth of the image.

int imProcessRenderWheel imImage image,
int  int_radius,
int  ext_radius
 

Render a centered wheel.

int imProcessRenderCone imImage image,
int  radius
 

Render a centered cone.

int imProcessRenderTent imImage image,
int  width,
int  height
 

Render a centered tent.

int imProcessRenderRamp imImage image,
int  start,
int  end,
int  dir
 

Render a ramp. Direction can be vertical (1) or horizontal (0).

int imProcessRenderBox imImage image,
int  width,
int  height
 

Render a centered box.

int imProcessRenderSinc imImage image,
float  xperiod,
float  yperiod
 

Render a centered sinc.

int imProcessRenderGaussian imImage image,
float  stddev
 

Render a centered gaussian.

int imProcessRenderLapOfGaussian imImage image,
float  stddev
 

Render the laplacian of a centered gaussian.

int imProcessRenderCosine imImage image,
float  xperiod,
float  yperiod
 

Render a centered cosine.

int imProcessRenderGrid imImage image,
int  x_space,
int  y_space
 

Render a centered grid.

int imProcessRenderChessboard imImage image,
int  x_space,
int  y_space
 

Render a centered chessboard.