 |
SaigeVision C/C++
1.4.7
SaigeVision API document for C/C++
|
|
Go to the documentation of this file.
51 unsigned int nProducts;
53 unsigned int nTargetTopsPerProduct;
54 unsigned int nTargetBottomsPerProduct;
56 unsigned int topClassIdx;
57 unsigned int bottomClassIdx;
59 unsigned int convexityDefectThreshold;
61 bool useImageDataAtTop;
62 bool isTopBrighterThanBackGround;
63 bool useImageDataAtBottom;
64 bool isBottomBrighterThanBackGround;
66 float maxLengthOfSkeletonToRemoveAtTop;
67 float maxRatioThresholdOfMedianLengthToRemoveAtTop;
68 float minLengthOfSkeletonToKeepAtTop;
70 float maxLengthOfSkeletonToRemoveAtBottom;
71 float maxRatioThresholdOfMedianLengthToRemoveAtBottom;
72 float minLengthOfSkeletonToKeepAtBottom;
74 bool useImageDataForDividingProducts;
75 bool isBorderBrighterThanPoles;
76 }SR_SegPostProcessOptions;
100 unsigned int xStartPoint;
101 unsigned int yStartPoint;
102 unsigned int xEndPoint;
103 unsigned int yEndPoint;
105 unsigned int idxProduct;
106 unsigned int idxPoleInProduct;
107 unsigned int idxClass;
108 }SR_SegPostProcessSkeleton;
133 const char* imagePath);
138 const wchar_t* imagePath);
143 const unsigned char* imageData,
150 const unsigned char* imageData,
157 const unsigned int* imageData,
164 const unsigned char* imageData,
171 const unsigned char* imageData,
178 const unsigned int* imageData,
float angle
angle from upright position in clockwise range from 0 to 360
Definition: SegPostProcessFunctionsDLL.h:203
Header file for segmentation module.
eErrorType SR_UseImageDataFrom8bitCharGrayArray(SegPostProcessHandle handle, const unsigned char *imageData, const int height, const int width)
후처리 알고리즘에 사용되는 이미지 데이터를 1-channel 8-bit 배열로 설정합니다.
eErrorType SR_SegPostProcessGetNumberOfSkeletons(SegPostProcessHandle handle, int *numberOfSkeletonsOut)
후처리 결과로 검출된 스켈레톤의 개수를 받아옵니다.
unsigned int x_center
x coordinate of the center of the detected object
Definition: SegPostProcessFunctionsDLL.h:206
unsigned int y_center
y coordinate of the center of the detected object
Definition: SegPostProcessFunctionsDLL.h:208
eErrorType SR_DestroySegPostProcessHandle(SegPostProcessHandle handle)
SegPostProcessHandle 을 소멸합니다.
eErrorType SR_UseImageDataFrom16bitCharGrayArray(SegPostProcessHandle handle, const unsigned char *imageData, const int height, const int width)
후처리 알고리즘에 사용되는 이미지 데이터를 1-channel 16-bit 배열로 설정합니다.
Struct describing features of a segmentation object.
Definition: CommonHeaderDLL.h:108
eErrorType SR_SegPostProcessGetSkeletons(SegPostProcessHandle handle, SR_SegPostProcessSkeleton *skeletonsOut)
후처리 결과로 검출된 스켈레톤 정보를 받아옵니다.
eErrorType SR_UseImageDataFrom8bitCharColorArray(SegPostProcessHandle handle, const unsigned char *imageData, const int height, const int width)
후처리 알고리즘에 사용되는 이미지 데이터를 3-channel 8-bit 배열로 설정합니다.
eErrorType SR_SegRunPostProcessBySegmentedObjects(SegPostProcessHandle handle, int nSegObjects, SR_SegmentedObject *segObjects)
SR_SegmentedObject 를 이용하여 후처리를 수행합니다.
Header file for Detection Module.
eErrorType SR_UseImageDataFromImageFile(SegPostProcessHandle handle, const char *imagePath)
후처리 알고리즘에 사용되는 이미지 데이터를 이미지 경로로 설정합니다.
unsigned int classIdx
class index of detected object
Definition: SegPostProcessFunctionsDLL.h:211
eErrorType SR_UseImageDataFromImageFileByWideCharPath(SegPostProcessHandle handle, const wchar_t *imagePath)
후처리 알고리즘에 사용되는 이미지 데이터를 이미지 경로로 설정합니다.
Struct describing features of outputs of angle detector.
Definition: SegPostProcessFunctionsDLL.h:201
Struct describing features of a detected box.
Definition: CommonHeaderDLL.h:213
void * DetTestHandle
Detection file handler.
Definition: DetectorTestDLL.h:52
eErrorType SR_UseImageDataFrom16bitCharColorArray(SegPostProcessHandle handle, const unsigned char *imageData, const int height, const int width)
후처리 알고리즘에 사용되는 이미지 데이터를 3-channel 16-bit 배열로 설정합니다.
eErrorType SR_SegRunPostProcessByTestResultHandle(SegPostProcessHandle handle, SegTestResult segResult)
SegTestResult 를 이용하여 후처리를 수행합니다.
SegPostProcessHandle SR_CreateSegPostProcessHandle(eSegPostProcessType segPostProcessType, SR_SegPostProcessOptions segPostProcessOptions)
SegPostProcessHandle 을 생성합니다.
eErrorType SR_SegPostProcessFindAngleAndCenter(DetTestHandle handle, SR_DetectedBox *box, int numSegmentedObject, SR_SegmentedObject *segObjects, SR_SegPostProcessAngleDetection *angleObject)
Convert SR_DetectedBox to SR_SegPostProcessAngleDetection.
void * SegTestResult
Segmentation inspection results handler.
Definition: SegmentationTestDLL.h:105
void * SegPostProcessHandle
Definition: SegPostProcessFunctionsDLL.h:120
eErrorType SR_UseImageDataFrom16bitUnsignedIntColorArray(SegPostProcessHandle handle, const unsigned int *imageData, const int height, const int width)
후처리 알고리즘에 사용되는 이미지 데이터를 4-channel 16-bit 배열로 설정합니다.
eErrorType SR_UseImageDataFromUnsignedIntColorArray(SegPostProcessHandle handle, const unsigned int *imageData, const int height, const int width)
후처리 알고리즘에 사용되는 이미지 데이터를 4-channel 8-bit 배열로 설정합니다.
eSegPostProcessType
Segmentation post process target cell type.
Definition: SegPostProcessFunctionsDLL.h:21