Docs: correct typo in description of threshold operation

This commit is contained in:
Lovell Fuller 2021-03-21 20:51:30 +00:00
parent a38126c82f
commit da43a3055f
2 changed files with 2 additions and 2 deletions

View File

@ -263,7 +263,7 @@ Returns **Sharp**
## threshold
Any pixel value greather than or equal to the threshold value will be set to 255, otherwise it will be set to 0.
Any pixel value greater than or equal to the threshold value will be set to 255, otherwise it will be set to 0.
### Parameters

View File

@ -396,7 +396,7 @@ function convolve (kernel) {
}
/**
* Any pixel value greather than or equal to the threshold value will be set to 255, otherwise it will be set to 0.
* Any pixel value greater than or equal to the threshold value will be set to 255, otherwise it will be set to 0.
* @param {number} [threshold=128] - a value in the range 0-255 representing the level at which the threshold will be applied.
* @param {Object} [options]
* @param {Boolean} [options.greyscale=true] - convert to single channel greyscale.