Class SegInspectionOptions
Segmentation에 대한 검사 옵션입니다.
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: SaigeVision.Core.Inference
Assembly: SaigeVision.Core.Inference.dll
Syntax
public class SegInspectionOptions : InspectionOptions
Constructors
View SourceSegInspectionOptions()
Declaration
public SegInspectionOptions()
SegInspectionOptions(int[], Size, ContourInspectionOptions, InspectionOptions, bool)
Declaration
public SegInspectionOptions(int[] scoreThresholds, Size maxInspectionSize, ContourInspectionOptions contourOptions, InspectionOptions options, bool isMultiClasses = true)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | scoreThresholds | |
| Size | maxInspectionSize | |
| ContourInspectionOptions | contourOptions | |
| InspectionOptions | options | |
| bool | isMultiClasses |
SegInspectionOptions(int[], Size, ContourInspectionOptions, TimeSpan, bool)
Declaration
public SegInspectionOptions(int[] scoreThresholds, Size maxInspectionSize, ContourInspectionOptions contourOptions, TimeSpan timeLimit, bool isMultiClasses = true)
Parameters
| Type | Name | Description |
|---|---|---|
| int[] | scoreThresholds | |
| Size | maxInspectionSize | |
| ContourInspectionOptions | contourOptions | |
| TimeSpan | timeLimit | |
| bool | isMultiClasses |
Properties
View SourceContourOptions
검사 결과를 컨투어 타입으로 받는 경우 적용되는 옵션입니다.
Declaration
public ContourInspectionOptions ContourOptions { get; set; }
Property Value
| Type | Description |
|---|---|
| ContourInspectionOptions |
IsMultiClasses
검사 결과를 단일 또는 다중 클래스로 얻을 수 있습니다. 단일 클래스로 결과를 얻는 경우 검사 결과의 클래스 정보는 null입니다.
Declaration
public bool IsMultiClasses { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MaxInspectionSize
검사에 사용할 이미지의 최대 크기를 설정합니다. 설정된 MaxInspectionSize 보다 큰 이미지를 검사하는 경우 가로 세로 비율을 유지하며 리사이즈됩니다. 학습에서 사용한 이미지 크기와 검사에서 사용하는 이미지 크기가 다를 경우 아래 함수를 호출하여 검사 이미지 사이즈에 맞게 최대 검사 사이즈를 설정하여야 합니다. 최대 검사 사이즈 보다 큰 이미지가 들어올 경우 최대 검사 사이즈로 리사이즈된 후 검사됩니다. 단 이 함수는 AllocateNetwork() 함수를 호출하기 전 호출되어야 합니다.
Declaration
public Size MaxInspectionSize { get; set; }
Property Value
| Type | Description |
|---|---|
| Size |
ScoreThresholds
각 클래스의 스코어값에 기준값을 설정할 수 있습니다.
Declaration
public int[] ScoreThresholds { get; set; }
Property Value
| Type | Description |
|---|---|
| int[] |