cmatrix.Matrix.get_coef

Matrix.get_coef()

Return the coefficient to mean a filter mask

Returns
float

The computed coef.

Examples

>>> mat=gaussian(3,0,0)
>>> Print(mat)
| +1.000 | +2.000 | +1.000 |
| +2.000 | +4.000 | +2.000 |
| +1.000 | +2.000 | +1.000 |
printed
>>> mat.get_coef()
0.0625