ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder

lớp trừu tượng tĩnh công khai ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder

Trình tạo cho ImageGenerator.ConditionOptions.EdgeConditionOptions.

Các tham số này dùng để định cấu hình thuật toán cạnh Canny của OpenCV.

Xem thêm chi tiết: https://docs.opencv.org/3.4/dd/d1a/group__imgproc__feature.html#ga04723e007ed888ddf11d9ba04e2232de

Công trình công cộng

Phương thức công khai

cuối cùng ImageGenerator.ConditionOptions.EdgeConditionOptions
build()
Xác thực và tạo thực thể ImageGenerator.ConditionOptions.EdgeConditionOptions.
bản tóm tắt ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder
setApertureSize(Integer apertureSize)
Kích thước khẩu độ cho toán tử Sobel.
bản tóm tắt ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder
setL2Gradient(Boolean l2gradient)
cờ, cho biết liệu có nên dùng tiêu chuẩn L2 chính xác hơn để tính độ lớn độ dốc của hình ảnh ( L2gradient=true ) hay liệu tiêu chuẩn L1 mặc định có đủ hay không ( L2gradient=false ).
bản tóm tắt ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder
setPluginModelBaseOptions(BaseOptions baseOptions)
Đặt các tuỳ chọn cơ sở cho mô hình trình bổ trợ.
bản tóm tắt ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder
setThreshold1(Ngưỡng Số thực 1)
Ngưỡng đầu tiên đối với quy trình trì hoãn.
bản tóm tắt ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder
setThreshold2(Ngưỡng Số thực 2)
Ngưỡng thứ hai cho quy trình trì hoãn.

Các phương thức kế thừa

Công trình công cộng

công khai Trình tạo ()

Phương thức công khai

công khai cuối cùng ImageGenerator.ConditionOptions.EdgeConditionOptions build ()

Xác thực và tạo thực thể ImageGenerator.ConditionOptions.EdgeConditionOptions.

công khai trừu tượng ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder setApertureSize (Integer apertureSize)

Kích thước khẩu độ cho toán tử Sobel. Phạm vi thông thường là 3~7.

Thông số
apertureSize

công khai bản tóm tắt ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder setL2Gradient (Boolean l2gradient)

cờ, cho biết liệu có nên dùng tiêu chuẩn L2 chính xác hơn để tính độ lớn độ dốc của hình ảnh ( L2gradient=true ) hay liệu tiêu chuẩn L1 mặc định có đủ hay không ( L2gradient=false ).

Thông số
l2Gradient

công khai trừu tượng ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder setPluginModelBaseOptions (BaseOptionsbaseOptions)

Đặt các tuỳ chọn cơ sở cho mô hình trình bổ trợ.

Thông số
baseOptions

công khai trừu tượng ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder setThreshold1 (FloatYêu cầu ngưỡng1)

Ngưỡng đầu tiên đối với quy trình trì hoãn.

Thông số
threshold1

công khai trừu tượng ImageGenerator.ConditionOptions.EdgeConditionOptions.Builder setThreshold2 (Floatthreshold2)

Ngưỡng thứ hai cho quy trình trì hoãn.

Thông số
threshold2