Skip to content
Snippets Groups Projects
Commit ab47d36b authored by Antoine Lorence's avatar Antoine Lorence
Browse files

Plugin module can't be used for the moment, disable it

parent 0cd1171d
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@
#define OPSETSERVICE_H
#include <Service.h>
#include <Plugin.h>
//#include <Plugin.h>
#include "OperationService.h"
#include <Services/AlgorithmService.h>
......
......@@ -177,9 +177,9 @@ bool PluginManager::loadPlugin(QString file, bool silent) {
std::cout << file.toStdString() << " loaded" << std::endl;
void* ptr = library->resolve("loadPlugin");
QFunctionPointer ptr = library->resolve("loadPlugin");
if(ptr==0) {
if(ptr == 0) {
if(!silent) {
QMessageBox::critical (_gi, tr("Error loading plugin"), tr("Could not find the plugin's entry point \"loadPlugin\""));
}
......
/*
* Copyright 2011-2012 INSA Rennes
*
*
* This file is part of EIImage.
*
*
* EIImage is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*
* EIImage is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*
* You should have received a copy of the GNU General Public License
* along with EIImage. If not, see <http://www.gnu.org/licenses/>.
*/
......@@ -40,7 +40,7 @@ class Thresholding : public PlugOperation {
addParam(CurrentImg(), &Thresholding::img);
addParam(IntParam("Entier", 0, 255, 127), &Thresholding::threshold);
}
void operation() {
algorithm::Binarization_t<depth_default_t> thresholding(threshold);
GrayscaleImage* grayImg = imagein::Converter<GrayscaleImage>::convert(img);
......@@ -57,7 +57,7 @@ class Otsu : public PlugOperation {
Otsu() : PlugOperation("Otsu") {
this->addParam(CurrentImg(), &Otsu::img);
}
void operation() {
algorithm::Otsu_t<depth_default_t> otsu;
GrayscaleImage* grayImg = imagein::Converter<GrayscaleImage>::convert(img);
......@@ -74,7 +74,7 @@ class Dithering : public PlugOperation {
this->addParam(CurrentImg(), &Dithering::img);
// this->addParam(ImgParam("Image"), &Dithering::img);
}
void operation() {
algorithm::Dithering_t<depth_default_t> dithering;
Image* result = dithering(&img);
......
......@@ -22,11 +22,11 @@
#include "Image.h"
#include "../ImageEIICore/Operation.h"
#include "../ImageEIICore/Plugin.h"
#include "../ImageEIICore/ImgParam.h"
#include "../ImageEIICore/IntParam.h"
#include "../ImageEIICore/ImgOutput.h"
#include "Operation.h"
#include "Plugin.h"
#include "ImgParam.h"
#include "IntParam.h"
#include "ImgOutput.h"
using namespace std;
using namespace imagein;
......@@ -122,4 +122,4 @@ class MyPlugin : public Plugin {
extern "C" Plugin* getPlugin() {
Plugin* myPlugin = new MyPlugin("ImageRef");
return myPlugin;
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment