GeoCOM Reference Manual
Image Processing – IMG
Leica TPS1200 – Version 1.50
130
14.4.3
IMG_TakeTccImage – capture a telescopic image
EDM_Laserpointer.............................................................................................................................................................................................................................................................................
ter
................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ 1004
1004 ................................................................................................................................................................................................................................................................EDM_Laserpoin
C-Declaration
IMG_TakeTccImage (IMG_MEM_TYPE eMemType, unsigned short& runImageNumber)
VB-Declaration
VB_IMG_TakeTccImage ( MemType As Long, ImageNumber As Integer ) As Integer
ASCII-Request
%R1Q,23402:
eMemType
ASCII-Response
%R1P,0,0:
RC,runImageNumber
Remarks
Parameters
eMemType In
Memory device type
runImageNumber Out
Number of the currently captured image
Return-Code Names and Return-Code Values
GRC_OK
0 Execution
successful.
GRC_IVRESULT
3
Not supported by Telescope Firmware
GRC_FATAL
4
CF card is not available full
GRC_NA
27
Imaging license key not available
See Also
IMG_GetTccConfig
IMG_SetTccConfig
Example
GRC_TYPE rc;
IMG_MEM_TYPE eMemType;
IMG_TCC_CONFIG Parameters;
short nTimeout;
// Set parameters
eMemType = IMG_PC_CARD;
Parameters.ulImageNumber = 999;
Parameters.ulQuality = 50;
// Automatic exposure time and two-times sub-sampling
Parameters.ulSubFunctNumber = 6;
strcpy(Parameters.szFileNamePrefix, "def");
rc = IMG_SetTccConfig(eMemType, Parameters);
if (rc != GRC_OK)
{
return rc;
}
// Increase geocom timeout, because image capture and readout takes long time
COM_GetTimeOut(nTimeout);
COM_SetTimeOut(200);
// Take image
rc = IMG_TakeTccImage(eMemType, unBuf);
if (rc != GRC_OK)
{
// Restore geocom timeout
COM_SetTimeOut(nTimeout);
return rc;
}
// Image "def999.jpg" is now stored on CF-Card
// Restore geocom timeout
COM_SetTimeOut(nTimeout);