SaigeVision C/C++ 1.5.0
SaigeVision API document for C/C++
 
Loading...
Searching...
No Matches
Segmentation's average color

Functions

eErrorType SR_SetSegTestIsToCalcAverageColor (SegTestHandle handle, bool isToCalcAverageColors, bool writeOnModelFile=true)
 Set the boolean indicating whether calculate SR_SegmentedObject::averageColor or not. More...
 
eErrorType SR_GetSegTestIsToCalcAverageColor (SegTestHandle handle, bool *isToCalcAverageColors)
 Get the boolean indicating whether calculate SR_SegmentedObject::averageColor or not. More...
 

Detailed Description

SR_SegmentedObject::averageColor 는 SR_SegmentedObject 의 픽셀들의 평균 색깔을 계산한값입니다. 최적의 성능을 위해서는 해당 값을 계산하지 않는 것을 추천합니다.

Function Documentation

◆ SR_GetSegTestIsToCalcAverageColor()

eErrorType SR_GetSegTestIsToCalcAverageColor ( SegTestHandle  handle,
bool *  isToCalcAverageColors 
)

Get the boolean indicating whether calculate SR_SegmentedObject::averageColor or not.

Parameters
handlesegmentation file handler
[out]isToCalcAverageColors

◆ SR_SetSegTestIsToCalcAverageColor()

eErrorType SR_SetSegTestIsToCalcAverageColor ( SegTestHandle  handle,
bool  isToCalcAverageColors,
bool  writeOnModelFile = true 
)

Set the boolean indicating whether calculate SR_SegmentedObject::averageColor or not.

Parameters
handlesegmentation file handler
isToCalcAverageColors
writeOnModelFileoverwrite on model file or not
Examples
ExampleSegPostProcess.cpp, ExampleSegRuntime.cpp, ExampleSegRuntimeBatchInspection.cpp, and ExampleSuperResolution+SegRuntime.cpp.