灵敏度模式设置(使用截取8位方式) 更多... | |
函数 | |
| KSJ_API int __stdcall | KSJ_LutFileDownload (int nIndex, const TCHAR *pszKtbFile) |
| KSJ_LutFileDownload. | |
| KSJ_API int __stdcall | KSJ_LutDataDownload (int nIndex, unsigned char *pData, int nBytes) |
| KSJ_LutDataDownload. | |
| KSJ_API int __stdcall | KSJ_LutSetEnable (int nIndex, bool bEnable) |
| KSJ_LutSetEnable. | |
| KSJ_API int __stdcall | KSJ_LutGetEnable (int nIndex, bool *pbEnable) |
| KSJ_LutGetEnable. | |
| KSJ_API int __stdcall | KSJ_SensitivitySetMode (int nIndex, KSJ_SENSITIVITYMODE SensitivityMode) |
| KSJ_SensitivitySetMode. | |
| KSJ_API int __stdcall | KSJ_SensitivityGetMode (int nIndex, KSJ_SENSITIVITYMODE *pSensitivityMode) |
| KSJ_SensitivityGetMode. | |
| enum KSJ_SENSITIVITYMODE |
| KSJ_API int __stdcall KSJ_LutFileDownload | ( | int | nIndex, | |
| const TCHAR * | pszKtbFile | |||
| ) |
KSJ_LutFileDownload.
参考“凯视佳工业相机API函数说明书(数据压扩篇)” Related API KSJ_GetADCResolution to Get Valid bits of 16bits Please KSJ_QueryFunction (KSJ_SUPPORT_LUT_DOWNLOAD ) to Get if support download LUT -----------------------------------------------------------------------------
以ktb文件形式,下载LUT查找表至相机(16bit to 8bit LUT)
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| pszKtbFile | [in] .ktb文件路径;请通过KSJ_QueryFunction(KSJ_SUPPORT_LUT_DOWNLOAD)查询相机是否支持LUT;该LUT仅本次有效,相机断电以后,该查找表将会丢失。 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_LutDataDownload | ( | int | nIndex, | |
| unsigned char * | pData, | |||
| int | nBytes | |||
| ) |
KSJ_LutDataDownload.
-----------------------------------------------------------------------------
此函数可用于加载用户自定义的LUT查找表数据(16bit to 8bit LUT)
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| pData | [out] 指向查找表数据的指针 | |
| nBytes | [in] 查找表数据个数,即pData指针指向的内存块的大小;该LUT仅本次有效,相机断电以后,该查找表将会丢失。 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_LutSetEnable | ( | int | nIndex, | |
| bool | bEnable | |||
| ) |
KSJ_LutSetEnable.
-----------------------------------------------------------------------------
使能LUT查找表功能
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| bEnable | [in] 设置是否使LUT功能生效 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_LutGetEnable | ( | int | nIndex, | |
| bool * | pbEnable | |||
| ) |
KSJ_LutGetEnable.
-----------------------------------------------------------------------------
获取LUT查找表是否使能
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| pbEnable | [out] 返回是否LUT功能已生效 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_SensitivitySetMode | ( | int | nIndex, | |
| KSJ_SENSITIVITYMODE | SensitivityMode | |||
| ) |
KSJ_SensitivitySetMode.
-----------------------------------------------------------------------------
选择截位模式
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| SensitivityMode | [in] 设置截位模式 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_SensitivityGetMode | ( | int | nIndex, | |
| KSJ_SENSITIVITYMODE * | pSensitivityMode | |||
| ) |
KSJ_SensitivityGetMode.
-----------------------------------------------------------------------------
获取当前的截位模式
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| pSensitivityMode | [out] 获取当前截位模式 |
-----------------------------------------------------------------------------