12.2 API
About1 Introduction2 Image Recognition3 TransApplet4 API5 Interface6 Input7 Image Display8 Preprocessing9 Processing10 Normalization11 Parameter Class12 Image Signatures13 Unsupervised Filters14 BioFilters15 NeuralFilters16 Dynamic Library17 NeuralNet Filter18 Parameters19 Input Options20 Database Input21 Video Input22  Live Video Input23  Counting & Tracking24  Counting 25  Batch Job26 ImageFinder for DOS27 ImageHunt 28 Support Packages

12.1 Signature Menu 
12.2 API 
12.3 Objects 
12.4 Key Signature 
12.5 Signature File 
12.6 Implementation 
12.7 Examples 

 

[Home][12 Image Signatures][12.2 API]

 

12.2   API

The basic idea is:

      Image Signature = SignatureFilter. getSiganture (image);

As we can see, there are two objects here, Signature and Signature Filter. The Signature functions are:

Function    

Descriptions

int getStatus ()    

Returns the status associated with the signature.

Output:

1: signature ready.

0: signature not ready.

-1: no image

-2: image segmentation specification error

-3: other error.

string getID()  

Returns the ID associated with the signature.

Output: image ID.

string getImageName ()  

Returns the image name associated with the signature.

Output: image name.

string getImagePath()   

Returns the image path associated with the signature.

Output: image path.

string getAbsolutePath ()   

Returns the absolute path associated with the signature.

Output: image absolute path.

int getNumberOfAttributes ()    

Returns the number of attributes associated with the signature.

Output: number of attributes.

int [] getSignatureAttributes() 

Returns the attribute array associated with the signature.

Output: attribute array.

int int [] getSignatureAttributes() (int index) 

Returns the attribute associated with the input index.Input: index.

Output: attribute associated with the input index.

string toString ()  

Returns the entire image signature as a string with fields separated by Tab.

The Signature Filter functions are:

Function    

Descriptions

bool setSignatureFilter (int x)int getSignatureFilter ()    

Selects a Signature filter.

string [] getSignatureFilterNames();    

Gets a list of Signature filter names.

ImageSignature getSignature (string imagePath, string ID);  

ImageSignature getSignature (string imagePath);

ImageSignature getSignature (Bitmap b, string ID);

ImageSignature getSignature (Bitmap b);    

Gets the Signature of the input image.

ImageSignature getSignature( string imagePath, string ID,int x, int y, int w, int h);

ImageSignature getSignature( Bitmap bImg, string path, string name, string ID,int x, int y, int w, int h); 

Gets the Signature of the input image segment.

Input:   string imagePath, or   Bitmap bImg   string ID   int x, int y, int w, int h.

Output:   Signature.

bool getLibrary ( string [] imageAbsolutePath, string fileName );

bool getLibrary( string [] imageAbsolutePath, string [] IDs, string fileName );        

bool getSegmentLibrary ( string [] imageAbsolutePath, string [] IDs,string [] xs,string [] ys,string [] ws,string [] hs,string fileName );      

bool getSegmentLibrary ( string [] imageAbsolutePath, string [] IDs,int [] xs,int [] ys,int [] ws,int [] hs,string fileName ); 

 Generates a Signature library from all images in string [] imageAbsolutePath and produces a file that contains all signatures.

Input:   string []   imageAbsolutePath

Output:   A text file that contains the library of signatures.

   

 

 

[Home][About][1 Introduction][2 Image Recognition][3 TransApplet][4 API][5 Interface][6 Input][7 Image Display][8 Preprocessing][9 Processing][10 Normalization][11 Parameter Class][12 Image Signatures][13 Unsupervised Filters][14 BioFilters][15 NeuralFilters][16 Dynamic Library][17 NeuralNet Filter][18 Parameters][19 Input Options][20 Database Input][21 Video Input][22 Live Video Input][23 Counting & Tracking][24 Counting ][25 Batch Job][26 ImageFinder for DOS][27 ImageHunt ][28 Support Packages]

Copyright (c) 2006 - 2007 Attrasoft. All rights reserved.

gina@attrasoft.com