image
get_contrast_values #
Calculate contrast values (min, max, and percentiles) for a small numpy array.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arr |
ndarray
|
Input numpy array |
required |
percentile_low |
float
|
Lower percentile to calculate (default: 1.0) |
1.0
|
percentile_high |
float
|
Upper percentile to calculate (default: 99.0) |
99.0
|
Returns:
| Type | Description |
|---|---|
Dict[str, float]
|
Dictionary containing: |
Dict[str, float]
|
|
Dict[str, float]
|
|
Raises:
| Type | Description |
|---|---|
ValueError
|
If any dimension of the array is >= 256 |