bazar  1.3.1
Macros | Functions
mcv.h File Reference
#include <cv.h>
Include dependency graph for mcv.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define mcvRow(image, y, type)   ( (type *)( (image)->imageData + (y) * (image)->widthStep ) )
#define mcvGet2D(image, x, y, type)   ( (type *)( (image)->imageData + (y) * (image)->widthStep ) )[x]
#define mcvGet2D_32f(image, x, y)   ( (float *)( (image)->imageData + (y) * (image)->widthStep ) )[x]
#define MCV_RANDOM_COLOR   (-1)

Functions

CvSize mcvSize (IplImage *image)
IplImage * mcvResize (IplImage *original_image, int new_width, int new_height=-1)
void mcvSmooth (IplImage *image, IplImage *smoothed_image, int smooth_type, int aperture)
float mcvGaussianDerivative (IplImage *image, int x, int y, int order_x, int order_y, float sigma)
IplImage * mcvGradientNorm2 (IplImage *image, int aperture)
void mcvSetBorder (IplImage *image, int border_size, int value)
void mcvSetBorder (IplImage *image, int border_size)
IplImage * mcvColorToGray (IplImage *colorImage)
IplImage * mcvGrayToColor (IplImage *grayImage)
void mcvSwapRandB (IplImage *image)
IplImage * showLocalMinima (IplImage *image)
IplImage * showLocalMaxima (IplImage *image)
void mcvScaleTo0_255 (IplImage *original, IplImage *scaled)
void mcvReplace (IplImage *image, int old_value, int new_value)
int mcvSaveImage (const char *filename, IplImage *image, bool verbose=true)
int mcvSaveImage (const char *generic_filename, int index, IplImage *image, bool verbose=true)
IplImage * mcvLoadImage (const char *filename, int code, bool verbose=true)
IplImage * mcvLoadImage (const char *generic_filename, int index, int code, bool verbose=true)
IplImage * mcvCrop (IplImage *image, int x, int y, int width, int height)
void mcvCrop (IplImage *image, int x, int y, IplImage *croppedImage)
IplImage * mcvZoom (IplImage *source, int xc, int yc, float zoom)
void mcvPut (IplImage *destImage, IplImage *imageToCopy, int x, int y)
void mcvDeinterlace (IplImage *image)
CvScalar mcvRainbowColor (int index, float coeff=1)
void mcvCross (IplImage *image, int x, int y, int size, CvScalar color, int thickness=1)
void mcvSquare (IplImage *image, int x, int y, int size, CvScalar color, int thickness=1)
void mcvCircle (IplImage *image, int x, int y, int size, CvScalar color, int thickness=1)
void mcvVisibleLine (IplImage *image, int x1, int y1, int x2, int y2, int thickness=1)
void mcvAddWhiteNoise (const IplImage *image, const int minNoise, const int maxNoise)
void mcvAddWhiteNoise (const IplImage *image, const int maxNoise)
IplImage * createTwoLevelsWhiteNoiseImage (int width, int height, float percentageOf0)
IplImage * mcvCreateRandomImage (CvSize size, int depth, int nChannels)
void mcvReplaceByNoise (IplImage *image, int value)
void mcvChangeGamma (IplImage *image, float gamma)
IplImage * mcvGetPatch (IplImage *image, int u, int v, int width, int height)
void mcvGetPatch (IplImage *image, IplImage *patch, int u, int v)
void mcvComputeAffineTransfo (float *a, int u, int v, float theta, float phi, float lambda1, float lambda2, float tx, float ty)

Detailed Description

Definition in file mcv.h.

Macro Definition Documentation

#define MCV_RANDOM_COLOR   (-1)

Definition at line 91 of file mcv.h.

#define mcvGet2D (   image,
  x,
  y,
  type 
)    ( (type *)( (image)->imageData + (y) * (image)->widthStep ) )[x]

Definition at line 31 of file mcv.h.

Referenced by mcvGaussianDerivative(), and mcvSetBorder().

#define mcvGet2D_32f (   image,
  x,
 
)    ( (float *)( (image)->imageData + (y) * (image)->widthStep ) )[x]

Definition at line 32 of file mcv.h.

#define mcvRow (   image,
  y,
  type 
)    ( (type *)( (image)->imageData + (y) * (image)->widthStep ) )

Function Documentation

IplImage* createTwoLevelsWhiteNoiseImage ( int  width,
int  height,
float  percentageOf0 
)
void mcvAddWhiteNoise ( const IplImage *  image,
const int  minNoise,
const int  maxNoise 
)

Definition at line 590 of file mcv.cpp.

References mcvRow, and rand().

void mcvAddWhiteNoise ( const IplImage *  image,
const int  maxNoise 
)

Definition at line 617 of file mcv.cpp.

References rand().

void mcvChangeGamma ( IplImage *  image,
float  gamma 
)

Definition at line 640 of file mcv.cpp.

void mcvCircle ( IplImage *  image,
int  x,
int  y,
int  size,
CvScalar  color,
int  thickness = 1 
)

Definition at line 531 of file mcv.cpp.

References cvPoint().

Referenced by yape::save_image_of_detected_points(), and pyr_yape::save_image_of_detected_points().

