| KSJ_GetADCResolution. | |
| KSJ_API int __stdcall | KSJ_SetData16Bits (int nIndex, bool bEnable) |
| KSJ_SetData16Bits. | |
| KSJ_API int __stdcall | KSJ_GetData16Bits (int nIndex, bool *bEnable) |
| KSJ_GetData16Bits. | |
| KSJ_API int __stdcall | KSJ_CaptureGetSizeExEx (int nIndex, int *pnWidth, int *pnHeight, int *pnBitCount, int *nBitsPerSample) |
| KSJ_CaptureGetSizeExEx. | |
| KSJ_API int __stdcall | KSJ_HelperSaveToTiff (unsigned char *pData, int nWidth, int nHeight, int nBitPerSample, int nSamplesPerPixel, const TCHAR *pszFileName) |
| KSJ_HelperSaveToTiff. |
| KSJ_API int __stdcall KSJ_GetADCResolution | ( | int | nIndex, | |
| int * | pnADCResolution | |||
| ) |
KSJ_GetADCResolution.
-----------------------------------------------------------------------------
获取图像传感器的ADC转换精度(比特位数)
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| pnADCResolution | [out] 返回ADC时的比特位数 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_SetData16Bits | ( | int | nIndex, | |
| bool | bEnable | |||
| ) |
KSJ_SetData16Bits.
-----------------------------------------------------------------------------
设置相机是否以16bit方式传输数据(部分相机是以10bit或者12bit采样,但是传输必须以8bit或者16bit进行传输)
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| bEnable | [in] 为true时,设置每个像素点原始数据传输比特位数为16bit;为false时,设置每个像素点原始数据传输比特位数为8bit |
| KSJ_API int __stdcall KSJ_GetData16Bits | ( | int | nIndex, | |
| bool * | bEnable | |||
| ) |
KSJ_GetData16Bits.
-----------------------------------------------------------------------------
函数用于获取相机是否以16bit原始数据传输
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| bEnable | [out] 为true时,每个像素点原始数据传输比特位数为16bit;为false时,每个像素点原始数据传输比特位数为8bit |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_CaptureGetSizeExEx | ( | int | nIndex, | |
| int * | pnWidth, | |||
| int * | pnHeight, | |||
| int * | pnBitCount, | |||
| int * | nBitsPerSample | |||
| ) |
KSJ_CaptureGetSizeExEx.
-----------------------------------------------------------------------------
该函数得到采集图像的宽度和高度(单位:像素)及位图深度(8,24,32)及每个采样的比特位数
| nIndex | [in] 相机索引(从0开始,最大索引数为:连接到主机的相机数目减一) | |
| pnWidth | [out] 返回当前视场模式设置下的实际采集图像的像素宽度 | |
| pnHeight | [out] 返回当前视场模式设置下的实际采集图像的像素高度 | |
| pnBitCount | [out] 返回当前视场模式设置下的实际采集图像的位图深度 | |
| nBitsPerSample | [out] 采样位数,nBitPerSample = 8 或16,分别为8bit和16bit采样 |
-----------------------------------------------------------------------------
| KSJ_API int __stdcall KSJ_HelperSaveToTiff | ( | unsigned char * | pData, | |
| int | nWidth, | |||
| int | nHeight, | |||
| int | nBitPerSample, | |||
| int | nSamplesPerPixel, | |||
| const TCHAR * | pszFileName | |||
| ) |
KSJ_HelperSaveToTiff.
-----------------------------------------------------------------------------
将图像保存为Tiff格式图像文件
| pData | [in] 指向图像数据的首地址指针 | |
| nWidth | [in] 图像的宽度(像素) | |
| nHeight | [in] 图像的高度(像素) | |
| nBitPerSample | [in] 采样位数,nBitPerSample = 8 或16,分别为8bit和16bit采样 | |
| nSamplesPerPixel | [in] 表示每个像素有几个采样点,nSamplesPerPixel = 1或3或4(分别对应BitCount=8,24,32) | |
| pszFileName | [in] 保存文件的全路径名(路径必须存在) |
-----------------------------------------------------------------------------