39 #pragma warning(push, 0) // no warnings from includes 44 #ifdef DLL_CORE_EXPORT 45 #define DllCoreExport Q_DECL_EXPORT 47 #define DllCoreExport Q_DECL_IMPORT 74 virtual QString toString()
const override;
76 void setMaxImageSide(
int maxSide);
77 int maxImageSide()
const;
86 void load(
const QSettings& settings)
override;
87 void save(QSettings& settings)
const override;
90 int mMaxImageSide = 1000;
100 double scaleFactor();
101 double scaleFactorDpi();
102 cv::Mat scaled(cv::Mat& img);
107 QSharedPointer<ScaleFactoryConfig>
config()
const;
108 void setConfig(QSharedPointer<ScaleFactoryConfig> c);
112 double mScaleFactor = 1.0;
113 QSharedPointer<ScaleFactoryConfig> mConfig;
Definition: BaseModule.h:63
Class that configures the ScaleFactory
Definition: ScaleFactory.h:62
Definition: ScaleFactory.h:67
#define DllCoreExport
Definition: BaseImageElement.h:43
ScaleSideMode
Definition: ScaleFactory.h:65
config
Definition: DependencyCollector.py:271
Definition: BaseImageElement.h:53
Definition: ScaleFactory.h:95
DllCoreExport bool save(const QImage &img, const QString &savePath, int compression=-1)
Saves the specified QImage img.
Definition: Image.cpp:180
DllCoreExport QImage load(const QString &path, bool *ok=0)
Definition: Image.cpp:152
Definition: Algorithms.cpp:45