Please enable JavaScript to view this site.

IDS Software Suite 4.96.1

Windows_Logo
Linux_Logo

USB 2.0

USB 3.x

GigE

USB 2.0

USB 3.x

GigE

Syntax

INT is_EdgeEnhancement(HIDS hCam, UINT nCommand, void* pParam, UINT cbSizeOfParam)

Description

This function enables/disables a software edge filter.

Due to Bayer format color conversion, the original edges of a color image may easily become blurred. By enabling the digital edge filter, you can optimize edge representation. This function causes a higher CPU load.

hint_info

The is_EdgeEnhancement() function cannot be used if you have set raw Bayer as color format.

hint_info

For UI-1007XS please use the is_Sharpness() function instead.

The nCommand input parameter is used to select the function mode. The pParam input parameter depends on the selected function mode. If you select functions for setting or returning a value, pParam contains a pointer to a variable of the UINT type. The size of the memory area to which pParam refers is specified in the cbSizeOfParam input parameter.

Input parameters

hCam

Camera handle

pParam

Pointer to a function parameter, whose function depends on nCommand.

cbSizeOfParam

Size (in bytes) of the memory area to which pParam refers.

Return values

IS_INVALID_PARAMETER

One of the submitted parameters is outside the valid range or is not supported for this sensor or is not available in this mode.

IS_NO_SUCCESS

General error message

IS_SUCCESS

Function executed successfully

Related functions

is_SetColorMode()

is_SetColorConverter()

Example 1

UINT nRange[3];
ZeroMemory(nRange, sizeof(nRange));
 
INT nRet = is_EdgeEnhancement(m_hCam, IS_EDGE_ENHANCEMENT_CMD_GET_RANGE, (void*)nRange, sizeof(nRange));
 
if (nRet == IS_SUCCESS)
{
  UINT nEdgeEnhancementMin = nRange[0];
  UINT nEdgeEnhancementMax = nRange[1];
  UINT nEdgeEnhancementInc = nRange[2];
}

Example 2

UINT nDefault;
INT nRet = is_EdgeEnhancement(m_hCam, IS_EDGE_ENHANCEMENT_CMD_GET_DEFAULT, (void*)&nDefault, sizeof(nDefault));

Example 3

UINT nEdgeEnhancement;
INT nRet = is_EdgeEnhancement(m_hCam, IS_EDGE_ENHANCEMENT_CMD_GET, (void*)&nEdgeEnhancement, sizeof(nEdgeEnhancement));

Example 4

UINT nEdgeEnhancement = 4;
INT nRet = is_EdgeEnhancement(m_hCam, IS_EDGE_ENHANCEMENT_CMD_SET, (void*)&nEdgeEnhancement, sizeof(nEdgeEnhancement));

© 2022 IDS Imaging Development Systems GmbH