master
zhou.mengjia 2 years ago
commit e8c27c27d1

@ -2,8 +2,5 @@
Identify the types and quantities of smoke boxes
这是南京烟草版本从屈帅龙那down过来较之前版本修改地方
这是基于南京烟草版本,把扫码器和传感器等功能做一个是否加载的选项
1、通讯里添加其他报错时的重启特别是网络波动造成的网络错误
2、LPV模板匹配采集的模板很大特征点很多Learn和Match很慢特别是后者常引起延误故而将大模板都缩小了50%

Binary file not shown.

@ -0,0 +1,8 @@
{
"ModuleParam": {
"CodeScan": 0,
"Sensor": 0,
"Camera2D": 4,
"Camera3D": 1
}
}

@ -0,0 +1,30 @@
Debug | 2024-01-03 17:13:11 ÖÜÈý | Decode smokeInfo from "D:/Code/Logistics/smokeboxidentification/runner17/Release\\user\\smokeInfo.xlsx" successed
Debug | 2024-01-03 17:13:11 ÖÜÈý | "D:/Code/Logistics/smokeboxidentification/runner17/Release\\templateNum" has not folder
Warning | 2024-01-03 17:13:11 ÖÜÈý | SerialNumber: "00J50359922" init failed
Warning | 2024-01-03 17:13:11 ÖÜÈý | QObject::moveToThread: Cannot move objects with a parent
Warning | 2024-01-03 17:13:12 ÖÜÈý | SerialNumber: "00J50359927" init failed
Warning | 2024-01-03 17:13:12 ÖÜÈý | SerialNumber: "00J50359938" init failed
Warning | 2024-01-03 17:13:12 ÖÜÈý | SerialNumber: "00J50359923" init failed
Warning | 2024-01-03 17:13:12 ÖÜÈý | SerialNumber: "00J50359918" init failed
Warning | 2024-01-03 17:13:13 ÖÜÈý | SerialNumber: "00J50359945" init failed
Debug | 2024-01-03 17:13:13 ÖÜÈý | m_vecPCamera size: 0
Debug | 2024-01-03 17:13:13 ÖÜÈý | init CategoryMatcher successed
Debug | 2024-01-03 17:13:14 ÖÜÈý | delete netControl
Debug | 2024-01-03 17:13:14 ÖÜÈý | delete netControl finished
Debug | 2024-01-03 17:16:05 ÖÜÈý | Decode smokeInfo from "D:/Code/Logistics/smokeboxidentification/runner17/Release\\user\\smokeInfo.xlsx" successed
Debug | 2024-01-03 17:16:05 ÖÜÈý | "D:/Code/Logistics/smokeboxidentification/runner17/Release\\templateNum" has not folder
Warning | 2024-01-03 17:16:05 ÖÜÈý | SerialNumber: "00J50359922" init failed
Warning | 2024-01-03 17:16:06 ÖÜÈý | QObject::moveToThread: Cannot move objects with a parent
Debug | 2024-01-03 17:16:06 ÖÜÈý | Sensor
Debug | 2024-01-03 17:16:06 ÖÜÈý | CodeScan
Debug | 2024-01-03 17:16:06 ÖÜÈý | connect yidadui
Warning | 2024-01-03 17:16:06 ÖÜÈý | SerialNumber: "00J50359927" init failed
Warning | 2024-01-03 17:16:06 ÖÜÈý | SerialNumber: "00J50359938" init failed
Warning | 2024-01-03 17:16:06 ÖÜÈý | SerialNumber: "00J50359923" init failed
Warning | 2024-01-03 17:16:06 ÖÜÈý | SerialNumber: "00J50359918" init failed
Warning | 2024-01-03 17:16:07 ÖÜÈý | SerialNumber: "00J50359945" init failed
Debug | 2024-01-03 17:16:07 ÖÜÈý | m_vecPCamera size: 0
Debug | 2024-01-03 17:16:07 ÖÜÈý | init CategoryMatcher successed
Debug | 2024-01-03 17:16:07 ÖÜÈý | over
Debug | 2024-01-03 17:16:09 ÖÜÈý | delete netControl
Debug | 2024-01-03 17:16:09 ÖÜÈý | delete netControl finished

Binary file not shown.

@ -0,0 +1,13 @@
#include "QModuleChoice.h"
QModuleChoice::QModuleChoice(QWidget *parent)
: QWidget(parent)
, ui(new Ui::QModuleChoiceClass())
{
ui->setupUi(this);
}
QModuleChoice::~QModuleChoice()
{
delete ui;
}

@ -0,0 +1,20 @@
#pragma once
#include <QWidget>
#include "ui_QModuleChoice.h"
QT_BEGIN_NAMESPACE
namespace Ui { class QModuleChoiceClass; };
QT_END_NAMESPACE
class QModuleChoice : public QWidget
{
Q_OBJECT
public:
QModuleChoice(QWidget *parent = nullptr);
~QModuleChoice();
private:
Ui::QModuleChoiceClass *ui;
};

@ -10,6 +10,8 @@ SmokeBoxIdentification::SmokeBoxIdentification(QWidget *parent)
ui.setupUi(this);
this->setWindowTitle(tr("ÑÌÏä¼ì²âϵͳ"));
//m_pShowRltImgLabel = ui.label_showImg;
moduleLoading();
connect(this, &SmokeBoxIdentification::sgCapture, CameraControl::instance(), &CameraControl::onCapture);
connect(CameraControl::instance(), &CameraControl::sgCapturedImage, this, &SmokeBoxIdentification::onCapturedImage);
@ -47,12 +49,22 @@ SmokeBoxIdentification::SmokeBoxIdentification(QWidget *parent)
m_pTcpClientThread->start();
connect(m_pNetControl, &NetControl::sgReceiveData, this, &SmokeBoxIdentification::onDecodeMsg, Qt::QueuedConnection);
connect(this, &SmokeBoxIdentification::sgSendMsg, m_pNetControl, &NetControl::onSendMsg, Qt::QueuedConnection);
ADModule::instance()->loadParameters(filePath);
filePath = applicationDirPath + COM_CONFIG;
lpSerialStation::instance()->loadParameters(filePath);
CodeScanStation::instance()->loadParameters(filePath);
lpSerialStation::instance()->openComs();
CodeScanStation::instance()->openComs();
if (m_moduleParam.Sensor != 0)
{
ADModule::instance()->loadParameters(filePath);
filePath = applicationDirPath + COM_CONFIG;
lpSerialStation::instance()->loadParameters(filePath);
lpSerialStation::instance()->openComs();
}
if (m_moduleParam.CodeScan != 0)
{
QString codeFilePath = applicationDirPath + COM_CONFIG;
CodeScanStation::instance()->loadParameters(filePath);
CodeScanStation::instance()->openComs();
}
m_pCategoryMatcher = new CategoryMatcher();
connect(CodeScanStation::instance(), &CodeScanStation::sgNewCodeScanData, lpSerialStation::instance()
, &lpSerialStation::onNewCodeScanResults);
@ -590,6 +602,7 @@ bool SmokeBoxIdentification::matchSmokeNameAndTemplateFolderName(const QString&
return true;
}
Q_SLOT void SmokeBoxIdentification::onSendEmptyCheckResults(const QMap<QString, int>& mapEmptyCheckResults)
{
QString emptyAll;
@ -665,4 +678,81 @@ void SmokeBoxIdentification::saveData2File(const QVector<QString>& strVec, QStri
savefile(filePath, vec);
qDebug() << "save " << strSide << " data to txt successfully";
}
}
void SmokeBoxIdentification::moduleLoading()
{
QString fileMyself = QCoreApplication::applicationDirPath() + MODULE_CONFIG;
QFile file(fileMyself);
if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
{
qWarning() << "打开文件失败!";
return;
}
QByteArray arr = file.readAll();
file.close();
if (arr.isEmpty())
{
qWarning() << "内容为空";
return;
}
QJsonParseError err;
QJsonDocument doc = QJsonDocument::fromJson(arr, &err);
if (doc.isEmpty())
{
qWarning() << err.errorString(); //打印失败信息
return;
}
QJsonObject jsMyself = doc.object();
QJsonObject ModuleParamObj = jsMyself.value("ModuleParam").toObject();
if (!ModuleParamObj.isEmpty()) {
m_moduleParam.CodeScan = ModuleParamObj.value("CodeScan").toInt();
m_moduleParam.Sensor = ModuleParamObj.value("Sensor").toInt();
m_moduleParam.Camera2D = ModuleParamObj.value("Camera2D").toInt();
m_moduleParam.Camera3D = ModuleParamObj.value("Camera3D").toInt();
}
//// 打开文本文件以读取模式
//QFile file(strName);
//if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
//{
// qDebug() << "Could not open file for reading.";
// QMessageBox::information(NULL, QStringLiteral("设置文件"), QStringLiteral("导入失败!"), QMessageBox::Ok);
// return;
//}
//// 创建 QTextStream 对象,并将其关联到文件
//QTextStream in(&file);
//int row = 0;
//// 读取所有行
//while (!in.atEnd())
//{
// ++row;
// // 从文本流中读取一行数据
// QString line = in.readLine();
// // 使用tab分割字符串为数组
// QStringList values = line.split(' ');
// if (row <= 3)
// {
// pts[(Axis)values[0].toInt()].first = values[1].toDouble();
// pts[(Axis)values[0].toInt()].second = values[2].toDouble();
// }
// else
// {
// m_basicPlane.A = values[0].toDouble();
// m_basicPlane.B = values[1].toDouble();
// m_basicPlane.C = values[2].toDouble();
// m_basicPlane.D = values[3].toDouble();
// }
//}
//// 关闭文件
//file.close();
}

