GMImage.AdaptiveThreshold
-------------------------

Local adaptive threshold image.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GraphicsMagick](component_GraphicsMagick.md) | [2.0](newinversion20.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "GMImage.AdaptiveThreshold"; ImageRef; Width; Height { ; Offset } ) 

**MBS**( **"GMImage.AdaptiveThreshold";** /\* Local adaptive threshold image. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$Width**; /\* defines the size of the pixel neighborhoode.g. 100 \*/   
**$Height**; /\* defines the size of the pixel neighborhoode.g. 100 \*/   
**$Offset**) /\* Optional; Optional, constant to subtract from pixel neighborhood meane.g. 0 \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| ImageRef | The image reference number. | 1 |  |
| Width | defines the size of the pixel neighborhood | 100 |  |
| Height | defines the size of the pixel neighborhood | 100 |  |
| Offset | Optional, constant to subtract from pixel neighborhood mean | 0 | Optional |

### Result

Returns "OK" on success.

### Description

Local adaptive threshold image.  
### See also

- [GMImage.SetCacheThreshold](GMImageSetCacheThreshold.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[FoundationModels.Transcript](FoundationModelsTranscript.md) - [GMImage.AddNoise](GMImageAddNoise.md)

[HTML Version](GMImageAdaptiveThreshold.shtml)