Class SegmentationOption
Segmentation 검사에 필요한 옵션을 가져오거나 설정할 수 있습니다.
Implements
Inherited Members
Namespace: SaigeVision.Net.V2.Segmentation
Assembly: SaigeVision.Net.V2.dll
Syntax
public class SegmentationOption : InspectionOption, IInspectionOption
Constructors
View SourceSegmentationOption(bool, int, OverSizeImageFlags, bool, bool, bool, bool, bool, int[], int[], double[])
검사 결과에 필요한 옵션값을 설정합니다
Declaration
public SegmentationOption(bool calcTime, int batchSize, OverSizeImageFlags oversizedImageHandling, bool calcScoremap, bool calcMask, bool calcObject, bool calcObjectAreaAndApplyThreshold, bool calcObjectScoreAndApplyThreshold, int[] objectAreaThresholdPerClass, int[] objectBoundaryThresholdPerClass, double[] objectScoreThresholdPerClass)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | calcTime | 추론 API 실행에 소요되는 시간을 세분화하여 출력할지 결정합니다. |
| int | batchSize | 추론을 한 번 수행할 때 추론하는 이미지의 개수입니다. |
| OverSizeImageFlags | oversizedImageHandling |
|
| bool | calcScoremap |
|
| bool | calcMask |
|
| bool | calcObject |
|
| bool | calcObjectAreaAndApplyThreshold |
|
| bool | calcObjectScoreAndApplyThreshold |
|
| int[] | objectAreaThresholdPerClass | 클래스별 object area threshold 값입니다. |
| int[] | objectBoundaryThresholdPerClass | 클래스별 object boundary threshold 값입니다. |
| double[] | objectScoreThresholdPerClass | 클래스별 object score threshold 값입니다. |
Properties
View SourceCalcMask
true로 설정하면 추론 시 mask를 계산합니다.
Declaration
public bool CalcMask { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
CalcObject
true로 설정하면 추론 시 segmented object를 계산합니다.
Declaration
public bool CalcObject { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
CalcObjectAreaAndApplyThreshold
true로 설정하면 segmented object의 면적을 계산합니다.
Segmented object의 면적이 object area threshold 보다 작으면 최종 결과에서 제외됩니다.
Declaration
public bool CalcObjectAreaAndApplyThreshold { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
CalcObjectScoreAndApplyThreshold
true로 설정하면 segmented object의 score를 계산합니다.
Segmented object의 score가 object score threshold 보다 작으면 최종 결과에서 제외됩니다.
Declaration
public bool CalcObjectScoreAndApplyThreshold { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
CalcScoremap
true로 설정하면 추론 시 scoremap을 계산합니다.
Declaration
public bool CalcScoremap { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
ObjectAreaThresholdPerClass
클래스별 object area threshold 값입니다.
n번째 클래스로 검출된 segmented object의 면적이 n번째 값보다 작으면 최종 결과에서 제외됩니다.
0번 인덱스 값은 OK 클래스에 대응하는 값으로 의미가 없으며 설정도 불가능합니다.
calcObject가 true일 때 유효합니다.
Declaration
public int[] ObjectAreaThresholdPerClass { get; set; }
Property Value
| Type | Description |
|---|---|
| int[] |
ObjectBoundaryThresholdPerClass
클래스별 object boundary threshold 값입니다.
n번째 값이 클수록 n번째 클래스의 mask 및 segmented object의 경계가 좁아집니다.
Declaration
public int[] ObjectBoundaryThresholdPerClass { get; set; }
Property Value
| Type | Description |
|---|---|
| int[] |
ObjectScoreThresholdPerClass
클래스별 object score threshold 값입니다.
n번째 클래스로 검출된 segmented object의 score가 n번째 값보다 작으면 최종 결과에서 제외됩니다.
0번 인덱스 값은 OK 클래스에 대응하는 값으로 의미가 없으며 설정도 불가능합니다.
calcObject가 true일 때 유효합니다.
Declaration
public double[] ObjectScoreThresholdPerClass { get; set; }
Property Value
| Type | Description |
|---|---|
| double[] |
OversizedImageHandling
SaigeHandleConfig에서 지정한 inspection size보다 큰 이미지를 처리하는 방법입니다.
DO_NOT_INSPECT, RESIZE_TO_FIT, CROP_INTO_TILES 세 가지 옵션이 존재합니다.
Declaration
public OverSizeImageFlags OversizedImageHandling { get; set; }
Property Value
| Type | Description |
|---|---|
| OverSizeImageFlags |