@ -97,6 +97,23 @@ struct StockCheckInfo
//}
};
struct ModuleParam
{
int CodeScan; // 扫码器数量0为不安装扫码器
int Sensor; // 传感器数量0为不安装传感器
int Camera2D; // 2D相机数量
int Camera3D; // 3D相机数量
ModuleParam()
{
CodeScan = 1;
Sensor = 1;
Camera2D = 2;
Camera3D = 2;
}
};
class SmokeBoxIdentification : public QMainWindow
{
Q_OBJECT
@ -146,6 +163,11 @@ private:
bool m_bDataCollection{ false };
//bool m_bCamerasInit{ false };
void moduleLoading();
ModuleParam m_moduleParam;
QMap<QString, QString> m_mapSmokeCode2Name;
QMap<QString, QString> m_mapSmokeName2TemplateFolderName;

@ -15,10 +15,12 @@
#define DELETE_POINTER(p) if (p) {delete p; p = NULL;}
#define MODULE_CONFIG "\\config\\module.json"
#define CAMERA_CONFIG "\\config\\camera.json"
#define NET_CONFIG "\\config\\netSetting.json"
#define COM_CONFIG "\\config\\comSetting.json"
#define MATCHER_CONFIG "\\config\\match.json"
#define SMOKEINFO_XLSX_CONFIG "\\user\\smokeInfo.xlsx"
#define FILE_STORAGE_PATH ".\\fileData"
#define INTOSTOCK_IMAGE_FOLDER "intoStock"

@ -44,7 +44,7 @@ public:
SmokeBoxIdentificationClass->setCentralWidget(centralWidget);
menuBar = new QMenuBar(SmokeBoxIdentificationClass);
menuBar->setObjectName(QStringLiteral("menuBar"));
menuBar->setGeometry(QRect(0, 0, 735, 34));
menuBar->setGeometry(QRect(0, 0, 735, 23));
SmokeBoxIdentificationClass->setMenuBar(menuBar);
mainToolBar = new QToolBar(SmokeBoxIdentificationClass);
mainToolBar->setObjectName(QStringLiteral("mainToolBar"));
@ -54,6 +54,7 @@ public:
SmokeBoxIdentificationClass->setStatusBar(statusBar);
mainToolBar->addAction(action_templateNum);
mainToolBar->addSeparator();
retranslateUi(SmokeBoxIdentificationClass);

@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>QModuleChoiceClass</class>
<widget class="QWidget" name="QModuleChoiceClass">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>190</width>
<height>111</height>
</rect>
</property>
<property name="windowTitle">
<string>QModuleChoice</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="1" column="0">
<widget class="QCheckBox" name="checkBox_2">
<property name="text">
<string>扫码器</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QCheckBox" name="checkBox">
<property name="text">
<string>传感器</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label">
<property name="text">
<string>请选择应用的模块:</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QPushButton" name="pushButton">
<property name="text">
<string>确定</string>
</property>
</widget>
</item>
</layout>
</widget>
<layoutdefault spacing="6" margin="11"/>
<resources/>
<connections/>
</ui>

@ -26,7 +26,7 @@
<x>0</x>
<y>0</y>
<width>735</width>
<height>34</height>
<height>23</height>
</rect>
</property>
</widget>
@ -38,6 +38,7 @@
<bool>false</bool>
</attribute>
<addaction name="action_templateNum"/>
<addaction name="separator"/>
</widget>
<widget class="QStatusBar" name="statusBar"/>
<action name="action_templateNum">

@ -1,27 +0,0 @@
Debug | 2023-12-28 14:10:32 ÖÜËÄ | Decode smokeInfo from "D:/Code/Logistics/smokeboxidentification/tpvs17/../runner17/Release\\user\\smokeInfo.xlsx" successed
Warning | 2023-12-28 14:10:32 ÖÜËÄ | "D:/Code/Logistics/smokeboxidentification/tpvs17/../runner17/Release\\templateNum" is not exist
Warning | 2023-12-28 14:10:32 ÖÜËÄ | Do not found any device!
Warning | 2023-12-28 14:10:32 ÖÜËÄ | SerialNumber: "00J50359922" init failed
Warning | 2023-12-28 14:10:32 ÖÜËÄ | Do not found any device!
Warning | 2023-12-28 14:10:32 ÖÜËÄ | SerialNumber: "00J50359927" init failed
Warning | 2023-12-28 14:10:32 ÖÜËÄ | Do not found any device!
Warning | 2023-12-28 14:10:32 ÖÜËÄ | SerialNumber: "00J50359938" init failed
Warning | 2023-12-28 14:10:32 ÖÜËÄ | Do not found any device!
Warning | 2023-12-28 14:10:32 ÖÜËÄ | SerialNumber: "00J50359923" init failed
Warning | 2023-12-28 14:10:32 ÖÜËÄ | Do not found any device!
Warning | 2023-12-28 14:10:32 ÖÜËÄ | SerialNumber: "00J50359918" init failed
Warning | 2023-12-28 14:10:32 ÖÜËÄ | QObject::moveToThread: Cannot move objects with a parent
Debug | 2023-12-28 14:10:32 ÖÜËÄ | ADModule load param successed
Debug | 2023-12-28 14:10:32 ÖÜËÄ | SensorsCom load param successed
Debug | 2023-12-28 14:10:32 ÖÜËÄ | Code scan load param successed
Debug | 2023-12-28 14:10:32 ÖÜËÄ | open "COM8" fail.
Debug | 2023-12-28 14:10:32 ÖÜËÄ | open "COM8" fail.
Debug | 2023-12-28 14:10:32 ÖÜËÄ | open "COM1" fail.
Debug | 2023-12-28 14:10:32 ÖÜËÄ | open "COM7" fail.
Debug | 2023-12-28 14:10:32 ÖÜËÄ | "COM7 not found! open failed."
Warning | 2023-12-28 14:10:33 ÖÜËÄ | Do not found any device!
Warning | 2023-12-28 14:10:33 ÖÜËÄ | SerialNumber: "00J50359945" init failed
Debug | 2023-12-28 14:10:33 ÖÜËÄ | m_vecPCamera size: 0
Debug | 2023-12-28 14:10:36 ÖÜËÄ | init CategoryMatcher successed
Debug | 2023-12-28 14:10:39 ÖÜËÄ | delete netControl
Debug | 2023-12-28 14:10:39 ÖÜËÄ | delete netControl finished

@ -0,0 +1,17 @@
Debug | 2024-01-03 17:17:31 ÖÜÈý | Decode smokeInfo from "D:/Code/Logistics/smokeboxidentification/tpvs17/../runner17/Release\\user\\smokeInfo.xlsx" successed
Debug | 2024-01-03 17:17:31 ÖÜÈý | "D:/Code/Logistics/smokeboxidentification/tpvs17/../runner17/Release\\templateNum" has not folder
Warning | 2024-01-03 17:17:31 ÖÜÈý | SerialNumber: "00J50359922" init failed
Warning | 2024-01-03 17:17:32 ÖÜÈý | QObject::moveToThread: Cannot move objects with a parent
Debug | 2024-01-03 17:17:32 ÖÜÈý | Sensor
Debug | 2024-01-03 17:17:32 ÖÜÈý | CodeScan
Debug | 2024-01-03 17:17:32 ÖÜÈý | connect yidadui
Warning | 2024-01-03 17:17:32 ÖÜÈý | SerialNumber: "00J50359927" init failed
Warning | 2024-01-03 17:17:32 ÖÜÈý | SerialNumber: "00J50359938" init failed
Warning | 2024-01-03 17:17:32 ÖÜÈý | SerialNumber: "00J50359923" init failed
Warning | 2024-01-03 17:17:32 ÖÜÈý | SerialNumber: "00J50359918" init failed
Warning | 2024-01-03 17:17:32 ÖÜÈý | SerialNumber: "00J50359945" init failed
Debug | 2024-01-03 17:17:32 ÖÜÈý | m_vecPCamera size: 0
Debug | 2024-01-03 17:17:33 ÖÜÈý | init CategoryMatcher successed
Debug | 2024-01-03 17:17:33 ÖÜÈý | over
Debug | 2024-01-03 17:17:34 ÖÜÈý | delete netControl
Debug | 2024-01-03 17:17:34 ÖÜÈý | delete netControl finished

@ -1,2 +0,0 @@
#TargetFrameworkVersion=v4.0:PlatformToolSet=v141:EnableManagedIncrementalBuild=false:VCToolArchitecture=Native32Bit:WindowsTargetPlatformVersion=10.0.17763.0
Release|x64|D:\Code\Logistics\smokeboxidentification\tpvs17\|

@ -1,44 +0,0 @@
 ADModule.cpp
d:\code\logistics\smokeboxidentification\src\numstatisticalgo\datapreprocessing.h(17): warning C4005: “TYPE_TEMPLATE_PATH”: 宏重定义
d:\code\logistics\smokeboxidentification\src\common\commondefine.h(25): note: 参见“TYPE_TEMPLATE_PATH”的前一个定义
CameraControl.cpp
CategoryMatcher.cpp
CodeScanStation.cpp
log.cpp
HikCamera.cpp
lpSerialStation.cpp
main.cpp
d:\code\logistics\smokeboxidentification\src\numstatisticalgo\datapreprocessing.h(17): warning C4005: “TYPE_TEMPLATE_PATH”: 宏重定义
d:\code\logistics\smokeboxidentification\src\common\commondefine.h(25): note: 参见“TYPE_TEMPLATE_PATH”的前一个定义
NetControl.cpp
QNumTemplateBuild.cpp
d:\code\logistics\smokeboxidentification\src\common\commondefine.h(25): warning C4005: “TYPE_TEMPLATE_PATH”: 宏重定义
d:\code\logistics\smokeboxidentification\src\numstatisticalgo\datapreprocessing.h(17): note: 参见“TYPE_TEMPLATE_PATH”的前一个定义
SmokeBoxIdentification.cpp
d:\code\logistics\smokeboxidentification\src\numstatisticalgo\datapreprocessing.h(17): warning C4005: “TYPE_TEMPLATE_PATH”: 宏重定义
d:\code\logistics\smokeboxidentification\src\common\commondefine.h(25): note: 参见“TYPE_TEMPLATE_PATH”的前一个定义
正在生成代码...
d:\code\logistics\smokeboxidentification\src\smokeboxidentification.cpp(655): warning C4715: “<lambda_a85bf304e507d328383bd1183e856dec>::operator()”: 不是所有的控件路径都返回值
qrc_SmokeBoxIdentification.cpp
moc_ADModule.cpp
d:\code\logistics\smokeboxidentification\src\numstatisticalgo\datapreprocessing.h(17): warning C4005: “TYPE_TEMPLATE_PATH”: 宏重定义
d:\code\logistics\smokeboxidentification\src\common\commondefine.h(25): note: 参见“TYPE_TEMPLATE_PATH”的前一个定义
moc_Camera.cpp
moc_CameraControl.cpp
moc_CategoryMatcher.cpp
moc_CodeScanStation.cpp
moc_QNumTemplateBuild.cpp
d:\code\logistics\smokeboxidentification\src\common\commondefine.h(25): warning C4005: “TYPE_TEMPLATE_PATH”: 宏重定义
d:\code\logistics\smokeboxidentification\src\numstatisticalgo\datapreprocessing.h(17): note: 参见“TYPE_TEMPLATE_PATH”的前一个定义
moc_SmokeBoxIdentification.cpp
d:\code\logistics\smokeboxidentification\src\numstatisticalgo\datapreprocessing.h(17): warning C4005: “TYPE_TEMPLATE_PATH”: 宏重定义
d:\code\logistics\smokeboxidentification\src\common\commondefine.h(25): note: 参见“TYPE_TEMPLATE_PATH”的前一个定义
moc_NetControl.cpp
moc_lpSerialStation.cpp
moc_HikCamera.cpp
正在生成代码...
numStatisticAlgo.lib(dataPreProcessing.obj) : 找到 MSIL .netmodule 或使用 /GL 编译的模块;正在使用 /LTCG 重新启动链接;将 /LTCG 添加到链接命令行以改进链接器性能
正在生成代码
e:\code\smokeboxidentification\src\numstatisticalgo\datapreprocessing.cpp(947): warning C4715: “<lambda_63b63ab422519efe88b265803e20ed9a>::operator()”: 不是所有的控件路径都返回值
已完成代码的生成
SmokeBoxIdentification.vcxproj -> D:\Code\Logistics\smokeboxidentification\tpvs17\..\runner17\Release\smokeBox.exe

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1,378 +0,0 @@
// Created by Microsoft (R) C/C++ Compiler Version 14.16.27051.0 (739a92f1).
//
// d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvGeomX.tlh
//
// C++ source equivalent of Win32 type library 02517f91-b197-4cd5-a1b5-92d1da6ca9ce
// compiler-generated file created 12/28/23 at 14:09:51 - DO NOT EDIT!
//
// Cross-referenced type libraries:
//
//
#pragma once
#pragma pack(push, 8)
#include <comdef.h>
//
// Forward references and typedefs
//
struct __declspec(uuid("02517f91-b197-4cd5-a1b5-92d1da6ca9ce"))
/* LIBID */ __LPVGeomXLib;
enum LPVSortedArrayDrawFlags;
struct __declspec(uuid("18d6bce0-257a-4c4c-a8a3-c23ff1ffa7d9"))
/* dual interface */ ILSortedArray;
struct __declspec(uuid("e521cc81-60e4-4d70-829c-ab54ecd41671"))
/* dual interface */ ILGeomOp;
struct __declspec(uuid("20f82bdf-ef37-4e91-897f-6be7e74d5cbe"))
/* dual interface */ ILSorter;
struct __declspec(uuid("50db3b8b-dc90-4c91-8900-cef9f74ad644"))
/* dual interface */ ILPolygonClipper;
struct /* coclass */ LGeomOp;
struct /* coclass */ LSorter;
struct /* coclass */ LSortedArray;
struct /* coclass */ LPolygonClipper;
//
// Smart pointer typedef declarations
//
_COM_SMARTPTR_TYPEDEF(ILSortedArray, __uuidof(ILSortedArray));
_COM_SMARTPTR_TYPEDEF(ILGeomOp, __uuidof(ILGeomOp));
_COM_SMARTPTR_TYPEDEF(ILSorter, __uuidof(ILSorter));
_COM_SMARTPTR_TYPEDEF(ILPolygonClipper, __uuidof(ILPolygonClipper));
//
// Type library items
//
enum LPVSortedArrayDrawFlags
{
LPVSortedArrayDrawPosition = 1,
LPVSortedArrayDrawIndex = 2,
LPVSortedArrayDrawFiltered = 4,
LPVSortedArrayDrawMissing = 8,
LPVSortedArrayDrawRowLines = 16,
LPVSortedArrayDrawColumnLines = 32,
LPVSortedArrayDrawDefault = 3,
LPVSortedArrayDrawAll = 255
};
struct __declspec(uuid("18d6bce0-257a-4c4c-a8a3-c23ff1ffa7d9"))
ILSortedArray : IDispatch
{
//
// Property data
//
__declspec(property(get=GetRowCount))
int RowCount;
__declspec(property(get=GetColumnCount))
int ColumnCount;
__declspec(property(get=GetHasItem))
VARIANT_BOOL HasItem[][];
__declspec(property(get=GetItem))
ILSortablePtr Item[][];
__declspec(property(get=GetPosition))
ILPointPtr Position[][];
__declspec(property(get=GetRowLine))
ILLinePtr RowLine[];
__declspec(property(get=GetColumnLine))
ILLinePtr ColumnLine[];
__declspec(property(get=GetAvgRowSpace))
double AvgRowSpace;
__declspec(property(get=GetAvgColumnSpace))
double AvgColumnSpace;
__declspec(property(get=GetFilteredCount))
int FilteredCount;
__declspec(property(get=GetItemFiltered))
ILSortablePtr ItemFiltered[];
//
// Wrapper methods for error-handling
//
int GetRowCount ( );
int GetColumnCount ( );
VARIANT_BOOL GetHasItem (
int columnIndex,
int rowIndex );
ILSortablePtr GetItem (
int columnIndex,
int rowIndex );
ILPointPtr GetPosition (
int columnIndex,
int rowIndex );
ILLinePtr GetRowLine (
int rowIndex );
ILLinePtr GetColumnLine (
int columnIndex );
double GetAvgRowSpace ( );
double GetAvgColumnSpace ( );
HRESULT Draw (
void * hdc,
enum LPVSortedArrayDrawFlags drawFlags,
double zoomX,
double zoomY,
double panX,
double panY );
int GetFilteredCount ( );
ILSortablePtr GetItemFiltered (
int index );
HRESULT Reset ( );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_RowCount (
/*[out,retval]*/ int * val ) = 0;
virtual HRESULT __stdcall get_ColumnCount (
/*[out,retval]*/ int * val ) = 0;
virtual HRESULT __stdcall get_HasItem (
/*[in]*/ int columnIndex,
/*[in]*/ int rowIndex,
/*[out,retval]*/ VARIANT_BOOL * val ) = 0;
virtual HRESULT __stdcall get_Item (
/*[in]*/ int columnIndex,
/*[in]*/ int rowIndex,
/*[out,retval]*/ struct ILSortable * * sortable ) = 0;
virtual HRESULT __stdcall get_Position (
/*[in]*/ int columnIndex,
/*[in]*/ int rowIndex,
/*[out,retval]*/ struct ILPoint * * posPoint ) = 0;
virtual HRESULT __stdcall get_RowLine (
/*[in]*/ int rowIndex,
/*[out,retval]*/ struct ILLine * * RowLine ) = 0;
virtual HRESULT __stdcall get_ColumnLine (
/*[in]*/ int columnIndex,
/*[out,retval]*/ struct ILLine * * ColumnLine ) = 0;
virtual HRESULT __stdcall get_AvgRowSpace (
/*[out,retval]*/ double * val ) = 0;
virtual HRESULT __stdcall get_AvgColumnSpace (
/*[out,retval]*/ double * val ) = 0;
virtual HRESULT __stdcall raw_Draw (
/*[in]*/ void * hdc,
/*[in]*/ enum LPVSortedArrayDrawFlags drawFlags,
/*[in]*/ double zoomX,
/*[in]*/ double zoomY,
/*[in]*/ double panX,
/*[in]*/ double panY ) = 0;
virtual HRESULT __stdcall get_FilteredCount (
/*[out,retval]*/ int * val ) = 0;
virtual HRESULT __stdcall get_ItemFiltered (
/*[in]*/ int index,
/*[out,retval]*/ struct ILSortable * * sortable ) = 0;
virtual HRESULT __stdcall raw_Reset ( ) = 0;
};
struct __declspec(uuid("e521cc81-60e4-4d70-829c-ab54ecd41671"))
ILGeomOp : IDispatch
{
//
// Wrapper methods for error-handling
//
ILRectPtr InnerRect (
struct ILImage * mask );
ILRectPtr InnerSquare (
struct ILImage * mask );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall raw_InnerRect (
/*[in]*/ struct ILImage * mask,
/*[out,retval]*/ struct ILRect * * resultRect ) = 0;
virtual HRESULT __stdcall raw_InnerSquare (
/*[in]*/ struct ILImage * mask,
/*[out,retval]*/ struct ILRect * * resultSquare ) = 0;
};
struct __declspec(uuid("20f82bdf-ef37-4e91-897f-6be7e74d5cbe"))
ILSorter : IDispatch
{
//
// Wrapper methods for error-handling
//
HRESULT SetSource (
struct ILSortables * sortables );
HRESULT SetSource2 (
SAFEARRAY * sortableArray );
enum LPVErrorCode SortToArray (
enum LPVPositionMode posMode,
double columnSpaceAppr,
double rowSpaceAppr,
double toleranceFactor,
struct ILSortedArray * * sortedResult );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall raw_SetSource (
/*[in]*/ struct ILSortables * sortables ) = 0;
virtual HRESULT __stdcall raw_SetSource2 (
/*[in]*/ SAFEARRAY * sortableArray ) = 0;
virtual HRESULT __stdcall raw_SortToArray (
/*[in]*/ enum LPVPositionMode posMode,
/*[in]*/ double columnSpaceAppr,
/*[in]*/ double rowSpaceAppr,
/*[in]*/ double toleranceFactor,
/*[out]*/ struct ILSortedArray * * sortedResult,
/*[out,retval]*/ enum LPVErrorCode * error ) = 0;
};
struct __declspec(uuid("50db3b8b-dc90-4c91-8900-cef9f74ad644"))
ILPolygonClipper : IDispatch
{
//
// Wrapper methods for error-handling
//
ILPolygonPtr Smooth (
struct ILPolygon * poly,
double nbRange );
ILPolygonPtr SmoothIterative (
struct ILPolygon * poly,
double filterNbRng,
double updateNbRng,
int maxIterCount,
double stopCriteria );
ILPolygonPtr Simplify (
struct ILPolygon * poly,
int maxVertexes,
double areaThreshold,
double angleThreshold );
ILPolygonPtr SimplifyDP (
struct ILPolygon * poly,
double distThreshold );
ILPolygonPtr TrimCollinear (
struct ILPolygon * poly );
ILPolygonPtr Expand (
struct ILPolygon * poly,
double delta,
double miterLimit );
ILPolygonPtr Shrink (
struct ILPolygon * poly,
double delta,
double miterLimit );
SAFEARRAY * Union (
struct ILPolygon * poly1,
struct ILPolygon * poly2 );
ILPolygonPtr Union1 (
struct ILPolygon * poly1,
struct ILPolygon * poly2 );
SAFEARRAY * Subtract (
struct ILPolygon * poly1,
struct ILPolygon * poly2 );
ILPolygonPtr Subtract1 (
struct ILPolygon * poly1,
struct ILPolygon * poly2 );
SAFEARRAY * Intersect (
struct ILPolygon * poly1,
struct ILPolygon * poly2 );
ILPolygonPtr Intersect1 (
struct ILPolygon * poly1,
struct ILPolygon * poly2 );
SAFEARRAY * XOR (
struct ILPolygon * poly1,
struct ILPolygon * poly2 );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall raw_Smooth (
/*[in]*/ struct ILPolygon * poly,
/*[in]*/ double nbRange,
/*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0;
virtual HRESULT __stdcall raw_SmoothIterative (
/*[in]*/ struct ILPolygon * poly,
/*[in]*/ double filterNbRng,
/*[in]*/ double updateNbRng,
/*[in]*/ int maxIterCount,
/*[in]*/ double stopCriteria,
/*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0;
virtual HRESULT __stdcall raw_Simplify (
/*[in]*/ struct ILPolygon * poly,
/*[in]*/ int maxVertexes,
/*[in]*/ double areaThreshold,
/*[in]*/ double angleThreshold,
/*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0;
virtual HRESULT __stdcall raw_SimplifyDP (
/*[in]*/ struct ILPolygon * poly,
/*[in]*/ double distThreshold,
/*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0;
virtual HRESULT __stdcall raw_TrimCollinear (
/*[in]*/ struct ILPolygon * poly,
/*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0;
virtual HRESULT __stdcall raw_Expand (
/*[in]*/ struct ILPolygon * poly,
/*[in]*/ double delta,
/*[in]*/ double miterLimit,
/*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0;
virtual HRESULT __stdcall raw_Shrink (
/*[in]*/ struct ILPolygon * poly,
/*[in]*/ double delta,
/*[in]*/ double miterLimit,
/*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0;
virtual HRESULT __stdcall raw_Union (
/*[in]*/ struct ILPolygon * poly1,
/*[in]*/ struct ILPolygon * poly2,
/*[out,retval]*/ SAFEARRAY * * resultPolys ) = 0;
virtual HRESULT __stdcall raw_Union1 (
/*[in]*/ struct ILPolygon * poly1,
/*[in]*/ struct ILPolygon * poly2,
/*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0;
virtual HRESULT __stdcall raw_Subtract (
/*[in]*/ struct ILPolygon * poly1,
/*[in]*/ struct ILPolygon * poly2,
/*[out,retval]*/ SAFEARRAY * * resultPolys ) = 0;
virtual HRESULT __stdcall raw_Subtract1 (
/*[in]*/ struct ILPolygon * poly1,
/*[in]*/ struct ILPolygon * poly2,
/*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0;
virtual HRESULT __stdcall raw_Intersect (
/*[in]*/ struct ILPolygon * poly1,
/*[in]*/ struct ILPolygon * poly2,
/*[out,retval]*/ SAFEARRAY * * resultPolys ) = 0;
virtual HRESULT __stdcall raw_Intersect1 (
/*[in]*/ struct ILPolygon * poly1,
/*[in]*/ struct ILPolygon * poly2,
/*[out,retval]*/ struct ILPolygon * * resultPoly ) = 0;
virtual HRESULT __stdcall raw_XOR (
/*[in]*/ struct ILPolygon * poly1,
/*[in]*/ struct ILPolygon * poly2,
/*[out,retval]*/ SAFEARRAY * * resultPolys ) = 0;
};
struct __declspec(uuid("d35c7edc-02af-4f65-8c04-cfc4150ade69"))
LGeomOp;
// [ default ] interface ILGeomOp
struct __declspec(uuid("200e31b1-c00a-4530-b811-4c763235a062"))
LSorter;
// [ default ] interface ILSorter
// interface ILSortables
struct __declspec(uuid("d3568c16-e90b-4db4-8449-dd3536757a30"))
LSortedArray;
// [ default ] interface ILSortedArray
// interface ILDrawable
struct __declspec(uuid("9816d73e-b81c-435f-ab2d-67d6c7860a64"))
LPolygonClipper;
// [ default ] interface ILPolygonClipper
//
// Wrapper method implementations
//
#include "d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvGeomX.tli"
#pragma pack(pop)

@ -1,244 +0,0 @@
// Created by Microsoft (R) C/C++ Compiler Version 14.16.27051.0 (739a92f1).
//
// d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvGeomX.tli
//
// Wrapper implementations for Win32 type library 02517f91-b197-4cd5-a1b5-92d1da6ca9ce
// compiler-generated file created 12/28/23 at 14:09:51 - DO NOT EDIT!
#pragma once
//
// interface ILSortedArray wrapper method implementations
//
inline int ILSortedArray::GetRowCount ( ) {
int _result = 0;
HRESULT _hr = get_RowCount(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline int ILSortedArray::GetColumnCount ( ) {
int _result = 0;
HRESULT _hr = get_ColumnCount(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline VARIANT_BOOL ILSortedArray::GetHasItem ( int columnIndex, int rowIndex ) {
VARIANT_BOOL _result = 0;
HRESULT _hr = get_HasItem(columnIndex, rowIndex, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline ILSortablePtr ILSortedArray::GetItem ( int columnIndex, int rowIndex ) {
struct ILSortable * _result = 0;
HRESULT _hr = get_Item(columnIndex, rowIndex, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILSortablePtr(_result, false);
}
inline ILPointPtr ILSortedArray::GetPosition ( int columnIndex, int rowIndex ) {
struct ILPoint * _result = 0;
HRESULT _hr = get_Position(columnIndex, rowIndex, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILPointPtr(_result, false);
}
inline ILLinePtr ILSortedArray::GetRowLine ( int rowIndex ) {
struct ILLine * _result = 0;
HRESULT _hr = get_RowLine(rowIndex, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILLinePtr(_result, false);
}
inline ILLinePtr ILSortedArray::GetColumnLine ( int columnIndex ) {
struct ILLine * _result = 0;
HRESULT _hr = get_ColumnLine(columnIndex, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILLinePtr(_result, false);
}
inline double ILSortedArray::GetAvgRowSpace ( ) {
double _result = 0;
HRESULT _hr = get_AvgRowSpace(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline double ILSortedArray::GetAvgColumnSpace ( ) {
double _result = 0;
HRESULT _hr = get_AvgColumnSpace(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT ILSortedArray::Draw ( void * hdc, enum LPVSortedArrayDrawFlags drawFlags, double zoomX, double zoomY, double panX, double panY ) {
HRESULT _hr = raw_Draw(hdc, drawFlags, zoomX, zoomY, panX, panY);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline int ILSortedArray::GetFilteredCount ( ) {
int _result = 0;
HRESULT _hr = get_FilteredCount(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline ILSortablePtr ILSortedArray::GetItemFiltered ( int index ) {
struct ILSortable * _result = 0;
HRESULT _hr = get_ItemFiltered(index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILSortablePtr(_result, false);
}
inline HRESULT ILSortedArray::Reset ( ) {
HRESULT _hr = raw_Reset();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface ILGeomOp wrapper method implementations
//
inline ILRectPtr ILGeomOp::InnerRect ( struct ILImage * mask ) {
struct ILRect * _result = 0;
HRESULT _hr = raw_InnerRect(mask, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILRectPtr(_result, false);
}
inline ILRectPtr ILGeomOp::InnerSquare ( struct ILImage * mask ) {
struct ILRect * _result = 0;
HRESULT _hr = raw_InnerSquare(mask, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILRectPtr(_result, false);
}
//
// interface ILSorter wrapper method implementations
//
inline HRESULT ILSorter::SetSource ( struct ILSortables * sortables ) {
HRESULT _hr = raw_SetSource(sortables);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILSorter::SetSource2 ( SAFEARRAY * sortableArray ) {
HRESULT _hr = raw_SetSource2(sortableArray);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline enum LPVErrorCode ILSorter::SortToArray ( enum LPVPositionMode posMode, double columnSpaceAppr, double rowSpaceAppr, double toleranceFactor, struct ILSortedArray * * sortedResult ) {
enum LPVErrorCode _result;
HRESULT _hr = raw_SortToArray(posMode, columnSpaceAppr, rowSpaceAppr, toleranceFactor, sortedResult, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// interface ILPolygonClipper wrapper method implementations
//
inline ILPolygonPtr ILPolygonClipper::Smooth ( struct ILPolygon * poly, double nbRange ) {
struct ILPolygon * _result = 0;
HRESULT _hr = raw_Smooth(poly, nbRange, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILPolygonPtr(_result, false);
}
inline ILPolygonPtr ILPolygonClipper::SmoothIterative ( struct ILPolygon * poly, double filterNbRng, double updateNbRng, int maxIterCount, double stopCriteria ) {
struct ILPolygon * _result = 0;
HRESULT _hr = raw_SmoothIterative(poly, filterNbRng, updateNbRng, maxIterCount, stopCriteria, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILPolygonPtr(_result, false);
}
inline ILPolygonPtr ILPolygonClipper::Simplify ( struct ILPolygon * poly, int maxVertexes, double areaThreshold, double angleThreshold ) {
struct ILPolygon * _result = 0;
HRESULT _hr = raw_Simplify(poly, maxVertexes, areaThreshold, angleThreshold, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILPolygonPtr(_result, false);
}
inline ILPolygonPtr ILPolygonClipper::SimplifyDP ( struct ILPolygon * poly, double distThreshold ) {
struct ILPolygon * _result = 0;
HRESULT _hr = raw_SimplifyDP(poly, distThreshold, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILPolygonPtr(_result, false);
}
inline ILPolygonPtr ILPolygonClipper::TrimCollinear ( struct ILPolygon * poly ) {
struct ILPolygon * _result = 0;
HRESULT _hr = raw_TrimCollinear(poly, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILPolygonPtr(_result, false);
}
inline ILPolygonPtr ILPolygonClipper::Expand ( struct ILPolygon * poly, double delta, double miterLimit ) {
struct ILPolygon * _result = 0;
HRESULT _hr = raw_Expand(poly, delta, miterLimit, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILPolygonPtr(_result, false);
}
inline ILPolygonPtr ILPolygonClipper::Shrink ( struct ILPolygon * poly, double delta, double miterLimit ) {
struct ILPolygon * _result = 0;
HRESULT _hr = raw_Shrink(poly, delta, miterLimit, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILPolygonPtr(_result, false);
}
inline SAFEARRAY * ILPolygonClipper::Union ( struct ILPolygon * poly1, struct ILPolygon * poly2 ) {
SAFEARRAY * _result = 0;
HRESULT _hr = raw_Union(poly1, poly2, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline ILPolygonPtr ILPolygonClipper::Union1 ( struct ILPolygon * poly1, struct ILPolygon * poly2 ) {
struct ILPolygon * _result = 0;
HRESULT _hr = raw_Union1(poly1, poly2, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILPolygonPtr(_result, false);
}
inline SAFEARRAY * ILPolygonClipper::Subtract ( struct ILPolygon * poly1, struct ILPolygon * poly2 ) {
SAFEARRAY * _result = 0;
HRESULT _hr = raw_Subtract(poly1, poly2, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline ILPolygonPtr ILPolygonClipper::Subtract1 ( struct ILPolygon * poly1, struct ILPolygon * poly2 ) {
struct ILPolygon * _result = 0;
HRESULT _hr = raw_Subtract1(poly1, poly2, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILPolygonPtr(_result, false);
}
inline SAFEARRAY * ILPolygonClipper::Intersect ( struct ILPolygon * poly1, struct ILPolygon * poly2 ) {
SAFEARRAY * _result = 0;
HRESULT _hr = raw_Intersect(poly1, poly2, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline ILPolygonPtr ILPolygonClipper::Intersect1 ( struct ILPolygon * poly1, struct ILPolygon * poly2 ) {
struct ILPolygon * _result = 0;
HRESULT _hr = raw_Intersect1(poly1, poly2, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILPolygonPtr(_result, false);
}
inline SAFEARRAY * ILPolygonClipper::XOR ( struct ILPolygon * poly1, struct ILPolygon * poly2 ) {
SAFEARRAY * _result = 0;
HRESULT _hr = raw_XOR(poly1, poly2, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}

File diff suppressed because it is too large Load Diff

@ -1,761 +0,0 @@
// Created by Microsoft (R) C/C++ Compiler Version 14.16.27051.0 (656e3eff).
//
// d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvImgProc.tli
//
// Wrapper implementations for Win32 type library 29c8366a-f227-4cc4-bdbb-b32397056cf5
// compiler-generated file created 12/28/23 at 14:09:51 - DO NOT EDIT!
#pragma once
//
// interface ILImageThreshold wrapper method implementations
//
inline HRESULT ILImageThreshold::SetThreshold ( int lb, int ub ) {
HRESULT _hr = raw_SetThreshold(lb, ub);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageThreshold::SetThresholdAdaptGlobal ( int lbBias, int ubBias ) {
HRESULT _hr = raw_SetThresholdAdaptGlobal(lbBias, ubBias);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageThreshold::SetThresholdAdaptLocal ( int blockWidth, int blockHeight, int lbBias, int ubBias ) {
HRESULT _hr = raw_SetThresholdAdaptLocal(blockWidth, blockHeight, lbBias, ubBias);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageThreshold::Binarize ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_Binarize(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageThreshold::ThresholdDistance ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_ThresholdDistance(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageThreshold::Clip ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_Clip(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageThreshold::Stretch ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_Stretch(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline enum LPVThresholdType ILImageThreshold::GetThresholdType ( ) {
enum LPVThresholdType _result;
HRESULT _hr = get_ThresholdType(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline int ILImageThreshold::GetThresholdLB ( ) {
int _result = 0;
HRESULT _hr = get_ThresholdLB(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline int ILImageThreshold::GetThresholdUB ( ) {
int _result = 0;
HRESULT _hr = get_ThresholdUB(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline int ILImageThreshold::GetThresholdLBBias ( ) {
int _result = 0;
HRESULT _hr = get_ThresholdLBBias(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline int ILImageThreshold::GetThresholdUBBias ( ) {
int _result = 0;
HRESULT _hr = get_ThresholdUBBias(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline int ILImageThreshold::GetLocalBlockWidth ( ) {
int _result = 0;
HRESULT _hr = get_LocalBlockWidth(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline int ILImageThreshold::GetLocalBlockHeight ( ) {
int _result = 0;
HRESULT _hr = get_LocalBlockHeight(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// interface ILImageFilter wrapper method implementations
//
inline HRESULT ILImageFilter::SetKernelSize ( int kWidth, int kHeight ) {
HRESULT _hr = raw_SetKernelSize(kWidth, kHeight);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageFilter::SetKernelSigma ( double kSigma, double kGain ) {
HRESULT _hr = raw_SetKernelSigma(kSigma, kGain);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageFilter::Equalize ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_Equalize(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageFilter::HighPass ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_HighPass(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageFilter::Gaussian ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_Gaussian(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageFilter::LocalMedian ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_LocalMedian(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageFilter::LocalMedianNorm ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_LocalMedianNorm(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageFilter::OpticalDensity ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_OpticalDensity(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageFilter::MeanFilter ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_MeanFilter(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline int ILImageFilter::GetKernelWidth ( ) {
int _result = 0;
HRESULT _hr = get_KernelWidth(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline int ILImageFilter::GetKernelHeight ( ) {
int _result = 0;
HRESULT _hr = get_KernelHeight(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT ILImageFilter::Sharpen ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_Sharpen(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline double ILImageFilter::GetKernelSigma ( ) {
double _result = 0;
HRESULT _hr = get_KernelSigma(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline double ILImageFilter::GetKernelGain ( ) {
double _result = 0;
HRESULT _hr = get_KernelGain(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// interface ILImageMorph wrapper method implementations
//
inline HRESULT ILImageMorph::SetMorphShape ( enum LPVMorphShape shape, int kWidth, int kHeight ) {
HRESULT _hr = raw_SetMorphShape(shape, kWidth, kHeight);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageMorph::BottomHat ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_BottomHat(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageMorph::TopHat ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_TopHat(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageMorph::TopBottomHat ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_TopBottomHat(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageMorph::Close ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_Close(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageMorph::Open ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_Open(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageMorph::Dilate ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_Dilate(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageMorph::Erode ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_Erode(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageMorph::Gradient ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_Gradient(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline enum LPVMorphShape ILImageMorph::GetMorphShape ( ) {
enum LPVMorphShape _result;
HRESULT _hr = get_MorphShape(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline int ILImageMorph::GetMorphWidth ( ) {
int _result = 0;
HRESULT _hr = get_MorphWidth(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline int ILImageMorph::GetMorphHeight ( ) {
int _result = 0;
HRESULT _hr = get_MorphHeight(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// interface ILEdgeFilter wrapper method implementations
//
inline HRESULT ILEdgeFilter::SetEdgeKernel ( enum LPVEdgeKernel kType, int kWidth, int kHeight ) {
HRESULT _hr = raw_SetEdgeKernel(kType, kWidth, kHeight);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILEdgeFilter::SetEdgePolarity ( enum LPVPolarity xPolarity, enum LPVPolarity yPolarity ) {
HRESULT _hr = raw_SetEdgePolarity(xPolarity, yPolarity);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILEdgeFilter::GradientH ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_GradientH(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILEdgeFilter::GradientV ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_GradientV(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILEdgeFilter::GradientFull ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_GradientFull(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline enum LPVEdgeKernel ILEdgeFilter::GetKernelType ( ) {
enum LPVEdgeKernel _result;
HRESULT _hr = get_KernelType(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline int ILEdgeFilter::GetKernelWidth ( ) {
int _result = 0;
HRESULT _hr = get_KernelWidth(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline int ILEdgeFilter::GetKernelHeight ( ) {
int _result = 0;
HRESULT _hr = get_KernelHeight(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline enum LPVPolarity ILEdgeFilter::GetEdgePolarityX ( ) {
enum LPVPolarity _result;
HRESULT _hr = get_EdgePolarityX(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline enum LPVPolarity ILEdgeFilter::GetEdgePolarityY ( ) {
enum LPVPolarity _result;
HRESULT _hr = get_EdgePolarityY(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// interface ILImageArithm wrapper method implementations
//
inline HRESULT ILImageArithm::Invert ( struct ILImage * img, struct ILImage * result ) {
HRESULT _hr = raw_Invert(img, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::GainOffset ( struct ILImage * img, struct ILImage * result, double gain, double offset ) {
HRESULT _hr = raw_GainOffset(img, result, gain, offset);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::Add ( struct ILImage * img1, struct ILImage * img2, struct ILImage * result ) {
HRESULT _hr = raw_Add(img1, img2, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::AddWeighted ( struct ILImage * img1, struct ILImage * img2, double alpha, double beta, struct ILImage * result ) {
HRESULT _hr = raw_AddWeighted(img1, img2, alpha, beta, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::Sub ( struct ILImage * img1, struct ILImage * img2, struct ILImage * result ) {
HRESULT _hr = raw_Sub(img1, img2, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::Multiply ( struct ILImage * img1, struct ILImage * img2, struct ILImage * result ) {
HRESULT _hr = raw_Multiply(img1, img2, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::Divide ( struct ILImage * img1, struct ILImage * img2, struct ILImage * result ) {
HRESULT _hr = raw_Divide(img1, img2, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::Diff ( struct ILImage * img1, struct ILImage * img2, struct ILImage * result ) {
HRESULT _hr = raw_Diff(img1, img2, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::Min ( struct ILImage * img1, struct ILImage * img2, struct ILImage * result ) {
HRESULT _hr = raw_Min(img1, img2, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::Max ( struct ILImage * img1, struct ILImage * img2, struct ILImage * result ) {
HRESULT _hr = raw_Max(img1, img2, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::Pow ( struct ILImage * img, double power, struct ILImage * result ) {
HRESULT _hr = raw_Pow(img, power, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::Log ( struct ILImage * img, double base, struct ILImage * result ) {
HRESULT _hr = raw_Log(img, base, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::Flip ( struct ILImage * img, enum LPVFlipType flipType, struct ILImage * result ) {
HRESULT _hr = raw_Flip(img, flipType, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::Rotate ( struct ILImage * img, double angle, enum LPVInterpolationMethod interMethod, struct ILImage * result ) {
HRESULT _hr = raw_Rotate(img, angle, interMethod, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::Resize ( struct ILImage * img, double zoomX, double zoomY, enum LPVInterpolationMethod interMethod, struct ILImage * result ) {
HRESULT _hr = raw_Resize(img, zoomX, zoomY, interMethod, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::ResizeTo ( struct ILImage * img, int w, int h, enum LPVInterpolationMethod interMethod, struct ILImage * result ) {
HRESULT _hr = raw_ResizeTo(img, w, h, interMethod, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::ScaleRotate ( struct ILImage * img, double angle, double zoomX, double zoomY, double pivotImgX, double pivotImgY, double pivotResultX, double pivotResultY, enum LPVInterpolationMethod interMethod, struct ILImage * result ) {
HRESULT _hr = raw_ScaleRotate(img, angle, zoomX, zoomY, pivotImgX, pivotImgY, pivotResultX, pivotResultY, interMethod, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::Transform ( struct ILImage * img, struct ILTransform * tf, enum LPVInterpolationMethod interMethod, struct ILImage * result ) {
HRESULT _hr = raw_Transform(img, tf, interMethod, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::Blend ( struct ILImageList * imgList, enum LPVAggregation aggType, struct ILImage * result ) {
HRESULT _hr = raw_Blend(imgList, aggType, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline SAFEARRAY * ILImageArithm::ProjectX ( struct ILImage * img, enum LPVAggregation aggType ) {
SAFEARRAY * _result = 0;
HRESULT _hr = raw_ProjectX(img, aggType, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline SAFEARRAY * ILImageArithm::ProjectY ( struct ILImage * img, enum LPVAggregation aggType ) {
SAFEARRAY * _result = 0;
HRESULT _hr = raw_ProjectY(img, aggType, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline double ILImageArithm::GetResultGain ( ) {
double _result = 0;
HRESULT _hr = get_ResultGain(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILImageArithm::PutResultGain ( double val ) {
HRESULT _hr = put_ResultGain(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline double ILImageArithm::GetResultOffset ( ) {
double _result = 0;
HRESULT _hr = get_ResultOffset(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILImageArithm::PutResultOffset ( double val ) {
HRESULT _hr = put_ResultOffset(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT ILImageArithm::TileX ( struct ILImageList * imgList, int columnCount, VARIANT_BOOL compactMode, struct ILImage * result ) {
HRESULT _hr = raw_TileX(imgList, columnCount, compactMode, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageArithm::TileY ( struct ILImageList * imgList, int rowCount, VARIANT_BOOL compactMode, struct ILImage * result ) {
HRESULT _hr = raw_TileY(imgList, rowCount, compactMode, result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline struct LColor ILImageArithm::GetBGColor ( ) {
struct LColor _result;
HRESULT _hr = get_BGColor(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILImageArithm::PutBGColor ( struct LColor val ) {
HRESULT _hr = put_BGColor(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface ILHistogram wrapper method implementations
//
inline HRESULT ILHistogram::Reset ( ) {
HRESULT _hr = raw_Reset();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILHistogram::Build ( struct ILImage * img, struct ILRegion * region, int binCount, int lowerBound, int upperBound ) {
HRESULT _hr = raw_Build(img, region, binCount, lowerBound, upperBound);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline double ILHistogram::Item ( int index ) {
double _result = 0;
HRESULT _hr = raw_Item(index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT ILHistogram::MinMax ( int * minIdx, double * minValue, int * maxIdx, double * maxValue ) {
HRESULT _hr = raw_MinMax(minIdx, minValue, maxIdx, maxValue);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILHistogram::MeanStdDev ( double * meanValue, double * stdDevValue ) {
HRESULT _hr = raw_MeanStdDev(meanValue, stdDevValue);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILHistogram::Draw ( void * hdc, enum LPVChartDrawFlags drawFlags, int xGridStep, int yGridStep ) {
HRESULT _hr = raw_Draw(hdc, drawFlags, xGridStep, yGridStep);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILHistogram::BuildFromDataVec ( SAFEARRAY * dataVec, int binCount, double lowerBound, double upperBound ) {
HRESULT _hr = raw_BuildFromDataVec(dataVec, binCount, lowerBound, upperBound);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface ILImageStats wrapper method implementations
//
inline HRESULT ILImageStats::Min ( struct ILImage * img, struct ILRegion * region, int * value, int * posX, int * posY ) {
HRESULT _hr = raw_Min(img, region, value, posX, posY);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageStats::Max ( struct ILImage * img, struct ILRegion * region, int * value, int * posX, int * posY ) {
HRESULT _hr = raw_Max(img, region, value, posX, posY);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageStats::MeanStdDev ( struct ILImage * img, struct ILRegion * region, double * meanValue, double * stdDevValue ) {
HRESULT _hr = raw_MeanStdDev(img, region, meanValue, stdDevValue);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageStats::CountPixel ( struct ILImage * img, struct ILRegion * region, int lb, int ub, int * belowCount, int * betweenCount, int * aboveCount ) {
HRESULT _hr = raw_CountPixel(img, region, lb, ub, belowCount, betweenCount, aboveCount);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILImageStats::CountPixelColor ( struct ILImage * img, struct ILRegion * region, struct LColor lb, struct LColor ub, int * betweenCount, int * outsideCount ) {
HRESULT _hr = raw_CountPixelColor(img, region, lb, ub, betweenCount, outsideCount);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline double ILImageStats::Sharpness ( struct ILImage * img, struct ILRegion * region ) {
double _result = 0;
HRESULT _hr = raw_Sharpness(img, region, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// interface ILHDR wrapper method implementations
//
inline HRESULT ILHDR::Reset ( ) {
HRESULT _hr = raw_Reset();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline enum LPVErrorCode ILHDR::BuildCRF ( struct ILImageList * imgList, SAFEARRAY * exposureTimes ) {
enum LPVErrorCode _result;
HRESULT _hr = raw_BuildCRF(imgList, exposureTimes, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT ILHDR::ToneMapping ( struct ILImageList * imgList, struct ILImage * result, double gamma, double contrastEnhance, double saturationEnhance ) {
HRESULT _hr = raw_ToneMapping(imgList, result, gamma, contrastEnhance, saturationEnhance);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILHDR::ExposureFusion ( struct ILImageList * imgList, struct ILImage * result, double contrastWeight, double saturationWeight, double exposureWeight ) {
HRESULT _hr = raw_ExposureFusion(imgList, result, contrastWeight, saturationWeight, exposureWeight);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface ILImageConvert wrapper method implementations
//
inline HRESULT ILImageConvert::BGRToGray ( struct ILImage * bgrImg, struct ILImage * grayImg ) {
HRESULT _hr = raw_BGRToGray(bgrImg, grayImg);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline int ILImageConvert::BGRToGrayColor ( struct LColor bgrColor ) {
int _result = 0;
HRESULT _hr = raw_BGRToGrayColor(bgrColor, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT ILImageConvert::GrayToBGR ( struct ILImage * grayImg, struct ILImage * bgrImg ) {
HRESULT _hr = raw_GrayToBGR(grayImg, bgrImg);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline struct LColor ILImageConvert::GrayToBGRColor ( int grayColor ) {
struct LColor _result;
HRESULT _hr = raw_GrayToBGRColor(grayColor, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT ILImageConvert::Convert ( enum LPVColorSpace fromColorSpace, enum LPVColorSpace toColorSpace, struct ILImage * srcColorImg, struct ILImage * dstColorImg ) {
HRESULT _hr = raw_Convert(fromColorSpace, toColorSpace, srcColorImg, dstColorImg);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline struct LColor ILImageConvert::ConvertColor ( enum LPVColorSpace fromColorSpace, enum LPVColorSpace toColorSpace, struct LColor srcColor ) {
struct LColor _result;
HRESULT _hr = raw_ConvertColor(fromColorSpace, toColorSpace, srcColor, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT ILImageConvert::BGRMix ( struct ILImage * bgrImg, double w0, double w1, double w2, struct ILImage * grayImg ) {
HRESULT _hr = raw_BGRMix(bgrImg, w0, w1, w2, grayImg);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface ILBGSubtract wrapper method implementations
//
inline HRESULT ILBGSubtract::Reset ( ) {
HRESULT _hr = raw_Reset();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline int ILBGSubtract::GetHistoryMaxCount ( ) {
int _result = 0;
HRESULT _hr = get_HistoryMaxCount(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILBGSubtract::PutHistoryMaxCount ( int val ) {
HRESULT _hr = put_HistoryMaxCount(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline double ILBGSubtract::GetVarianceThreshold ( ) {
double _result = 0;
HRESULT _hr = get_VarianceThreshold(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILBGSubtract::PutVarianceThreshold ( double val ) {
HRESULT _hr = put_VarianceThreshold(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline double ILBGSubtract::GetGenerateThreshold ( ) {
double _result = 0;
HRESULT _hr = get_GenerateThreshold(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILBGSubtract::PutGenerateThreshold ( double val ) {
HRESULT _hr = put_GenerateThreshold(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline double ILBGSubtract::GetLearningRate ( ) {
double _result = 0;
HRESULT _hr = get_LearningRate(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILBGSubtract::PutLearningRate ( double val ) {
HRESULT _hr = put_LearningRate(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline enum LPVErrorCode ILBGSubtract::Apply ( struct ILImage * img, struct ILImage * fgMask, VARIANT_BOOL doUpdateBGModel ) {
enum LPVErrorCode _result;
HRESULT _hr = raw_Apply(img, fgMask, doUpdateBGModel, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline enum LPVErrorCode ILBGSubtract::UpdateBGModel ( struct ILImage * img ) {
enum LPVErrorCode _result;
HRESULT _hr = raw_UpdateBGModel(img, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}

@ -1,475 +0,0 @@
// Created by Microsoft (R) C/C++ Compiler Version 14.16.27051.0 (6e2a7e5e).
//
// d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvPat.tlh
//
// C++ source equivalent of Win32 type library 799860e5-cec7-4d65-9c62-a93320c0f60a
// compiler-generated file created 12/28/23 at 14:09:51 - DO NOT EDIT!
//
// Cross-referenced type libraries:
//
//
#pragma once
#pragma pack(push, 8)
#include <comdef.h>
//
// Forward references and typedefs
//
struct __declspec(uuid("799860e5-cec7-4d65-9c62-a93320c0f60a"))
/* LIBID */ __LPVPatLib;
enum LPVPatCenterMode;
enum LPVPatDrawFlags;
struct __declspec(uuid("9662131d-8e5e-4d1e-84b2-e7a7efda52ee"))
/* dual interface */ ILMatchResult;
struct __declspec(uuid("eae77889-b063-4d78-b429-7935df7d69b3"))
/* dual interface */ ILMatch;
struct __declspec(uuid("9425c450-6031-443b-b70b-d32bd8593a62"))
/* dual interface */ ILMatchResults;
struct /* coclass */ LMatchResult;
struct /* coclass */ LMatchResults;
struct /* coclass */ LMatch;
//
// Smart pointer typedef declarations
//
_COM_SMARTPTR_TYPEDEF(ILMatchResult, __uuidof(ILMatchResult));
_COM_SMARTPTR_TYPEDEF(ILMatchResults, __uuidof(ILMatchResults));
_COM_SMARTPTR_TYPEDEF(ILMatch, __uuidof(ILMatch));
//
// Type library items
//
enum LPVPatCenterMode
{
LPVPatImageCenter = 0,
LPVPatTrainedCenter = 1,
LPVPatCustomCenter = 2
};
enum LPVPatDrawFlags
{
LPVPatDrawBoundingRect = 1,
LPVPatDrawCenter = 2,
LPVPatDrawFeature = 4,
LPVPatDrawIndex = 8,
LPVPatDrawDefault = 2,
LPVPatDrawAll = 255
};
struct __declspec(uuid("4dc5c77a-8779-4535-8712-dad884f184a5"))
LMatchResult;
// [ default ] interface ILMatchResult
// interface ILDrawable
// interface ILSortable
struct __declspec(uuid("2c0fcf2c-24d0-4097-96f9-edd13229b0be"))
LMatchResults;
// [ default ] interface ILMatchResults
// interface ILDrawable
// interface ILSortables
struct __declspec(uuid("24419286-7ab4-4911-8471-aff2cdc9d693"))
LMatch;
// [ default ] interface ILMatch
struct __declspec(uuid("9662131d-8e5e-4d1e-84b2-e7a7efda52ee"))
ILMatchResult : IDispatch
{
//
// Property data
//
__declspec(property(get=GetScore))
double Score;
__declspec(property(get=GetCenter))
ILPointPtr Center;
__declspec(property(get=GetAngle))
double Angle;
__declspec(property(get=GetScale))
double Scale;
__declspec(property(get=GetScaleX))
double ScaleX;
__declspec(property(get=GetScaleY))
double ScaleY;
__declspec(property(get=GetShapeScore))
double ShapeScore;
__declspec(property(get=GetGrayScore))
double GrayScore;
//
// Wrapper methods for error-handling
//
double GetScore ( );
ILPointPtr GetCenter ( );
double GetAngle ( );
double GetScale ( );
HRESULT Draw (
void * hdc,
enum LPVPatDrawFlags drawFlags,
double zoomX,
double zoomY,
double panX,
double panY );
ILRectPtr GetRect ( );
HRESULT Set (
struct ILMatch * matchObject,
double patX,
double patY,
double patAngle,
double patScale,
double patScore );
double GetScaleX ( );
double GetScaleY ( );
double GetShapeScore ( );
double GetGrayScore ( );
ILPointsPtr GetFeature ( );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall get_Score (
/*[out,retval]*/ double * val ) = 0;
virtual HRESULT __stdcall get_Center (
/*[out,retval]*/ struct ILPoint * * val ) = 0;
virtual HRESULT __stdcall get_Angle (
/*[out,retval]*/ double * val ) = 0;
virtual HRESULT __stdcall get_Scale (
/*[out,retval]*/ double * val ) = 0;
virtual HRESULT __stdcall raw_Draw (
/*[in]*/ void * hdc,
/*[in]*/ enum LPVPatDrawFlags drawFlags,
/*[in]*/ double zoomX,
/*[in]*/ double zoomY,
/*[in]*/ double panX,
/*[in]*/ double panY ) = 0;
virtual HRESULT __stdcall raw_GetRect (
/*[out,retval]*/ struct ILRect * * val ) = 0;
virtual HRESULT __stdcall raw_Set (
/*[in]*/ struct ILMatch * matchObject,
/*[in]*/ double patX,
/*[in]*/ double patY,
/*[in]*/ double patAngle,
/*[in]*/ double patScale,
/*[in]*/ double patScore ) = 0;
virtual HRESULT __stdcall get_ScaleX (
/*[out,retval]*/ double * val ) = 0;
virtual HRESULT __stdcall get_ScaleY (
/*[out,retval]*/ double * val ) = 0;
virtual HRESULT __stdcall get_ShapeScore (
/*[out,retval]*/ double * val ) = 0;
virtual HRESULT __stdcall get_GrayScore (
/*[out,retval]*/ double * val ) = 0;
virtual HRESULT __stdcall raw_GetFeature (
/*[out,retval]*/ struct ILPoints * * featurePoints ) = 0;
};
struct __declspec(uuid("9425c450-6031-443b-b70b-d32bd8593a62"))
ILMatchResults : IDispatch
{
//
// Wrapper methods for error-handling
//
HRESULT Reset ( );
int Count ( );
ILMatchResultPtr Item (
int index );
HRESULT Draw (
void * hdc,
int index,
enum LPVPatDrawFlags drawFlags,
double zoomX,
double zoomY,
double panX,
double panY );
HRESULT DrawAll (
void * hdc,
enum LPVPatDrawFlags drawFlags,
double zoomX,
double zoomY,
double panX,
double panY );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall raw_Reset ( ) = 0;
virtual HRESULT __stdcall raw_Count (
/*[out,retval]*/ int * val ) = 0;
virtual HRESULT __stdcall raw_Item (
/*[in]*/ int index,
/*[out,retval]*/ struct ILMatchResult * * result ) = 0;
virtual HRESULT __stdcall raw_Draw (
/*[in]*/ void * hdc,
/*[in]*/ int index,
/*[in]*/ enum LPVPatDrawFlags drawFlags,
/*[in]*/ double zoomX,
/*[in]*/ double zoomY,
/*[in]*/ double panX,
/*[in]*/ double panY ) = 0;
virtual HRESULT __stdcall raw_DrawAll (
/*[in]*/ void * hdc,
/*[in]*/ enum LPVPatDrawFlags drawFlags,
/*[in]*/ double zoomX,
/*[in]*/ double zoomY,
/*[in]*/ double panX,
/*[in]*/ double panY ) = 0;
};
struct __declspec(uuid("eae77889-b063-4d78-b429-7935df7d69b3"))
ILMatch : ILObject
{
//
// Property data
//
__declspec(property(get=GetAcceptScore,put=PutAcceptScore))
int AcceptScore;
__declspec(property(get=GetAngleTolerance,put=PutAngleTolerance))
int AngleTolerance;
__declspec(property(get=GetScaleTolerance,put=PutScaleTolerance))
int ScaleTolerance;
__declspec(property(get=GetMaxCount,put=PutMaxCount))
int MaxCount;
__declspec(property(get=GetOverlap,put=PutOverlap))
int Overlap;
__declspec(property(get=GetIgnorePolarity,put=PutIgnorePolarity))
VARIANT_BOOL IgnorePolarity;
__declspec(property(get=GetUseCache,put=PutUseCache))
VARIANT_BOOL UseCache;
__declspec(property(get=GetStrictScore,put=PutStrictScore))
VARIANT_BOOL StrictScore;
__declspec(property(get=GetExcludeBoundary,put=PutExcludeBoundary))
VARIANT_BOOL ExcludeBoundary;
__declspec(property(get=GetGrayValueWeight,put=PutGrayValueWeight))
int GrayValueWeight;
__declspec(property(get=GetAngleBias,put=PutAngleBias))
int AngleBias;
__declspec(property(get=GetScaleBias,put=PutScaleBias))
int ScaleBias;
__declspec(property(get=GetDetailLevel,put=PutDetailLevel))
double DetailLevel;
__declspec(property(get=GetIsotropicScale,put=PutIsotropicScale))
VARIANT_BOOL IsotropicScale;
__declspec(property(get=GetAccuracyLevel,put=PutAccuracyLevel))
int AccuracyLevel;
__declspec(property(get=GetIgnoreMissing,put=PutIgnoreMissing))
VARIANT_BOOL IgnoreMissing;
__declspec(property(get=GetMissingTolerance,put=PutMissingTolerance))
int MissingTolerance;
//
// Wrapper methods for error-handling
//
enum LPVErrorCode Learn (
struct ILImage * img,
struct ILRegion * region );
enum LPVErrorCode LearnWithShape (
struct ILImage * img,
struct ILRegion * region,
struct ILRegion * shapeRegion );
enum LPVErrorCode LearnWithShapeImage (
struct ILImage * img,
struct ILRegion * region,
struct ILImage * shapeImg );
VARIANT_BOOL IsLearnt ( );
enum LPVErrorCode Match (
struct ILImage * img,
struct ILRegion * region,
struct ILMatchResults * * results );
int GetAcceptScore ( );
void PutAcceptScore (
int val );
int GetAngleTolerance ( );
void PutAngleTolerance (
int val );
int GetAngleBias ( );
void PutAngleBias (
int val );
int GetScaleTolerance ( );
void PutScaleTolerance (
int val );
int GetScaleBias ( );
void PutScaleBias (
int val );
int GetMaxCount ( );
void PutMaxCount (
int val );
int GetOverlap ( );
void PutOverlap (
int val );
VARIANT_BOOL GetIgnorePolarity ( );
void PutIgnorePolarity (
VARIANT_BOOL val );
VARIANT_BOOL GetUseCache ( );
void PutUseCache (
VARIANT_BOOL val );
VARIANT_BOOL GetStrictScore ( );
void PutStrictScore (
VARIANT_BOOL val );
VARIANT_BOOL GetExcludeBoundary ( );
void PutExcludeBoundary (
VARIANT_BOOL val );
int GetGrayValueWeight ( );
void PutGrayValueWeight (
int val );
HRESULT SetPatCenter (
enum LPVPatCenterMode centerMode,
double patX,
double patY,
double patAngle );
HRESULT GetPatCenter (
double * patX,
double * patY,
double * patAngle );
enum LPVPatCenterMode GetPatCenterMode ( );
HRESULT GetPatImage (
struct ILImage * img );
HRESULT GetPatMask (
struct ILImage * mask );
double GetDetailLevel ( );
void PutDetailLevel (
double val );
VARIANT_BOOL GetIsotropicScale ( );
void PutIsotropicScale (
VARIANT_BOOL val );
ILPointsPtr GetPatFeature ( );
int GetAccuracyLevel ( );
void PutAccuracyLevel (
int val );
VARIANT_BOOL GetIgnoreMissing ( );
void PutIgnoreMissing (
VARIANT_BOOL val );
int GetMissingTolerance ( );
void PutMissingTolerance (
int val );
//
// Raw methods provided by interface
//
virtual HRESULT __stdcall raw_Learn (
/*[in]*/ struct ILImage * img,
/*[in]*/ struct ILRegion * region,
/*[out,retval]*/ enum LPVErrorCode * error ) = 0;
virtual HRESULT __stdcall raw_LearnWithShape (
/*[in]*/ struct ILImage * img,
/*[in]*/ struct ILRegion * region,
/*[in]*/ struct ILRegion * shapeRegion,
/*[out,retval]*/ enum LPVErrorCode * error ) = 0;
virtual HRESULT __stdcall raw_LearnWithShapeImage (
/*[in]*/ struct ILImage * img,
/*[in]*/ struct ILRegion * region,
/*[in]*/ struct ILImage * shapeImg,
/*[out,retval]*/ enum LPVErrorCode * error ) = 0;
virtual HRESULT __stdcall raw_IsLearnt (
/*[out,retval]*/ VARIANT_BOOL * val ) = 0;
virtual HRESULT __stdcall raw_Match (
/*[in]*/ struct ILImage * img,
/*[in]*/ struct ILRegion * region,
/*[out]*/ struct ILMatchResults * * results,
/*[out,retval]*/ enum LPVErrorCode * error ) = 0;
virtual HRESULT __stdcall get_AcceptScore (
/*[out,retval]*/ int * val ) = 0;
virtual HRESULT __stdcall put_AcceptScore (
/*[in]*/ int val ) = 0;
virtual HRESULT __stdcall get_AngleTolerance (
/*[out,retval]*/ int * val ) = 0;
virtual HRESULT __stdcall put_AngleTolerance (
/*[in]*/ int val ) = 0;
virtual HRESULT __stdcall get_AngleBias (
/*[out,retval]*/ int * val ) = 0;
virtual HRESULT __stdcall put_AngleBias (
/*[in]*/ int val ) = 0;
virtual HRESULT __stdcall get_ScaleTolerance (
/*[out,retval]*/ int * val ) = 0;
virtual HRESULT __stdcall put_ScaleTolerance (
/*[in]*/ int val ) = 0;
virtual HRESULT __stdcall get_ScaleBias (
/*[out,retval]*/ int * val ) = 0;
virtual HRESULT __stdcall put_ScaleBias (
/*[in]*/ int val ) = 0;
virtual HRESULT __stdcall get_MaxCount (
/*[out,retval]*/ int * val ) = 0;
virtual HRESULT __stdcall put_MaxCount (
/*[in]*/ int val ) = 0;
virtual HRESULT __stdcall get_Overlap (
/*[out,retval]*/ int * val ) = 0;
virtual HRESULT __stdcall put_Overlap (
/*[in]*/ int val ) = 0;
virtual HRESULT __stdcall get_IgnorePolarity (
/*[out,retval]*/ VARIANT_BOOL * val ) = 0;
virtual HRESULT __stdcall put_IgnorePolarity (
/*[in]*/ VARIANT_BOOL val ) = 0;
virtual HRESULT __stdcall get_UseCache (
/*[out,retval]*/ VARIANT_BOOL * val ) = 0;
virtual HRESULT __stdcall put_UseCache (
/*[in]*/ VARIANT_BOOL val ) = 0;
virtual HRESULT __stdcall get_StrictScore (
/*[out,retval]*/ VARIANT_BOOL * val ) = 0;
virtual HRESULT __stdcall put_StrictScore (
/*[in]*/ VARIANT_BOOL val ) = 0;
virtual HRESULT __stdcall get_ExcludeBoundary (
/*[out,retval]*/ VARIANT_BOOL * val ) = 0;
virtual HRESULT __stdcall put_ExcludeBoundary (
/*[in]*/ VARIANT_BOOL val ) = 0;
virtual HRESULT __stdcall get_GrayValueWeight (
/*[out,retval]*/ int * val ) = 0;
virtual HRESULT __stdcall put_GrayValueWeight (
/*[in]*/ int val ) = 0;
virtual HRESULT __stdcall raw_SetPatCenter (
/*[in]*/ enum LPVPatCenterMode centerMode,
/*[in]*/ double patX,
/*[in]*/ double patY,
/*[in]*/ double patAngle ) = 0;
virtual HRESULT __stdcall raw_GetPatCenter (
/*[out]*/ double * patX,
/*[out]*/ double * patY,
/*[out]*/ double * patAngle ) = 0;
virtual HRESULT __stdcall raw_GetPatCenterMode (
/*[out,retval]*/ enum LPVPatCenterMode * centerMode ) = 0;
virtual HRESULT __stdcall raw_GetPatImage (
/*[out]*/ struct ILImage * img ) = 0;
virtual HRESULT __stdcall raw_GetPatMask (
/*[out]*/ struct ILImage * mask ) = 0;
virtual HRESULT __stdcall get_DetailLevel (
/*[out,retval]*/ double * val ) = 0;
virtual HRESULT __stdcall put_DetailLevel (
/*[in]*/ double val ) = 0;
virtual HRESULT __stdcall get_IsotropicScale (
/*[out,retval]*/ VARIANT_BOOL * val ) = 0;
virtual HRESULT __stdcall put_IsotropicScale (
/*[in]*/ VARIANT_BOOL val ) = 0;
virtual HRESULT __stdcall raw_GetPatFeature (
/*[out,retval]*/ struct ILPoints * * featurePoints ) = 0;
virtual HRESULT __stdcall get_AccuracyLevel (
/*[out,retval]*/ int * val ) = 0;
virtual HRESULT __stdcall put_AccuracyLevel (
/*[in]*/ int val ) = 0;
virtual HRESULT __stdcall get_IgnoreMissing (
/*[out,retval]*/ VARIANT_BOOL * val ) = 0;
virtual HRESULT __stdcall put_IgnoreMissing (
/*[in]*/ VARIANT_BOOL val ) = 0;
virtual HRESULT __stdcall get_MissingTolerance (
/*[out,retval]*/ int * val ) = 0;
virtual HRESULT __stdcall put_MissingTolerance (
/*[in]*/ int val ) = 0;
};
//
// Wrapper method implementations
//
#include "d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvPat.tli"
#pragma pack(pop)

@ -1,411 +0,0 @@
// Created by Microsoft (R) C/C++ Compiler Version 14.16.27051.0 (6e2a7e5e).
//
// d:\code\logistics\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvPat.tli
//
// Wrapper implementations for Win32 type library 799860e5-cec7-4d65-9c62-a93320c0f60a
// compiler-generated file created 12/28/23 at 14:09:51 - DO NOT EDIT!
#pragma once
//
// interface ILMatchResult wrapper method implementations
//
inline double ILMatchResult::GetScore ( ) {
double _result = 0;
HRESULT _hr = get_Score(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline ILPointPtr ILMatchResult::GetCenter ( ) {
struct ILPoint * _result = 0;
HRESULT _hr = get_Center(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILPointPtr(_result, false);
}
inline double ILMatchResult::GetAngle ( ) {
double _result = 0;
HRESULT _hr = get_Angle(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline double ILMatchResult::GetScale ( ) {
double _result = 0;
HRESULT _hr = get_Scale(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT ILMatchResult::Draw ( void * hdc, enum LPVPatDrawFlags drawFlags, double zoomX, double zoomY, double panX, double panY ) {
HRESULT _hr = raw_Draw(hdc, drawFlags, zoomX, zoomY, panX, panY);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline ILRectPtr ILMatchResult::GetRect ( ) {
struct ILRect * _result = 0;
HRESULT _hr = raw_GetRect(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILRectPtr(_result, false);
}
inline HRESULT ILMatchResult::Set ( struct ILMatch * matchObject, double patX, double patY, double patAngle, double patScale, double patScore ) {
HRESULT _hr = raw_Set(matchObject, patX, patY, patAngle, patScale, patScore);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline double ILMatchResult::GetScaleX ( ) {
double _result = 0;
HRESULT _hr = get_ScaleX(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline double ILMatchResult::GetScaleY ( ) {
double _result = 0;
HRESULT _hr = get_ScaleY(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline double ILMatchResult::GetShapeScore ( ) {
double _result = 0;
HRESULT _hr = get_ShapeScore(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline double ILMatchResult::GetGrayScore ( ) {
double _result = 0;
HRESULT _hr = get_GrayScore(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline ILPointsPtr ILMatchResult::GetFeature ( ) {
struct ILPoints * _result = 0;
HRESULT _hr = raw_GetFeature(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILPointsPtr(_result, false);
}
//
// interface ILMatchResults wrapper method implementations
//
inline HRESULT ILMatchResults::Reset ( ) {
HRESULT _hr = raw_Reset();
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline int ILMatchResults::Count ( ) {
int _result = 0;
HRESULT _hr = raw_Count(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline ILMatchResultPtr ILMatchResults::Item ( int index ) {
struct ILMatchResult * _result = 0;
HRESULT _hr = raw_Item(index, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILMatchResultPtr(_result, false);
}
inline HRESULT ILMatchResults::Draw ( void * hdc, int index, enum LPVPatDrawFlags drawFlags, double zoomX, double zoomY, double panX, double panY ) {
HRESULT _hr = raw_Draw(hdc, index, drawFlags, zoomX, zoomY, panX, panY);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILMatchResults::DrawAll ( void * hdc, enum LPVPatDrawFlags drawFlags, double zoomX, double zoomY, double panX, double panY ) {
HRESULT _hr = raw_DrawAll(hdc, drawFlags, zoomX, zoomY, panX, panY);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
//
// interface ILMatch wrapper method implementations
//
inline enum LPVErrorCode ILMatch::Learn ( struct ILImage * img, struct ILRegion * region ) {
enum LPVErrorCode _result;
HRESULT _hr = raw_Learn(img, region, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline enum LPVErrorCode ILMatch::LearnWithShape ( struct ILImage * img, struct ILRegion * region, struct ILRegion * shapeRegion ) {
enum LPVErrorCode _result;
HRESULT _hr = raw_LearnWithShape(img, region, shapeRegion, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline enum LPVErrorCode ILMatch::LearnWithShapeImage ( struct ILImage * img, struct ILRegion * region, struct ILImage * shapeImg ) {
enum LPVErrorCode _result;
HRESULT _hr = raw_LearnWithShapeImage(img, region, shapeImg, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline VARIANT_BOOL ILMatch::IsLearnt ( ) {
VARIANT_BOOL _result = 0;
HRESULT _hr = raw_IsLearnt(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline enum LPVErrorCode ILMatch::Match ( struct ILImage * img, struct ILRegion * region, struct ILMatchResults * * results ) {
enum LPVErrorCode _result;
HRESULT _hr = raw_Match(img, region, results, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline int ILMatch::GetAcceptScore ( ) {
int _result = 0;
HRESULT _hr = get_AcceptScore(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILMatch::PutAcceptScore ( int val ) {
HRESULT _hr = put_AcceptScore(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline int ILMatch::GetAngleTolerance ( ) {
int _result = 0;
HRESULT _hr = get_AngleTolerance(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILMatch::PutAngleTolerance ( int val ) {
HRESULT _hr = put_AngleTolerance(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline int ILMatch::GetAngleBias ( ) {
int _result = 0;
HRESULT _hr = get_AngleBias(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILMatch::PutAngleBias ( int val ) {
HRESULT _hr = put_AngleBias(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline int ILMatch::GetScaleTolerance ( ) {
int _result = 0;
HRESULT _hr = get_ScaleTolerance(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILMatch::PutScaleTolerance ( int val ) {
HRESULT _hr = put_ScaleTolerance(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline int ILMatch::GetScaleBias ( ) {
int _result = 0;
HRESULT _hr = get_ScaleBias(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILMatch::PutScaleBias ( int val ) {
HRESULT _hr = put_ScaleBias(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline int ILMatch::GetMaxCount ( ) {
int _result = 0;
HRESULT _hr = get_MaxCount(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILMatch::PutMaxCount ( int val ) {
HRESULT _hr = put_MaxCount(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline int ILMatch::GetOverlap ( ) {
int _result = 0;
HRESULT _hr = get_Overlap(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILMatch::PutOverlap ( int val ) {
HRESULT _hr = put_Overlap(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL ILMatch::GetIgnorePolarity ( ) {
VARIANT_BOOL _result = 0;
HRESULT _hr = get_IgnorePolarity(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILMatch::PutIgnorePolarity ( VARIANT_BOOL val ) {
HRESULT _hr = put_IgnorePolarity(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL ILMatch::GetUseCache ( ) {
VARIANT_BOOL _result = 0;
HRESULT _hr = get_UseCache(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILMatch::PutUseCache ( VARIANT_BOOL val ) {
HRESULT _hr = put_UseCache(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL ILMatch::GetStrictScore ( ) {
VARIANT_BOOL _result = 0;
HRESULT _hr = get_StrictScore(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILMatch::PutStrictScore ( VARIANT_BOOL val ) {
HRESULT _hr = put_StrictScore(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL ILMatch::GetExcludeBoundary ( ) {
VARIANT_BOOL _result = 0;
HRESULT _hr = get_ExcludeBoundary(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILMatch::PutExcludeBoundary ( VARIANT_BOOL val ) {
HRESULT _hr = put_ExcludeBoundary(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline int ILMatch::GetGrayValueWeight ( ) {
int _result = 0;
HRESULT _hr = get_GrayValueWeight(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILMatch::PutGrayValueWeight ( int val ) {
HRESULT _hr = put_GrayValueWeight(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline HRESULT ILMatch::SetPatCenter ( enum LPVPatCenterMode centerMode, double patX, double patY, double patAngle ) {
HRESULT _hr = raw_SetPatCenter(centerMode, patX, patY, patAngle);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILMatch::GetPatCenter ( double * patX, double * patY, double * patAngle ) {
HRESULT _hr = raw_GetPatCenter(patX, patY, patAngle);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline enum LPVPatCenterMode ILMatch::GetPatCenterMode ( ) {
enum LPVPatCenterMode _result;
HRESULT _hr = raw_GetPatCenterMode(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline HRESULT ILMatch::GetPatImage ( struct ILImage * img ) {
HRESULT _hr = raw_GetPatImage(img);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline HRESULT ILMatch::GetPatMask ( struct ILImage * mask ) {
HRESULT _hr = raw_GetPatMask(mask);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
inline double ILMatch::GetDetailLevel ( ) {
double _result = 0;
HRESULT _hr = get_DetailLevel(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILMatch::PutDetailLevel ( double val ) {
HRESULT _hr = put_DetailLevel(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL ILMatch::GetIsotropicScale ( ) {
VARIANT_BOOL _result = 0;
HRESULT _hr = get_IsotropicScale(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILMatch::PutIsotropicScale ( VARIANT_BOOL val ) {
HRESULT _hr = put_IsotropicScale(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline ILPointsPtr ILMatch::GetPatFeature ( ) {
struct ILPoints * _result = 0;
HRESULT _hr = raw_GetPatFeature(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return ILPointsPtr(_result, false);
}
inline int ILMatch::GetAccuracyLevel ( ) {
int _result = 0;
HRESULT _hr = get_AccuracyLevel(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILMatch::PutAccuracyLevel ( int val ) {
HRESULT _hr = put_AccuracyLevel(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline VARIANT_BOOL ILMatch::GetIgnoreMissing ( ) {
VARIANT_BOOL _result = 0;
HRESULT _hr = get_IgnoreMissing(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILMatch::PutIgnoreMissing ( VARIANT_BOOL val ) {
HRESULT _hr = put_IgnoreMissing(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
inline int ILMatch::GetMissingTolerance ( ) {
int _result = 0;
HRESULT _hr = get_MissingTolerance(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
inline void ILMatch::PutMissingTolerance ( int val ) {
HRESULT _hr = put_MissingTolerance(val);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}

@ -1,55 +0,0 @@
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\qnumtemplatebuild.obj
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\netcontrol.obj
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpserialstation.obj
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\hikcamera.obj
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\log.obj
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\codescanstation.obj
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\categorymatcher.obj
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\cameracontrol.obj
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\admodule.obj
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_admodule.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_camera.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_cameracontrol.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_categorymatcher.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_codescanstation.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_qnumtemplatebuild.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_smokeboxidentification.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_netcontrol.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_lpserialstation.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\release\moc_hikcamera.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\qrc_smokeboxidentification.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\ui_qnumtemplatebuild.h
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\ui_smokeboxidentification.h
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\qrc_smokeboxidentification.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_admodule.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_camera.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_cameracontrol.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_categorymatcher.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_codescanstation.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_qnumtemplatebuild.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_smokeboxidentification.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_netcontrol.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_lpserialstation.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\generatedfiles\release\moc_hikcamera.cpp
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\ui_qnumtemplatebuild.h
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\.\generatedfiles\ui_smokeboxidentification.h
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvcore.tli
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvgeom.tli
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvgeomx.tli
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvimgproc.tli
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvpat.tli
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvcore.tlh
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvgeom.tlh
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvgeomx.tlh
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvimgproc.tlh
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvpat.tlh
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\cl.command.1.tlog
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\cl.read.1.tlog
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\cl.write.1.tlog
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\moc.read.1u.tlog
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\moc.write.1u.tlog
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\rcc.read.1u.tlog
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\rcc.write.1u.tlog
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\smokeboxidentification.write.1u.tlog
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\uic.read.1u.tlog
e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\smokebox.b12702ad.tlog\uic.write.1u.tlog
Loading…
Cancel
Save