You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

476 lines
15 KiB
Plaintext

2 years ago
// Created by Microsoft (R) C/C++ Compiler Version 14.16.27051.0 (9db3d68d).
//
// e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvPat.tlh
//
// C++ source equivalent of Win32 type library 799860e5-cec7-4d65-9c62-a93320c0f60a
// compiler-generated file created 11/22/23 at 21:55:41 - DO NOT EDIT!
2 years ago
//
// 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 "e:\code\smokeboxidentification\tpvs17\smokeboxidentification\x64\release\lpvPat.tli"
#pragma pack(pop)