DLMask Class Reference

Mask an image. More...

#include <DLMask.h>

List of all members.

Static Public Member Functions

static DLImage dlMask (const DLImage &image, double *mask[], int length)


Detailed Description

Mask an image.

Definition at line 13 of file DLMask.h.


Member Function Documentation

static DLImage DLMask::dlMask ( const DLImage image,
double *  mask[],
int  length 
) [static]

Mask an image.

Convolves the image with a square (N x N) filter. The filter should be provided as a row-major 2-dimensional double array. For example:

 DLImage i("test.jpg");
 // create masking filter: use array[][] format for ease of initialization
 double maskarray[3][3] = 
   { {1,  1,  1},
     {1, -8,  1},
     {1,  1,  1}  };

 // convert double[][] into double** for input to dlMask() 
 double ** mask = new double*[3];
 for (int qq=0; qq<3; qq++) {
   mask[qq] = &maskarray[qq][0];
 }

 // perform masking operation
 DLImage outim = DLMask::dlMask(i,mask,3);
Parameters:
image DLImage to be masked
mask array containing masking filter
length length of filter (i.e. N)
Returns:
masked image


The documentation for this class was generated from the following file:

DOCLIB is being developed under contract by a collaboration between:
The Laboratory for Language and Media Processing
Unviersity of Maryland, College Park
and
Booz | Allen | Hamilton

All Rights Reserved, 2003-2007