GOFIGURE2
0.9.0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
Plugins
ImageMedianPlugin
medianpluginMain.cxx
Go to the documentation of this file.
1
/*=========================================================================
2
Author: $Author$ // Author of last commit
3
Version: $Rev$ // Revision of last commit
4
Date: $Date$ // Date of last commit
5
=========================================================================*/
6
7
/*=========================================================================
8
Authors: The GoFigure Dev. Team.
9
at Megason Lab, Systems biology, Harvard Medical school, 2009
10
11
Copyright (c) 2009, President and Fellows of Harvard College.
12
All rights reserved.
13
14
Redistribution and use in source and binary forms, with or without
15
modification, are permitted provided that the following conditions are met:
16
17
Redistributions of source code must retain the above copyright notice,
18
this list of conditions and the following disclaimer.
19
Redistributions in binary form must reproduce the above copyright notice,
20
this list of conditions and the following disclaimer in the documentation
21
and/or other materials provided with the distribution.
22
Neither the name of the President and Fellows of Harvard College
23
nor the names of its contributors may be used to endorse or promote
24
products derived from this software without specific prior written
25
permission.
26
27
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
28
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
29
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
30
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
31
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
32
OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
33
OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
34
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
35
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
36
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
37
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
38
39
=========================================================================*/
40
#include "
medianplugin.h
"
41
42
//#include <typeinfo>
43
#include <QDir>
44
#include <QPluginLoader>
45
46
int
main
(
int
argc,
char
**argv)
47
{
48
(void)argc;
49
(void)argv;
50
// QDir PluginDir( "plugins/" );
51
//
52
// // Here open one image
53
//
54
// foreach( QString fileName, PluginDir.entryList( QDir::Files ) )
55
// {
56
// QPluginLoader loader( PluginDir.absoluteFilePath( fileName ) );
57
//
58
// QObject* plugin = loader.instance();
59
//
60
// if( plugin )
61
// {
62
// medianplugin* temp = dynamic_cast< medianplugin* >( plugin );
63
//
64
// if( temp )
65
// {
66
// std::cout <<"median plugin correctly loaded" <<std::endl;
67
//
68
// // process the image through the plugin
69
//
70
// // simulate the interaction with the interface
71
//
72
// // write the outputs
73
// }
74
// }
75
// }
76
77
return
0;
78
}
medianplugin.h
main
int main(int argc, char **argv)
Definition:
medianpluginMain.cxx:46
Generated on Sat Apr 26 2014 11:38:14 for GOFIGURE2 by
1.8.6