IplImage* mcvColorToGray ( IplImage *  colorImage)

Definition at line 197 of file mcv.cpp.

void mcvComputeAffineTransfo ( float *  a,
int  u,
int  v,
float  theta,
float  phi,
float  lambda1,
float  lambda2,
float  tx,
float  ty 
)
IplImage* mcvCreateRandomImage ( CvSize  size,
int  depth,
int  nChannels 
)

Definition at line 544 of file mcv.cpp.

References rand().

IplImage* mcvCrop ( IplImage *  image,
int  x,
int  y,
int  width,
int  height 
)

Definition at line 680 of file mcv.cpp.

References mcvCrop().

void mcvCrop ( IplImage *  image,
int  x,
int  y,
IplImage *  croppedImage 
)

Definition at line 658 of file mcv.cpp.

Referenced by mcvCrop(), and mcvGetPatch().

void mcvCross ( IplImage *  image,
int  x,
int  y,
int  size,
CvScalar  color,
int  thickness = 1 
)

Definition at line 525 of file mcv.cpp.

References cvPoint().

void mcvDeinterlace ( IplImage *  image)

Definition at line 742 of file mcv.cpp.

float mcvGaussianDerivative ( IplImage *  image,
int  x,
int  y,
int  order_x,
int  order_y,
float  sigma 
)

Definition at line 72 of file mcv.cpp.

References mcvGet2D.

IplImage* mcvGetPatch ( IplImage *  image,
int  u,
int  v,
int  width,
int  height 
)
void mcvGetPatch ( IplImage *  image,
IplImage *  patch,
int  u,
int  v 
)

Definition at line 766 of file mcv.cpp.

References mcvCrop().

IplImage* mcvGradientNorm2 ( IplImage *  image,
int  aperture 
)

Definition at line 115 of file mcv.cpp.

References mcvScaleTo0_255().

IplImage* mcvGrayToColor ( IplImage *  grayImage)
IplImage* mcvLoadImage ( const char *  filename,
int  code,
bool  verbose = true 
)
IplImage* mcvLoadImage ( const char *  generic_filename,
int  index,
int  code,
bool  verbose = true 
)

Definition at line 500 of file mcv.cpp.

References mcvLoadImage().

void mcvPut ( IplImage *  destImage,
IplImage *  imageToCopy,
int  x,
int  y 
)

Definition at line 717 of file mcv.cpp.

References mcvGrayToColor().

Referenced by planar_object_recognizer::concat_model_and_input_images().

CvScalar mcvRainbowColor ( int  index,
float  coeff = 1 
)
void mcvReplace ( IplImage *  image,
int  old_value,
int  new_value 
)

Definition at line 566 of file mcv.cpp.

References mcvRow.

Referenced by affine_image_generator::generate_affine_image().

void mcvReplaceByNoise ( IplImage *  image,
int  value 
)

Definition at line 578 of file mcv.cpp.

References mcvRow, and rand().

IplImage* mcvResize ( IplImage *  original_image,
int  new_width,
int  new_height = -1 
)

Definition at line 691 of file mcv.cpp.

int mcvSaveImage ( const char *  filename,
IplImage *  image,
bool  verbose = true 
)
int mcvSaveImage ( const char *  generic_filename,
int  index,
IplImage *  image,
bool  verbose = true 
)

Definition at line 468 of file mcv.cpp.

References mcvSaveImage().

void mcvScaleTo0_255 ( IplImage *  original,
IplImage *  scaled 
)

Definition at line 420 of file mcv.cpp.

Referenced by mcvGradientNorm2().

void mcvSetBorder ( IplImage *  image,
int  border_size,
int  value 
)

Definition at line 143 of file mcv.cpp.

References mcvGet2D.

void mcvSetBorder ( IplImage *  image,
int  border_size 
)

Definition at line 163 of file mcv.cpp.

References mcvRow, and N.

CvSize mcvSize ( IplImage *  image)

Definition at line 33 of file mcv.cpp.

void mcvSmooth ( IplImage *  image,
IplImage *  smoothed_image,
int  smooth_type,
int  aperture 
)

Definition at line 40 of file mcv.cpp.

void mcvSquare ( IplImage *  image,
int  x,
int  y,
int  size,
CvScalar  color,
int  thickness = 1 
)

Definition at line 511 of file mcv.cpp.

References cvPoint().

void mcvSwapRandB ( IplImage *  image)

Definition at line 405 of file mcv.cpp.

void mcvVisibleLine ( IplImage *  image,
int  x1,
int  y1,
int  x2,
int  y2,
int  thickness = 1 
)

Definition at line 536 of file mcv.cpp.

References cvPoint().

IplImage* mcvZoom ( IplImage *  source,
int  xc,
int  yc,
float  zoom 
)

Definition at line 700 of file mcv.cpp.

IplImage* showLocalMaxima ( IplImage *  image)

Definition at line 378 of file mcv.cpp.

References mcvGrayToColor(), and mcvRow.

IplImage* showLocalMinima ( IplImage *  image)

Definition at line 351 of file mcv.cpp.

References mcvGrayToColor(), and mcvRow.