|
|
|
|
[Home][20 Database Input][20.1 Access Class]
|
|
20.1 Basic Access ClassThe Class Library is: Attrasoft.TransApplet70.InputDBMS70, The class in this library will be: Attrasoft.TransApplet70. InputDBMS70. InputDBMS70. The interface, which will be used by InputDBMS70, is: public interface I_InputDBMS { bool setDBMS (string dbms, string query); bool setDBMSSegment (string dbms, string query);
string getDBMS (); string getQuery ();
bool isDBMSFile ( string s); bool getStatus();
int getN(); string [] getID ( ); string [] getName ( ); string [] getPath ( ); string [] getAbsolutePath ( ); string [] getX (); string [] getY (); string [] getW (); string [] getH ();
string getMessage(); } This Database Input Class will have a constructor that will take a RichTextBox: public InputDBMS70( RichTextBox r1) { } To declare an object, write: public Attrasoft.TransApplet70.InputDBMS70.InputDBMS70 indb70 ; To create an object, write: indb70 = new Attrasoft.TransApplet70.InputDBMS70.InputDBMS70 (richTextBox1 ); The Input parameters to this class are:
The Output of this class is a string list of images. The first thing you will do is to enter information to this class: indb70.setDBMS (sDBMS, sQuery); At this point, you can proceed to get data: int getN(); string [] getID ( ); string [] getName ( ); string [] getPath ( ); string [] getAbsolutePath ( ); string [] getX (); string [] getY (); string [] getW (); string [] getH (); The status function will tell you whether the database computation is successful: indb70.getInputDBMSStatus () If it is successful, the retrieved image list can be obtained: if ( ! indb70.getInputDBMSStatus () ) { appendText ( "Database input Fail!\n" ); return; } filelist = indb70. getAbsolutePath ( );
[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. |