Neighborhood
in package
implements
FilterInterface
The Neighborhood filter takes a matrix and calculates the color current pixel based on its neighborhood.
Tags
Table of Contents
Interfaces
- FilterInterface
- Interface for imagine filters.
Properties
Methods
- __construct() : mixed
- Initialize the instance.
- apply() : ImageInterface
- Applies scheduled transformation to an ImageInterface instance.
Properties
$matrix
protected
Matrix
$matrix
Methods
__construct()
Initialize the instance.
public
__construct(Matrix $matrix) : mixed
Parameters
- $matrix : Matrix
apply()
Applies scheduled transformation to an ImageInterface instance.
public
apply(ImageInterface $image) : ImageInterface
Parameters
- $image : ImageInterface
Tags
Return values
ImageInterface —returns the processed ImageInterface instance