CDImageIPL<TPixel>

Class Description

CDImageIPL is a templated class derived from CVisImage. The template takes a single argument specifying the pixel type (TPixel).

This DIVA image class serves as an interface to the functions in the Intel Image Processing Library (IPL). All the functions, which end on "Ipl", interface to the IPL functions with the same name. In the future the class is going to include interface methods for all functionality in the Intel Image Processing Library (IPL).

Constructors/Destructor

CDImageIPL (void)

Default constructor. The image parameters are uninitialized and the instance is unusable until an image array is assigned.
CDImageIPL
    (int width, int height,
     int nbands = 1,
     int imopts = evisimoptDefault,
     BYTE *pbData = 0)

CDImageIPL
    (SIZE size,
     int nbands = 1,
     int imopts = evisimoptDefault,
     BYTE *pbData = 0)

CDImageIPL
    (const RECT& rect,
     int nbands = 1,
     int imopts = evisimoptDefault,
     BYTE *pbData = 0)

CDImageIPL
    (const CVisShape& shape,
     int imopts = evisimoptDefault,
     BYTE *pbData = 0)

Construct an image with the specified dimensions, number of bands, and options.

If pbData is zero, allocate the memory needed. If pbData is not zero, use the memory it points to.
CDImageIPL
    (CVisMemBlock& memblock,
     int width, int height,
     int nbands = 1,
     int imopts = evisimoptDefault)

CDImageIPL
    (CVisMemBlock& memblock,
     SIZE size,
     int nbands = 1,
     int imopts = evisimoptDefault)

CDImageIPL
    (CVisMemBlock& memblock,
     const RECT& rect,
     int nbands = 1,
     int imopts = evisimoptDefault)

CDImageIPL
    (CVisMemBlock& memblock,
     const CVisShape& shape,
     int imopts = evisimoptDefault)

Construct an image with the specified dimensions, number of bands, and options.

No new memory is allocated. The image points to the memblock supplied.
CDImageIPL
    (const CVisImage<TPixel>& imageSrc)

Construct an image from another image.
 
Argument Description
width width of image
height height of image
rect reference to a RECT structure
shape reference to a CVisShape instance specifying image properties
memblock reference to a MemBlock instance
imageSrc reference to an Image instance
nbands number of bands in image
imopts EVisImOpt image options. Options can be OR'ed.

Top

Methods

Image Creation and Access

CDImageIpl<TPixel>::Image2IplImage

IplImage* Image2IplImage();
Converts from Image to IplImage struct.

Top
 

CDImageIpl<TPixel>::SetBorderModeIpl

void SetBorderModeIpl(IplImage *iplSrc, int iMode, int iBorder, int nConstVal);

Sets the border mode in an IplImage using the Intel Image Processing Library.

void SetBorderModeIpl(IplImage *iplSrc)

Set the border mode using the actual settting of the border mode member variable, see Border Mode Functions.
 
Argument Corresponding IPL argument
*iplSrc src
iMode mode
iBorder border
nConstVal constVal

Top
 

Image Filtering

CDImageIpl<TPixel>::BlurIpl

void BlurIpl(int nCols, int nRows)

Blur the image with nCols x NRows window.

 
Argument Corresponding IPL argument
nCols nCols
nRows nRows
Top

CDImageIpl<TPixel>::Convolve2DFPIpl

Convolve2DFPIpl(const CDImageIPL<float>& imageFilter)

Convoles the image with the convolution kernel repressented by the image.

void Convolve2DFPIpl(const CVisSequence<float>& seqFilters, int iCombineMethod);

Convole the image with a sequence of convolution kernels each repressented by an image.
 
Argument Description
imageFilter reference to an image repressenting the filter kernel
seqFilters reference to an image sequnce repressenting the convolution kernels
iCombineMethod corresponds to the combineMethod in the IPL function

Top

CDImageIpl<TPixel>::CreateConvKernelFPIpl

IplConvKernelFP* CreateConvKernelFPIpl(const CDImageIPL<float>& imageFilter);

Return a IPL convolution kernel created from the image, i.e. each pixel correspond to a filter element. Note that the IPL kernel is flip horizontally
and vertically compared to the image to obtanied the correct result.

 
Argument Description
imageFilter reference to an image repressenting the filter kernel
Top

CDImageIpl<TPixel>::FixedFilterIpl

void FixedFilterIpl(IplFilter filter)

Convolves the image with a predefined filter.

 
Argument Corresponding IPL argument
filter filter
Top

Geometric Transforms

CDImageIpl<TPixel>::MirrorIpl

void MirrorIpl(int nFlipAxis);

Mirrors the image around a horizontal or vertical axis using the Intel Image Processing Library.

 
Argument Corresponding IPL argument
nFlipAxis flipAxis
Top


Copyright, 1999
Section for Image Analysis
Department of Mathematical Modelling
Technical University of Denmark
DK-2800 Lyngby

Authors: Lars Pedersen

Last updated: 04-05-99