PHP Class JansenFelipe\OMR\Contracts\Target

Mostra file Open project: jansenfelipe/omr

Protected Properties

Property Type Description
$blackPixelsPercent float Black pixels percentage
$id string Identifier
$marked boolean Store results if the target was marked
$tolerance float Black pixels percentage compared to whites to consider marked

Public Methods

Method Description
getBlackPixelsPercent ( ) : float
getId ( ) : string
getTolerance ( ) : float
isMarked ( ) : boolean Checks if the target was marked
setBlackPixelsPercent ( float $blackPixelsPercent )
setId ( string $id )
setMarked ( boolean $marked ) Tells whether the target was marked
setTolerance ( float $tolerance )

Method Details

getBlackPixelsPercent() public method

public getBlackPixelsPercent ( ) : float
return float

getId() public method

public getId ( ) : string
return string

getTolerance() public method

public getTolerance ( ) : float
return float

isMarked() public method

Checks if the target was marked
public isMarked ( ) : boolean
return boolean

setBlackPixelsPercent() public method

public setBlackPixelsPercent ( float $blackPixelsPercent )
$blackPixelsPercent float

setId() public method

public setId ( string $id )
$id string

setMarked() public method

Tells whether the target was marked
public setMarked ( boolean $marked )
$marked boolean

setTolerance() public method

public setTolerance ( float $tolerance )
$tolerance float

Property Details

$blackPixelsPercent protected_oe property

Black pixels percentage
protected float $blackPixelsPercent
return float

$id protected_oe property

Identifier
protected string $id
return string

$marked protected_oe property

Store results if the target was marked
protected bool $marked
return boolean

$tolerance protected_oe property

Black pixels percentage compared to whites to consider marked
protected float $tolerance
return float