DLDocID Class Reference

The DLDocID object performs image content recognition for diverse imagery by texture analysis, and classifies an image into one of the image content type defined by DLImageContentType. More...

#include <DLDocID.h>

List of all members.

Public Types

enum  DLImageContentType { DL_DOCUMENT_IMAGE = 1, DL_IMAGE_WITH_TEXT = 2, DL_NONDOCUMENT_IMAGE = 3 }

Public Member Functions

 DLDocID (string modelfilename, int windowsize, bool test)
bool batchTraining (string filelistname)
DLImageContentType test (string testfilename)
DLImageContentType test (const DLImage &testImage)

Protected Attributes

DLSVMClassifierclassifier
 User a multi-class SVM classifier for classification.
string model_filename
 File name of the classifier model file.
int winsize
 Window size of the rescaled image in which texture analysis is performed.


Detailed Description

The DLDocID object performs image content recognition for diverse imagery by texture analysis, and classifies an image into one of the image content type defined by DLImageContentType.

Member Enumeration Documentation

enum DLDocID::DLImageContentType

Image content types


Constructor & Destructor Documentation

DLDocID::DLDocID ( string  modelfilename,
int  windowsize,
bool  test 
)

DLDocID Constructor: Initialize parameters for training or testing In training, a new model file in LIBSVM format will be created by the given file name. In testing, the specified model file in LIBSVM format will be used for classification.

Parameters:
model_filename file name of the SVM model file in LIBSVM format.
windowsize dimension of the rescaled image size in which texture analysis is carried out
test Boolean type indicator. True for testing, false for training.


Member Function Documentation

bool DLDocID::batchTraining ( string  filelistname  ) 

Batch training using a list of training images

Parameters:
filelistname name of the file containing the list of training images
Returns:
true if successful

DLDocID::DLImageContentType DLDocID::test ( string  testfilename  ) 

Classify a test image of a given file name

Parameters:
testfilename file name of the test image
Returns:
the predicted image content type defined in DLImageContentType

DLDocID::DLImageContentType DLDocID::test ( const DLImage &  testImage  ) 

Classify a test image of DLImage type

Parameters:
testImage file name of the test image
Returns:
the predicted image content type defined in DLImageContentType


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

DocIDDOCLIB Library is an add-on of DOCLIB. 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