Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Threshold

Applies fixed-level thresholding to a multiple-channel array. The function is typically used to get a bi-level (binary) image out of a grayscale image or for removing a noise, that is, filtering out pixels with too small or too large values. There are several types of thresholding supported by the function. They are determined by type parameter.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected Optional defaultOptions

defaultOptions: T

description

description: string = "Applies fixed-level thresholding to a multiple-channel array. The function is typically used to get a bi-level (binary) image out of a grayscale image or for removing a noise, that is, filtering out pixels with too small or too large values. There are several types of thresholding supported by the function. They are determined by type parameter."

isInPlace

isInPlace: boolean = false

name

name: string = "Threshold"

noDst

noDst: boolean = false

noInPlace

noInPlace: boolean = false

optionsOrder

optionsOrder: ("dst" | "src" | "thresh" | "maxval" | "thresholdType")[] = ['src', 'dst', 'thresh', 'maxval', 'thresholdType'] as (keyof ThresholdOptions)[]

sameSizeAndType

sameSizeAndType: boolean = true

validChannels

validChannels: number[] | undefined = undefined

Protected validateEachExec

validateEachExec: boolean = false

Protected validated

validated: boolean = false

Methods

Protected _exec

Protected afterExec

Protected allChannels

Protected checkDst

Protected checkInPlaceAfter

Protected checkInPlaceBefore

Protected checkInputImage

Protected checkOptions

  • checkOptions(o?: T): T

exec

resolveOptionsObject

Protected validate

Generated using TypeDoc