---
title: "binarize_bradley method"
url: "https://reference.aspose.com/cad/python-net/aspose.cad/rasterimage/binarize_bradley/"
product: "Aspose.CAD for Python via .NET API References"
---


## binarize_bradley {#float}

Binarization of an image using Bradley's adaptive thresholding algorithm using the integral image thresholding



```python
def binarize_bradley(self, brightness_difference):
    ...
```


| Parameter | Type | Description |
| :- | :- | :- |
| brightness_difference | float | The brightness difference between pixel and the average of an s x s window of pixels centered around this pixel. |



### See Also
* module [`aspose.cad`](../../)
* class [`RasterImage`](/cad/python-net/aspose.cad/rasterimage)
