Rescale the array `arr` to be between the minimum and maximum values of the type `dtype`.
(arr: np.ndarray, dtype: DtypeLike = np.uint16)
| 274 | |
| 275 | |
| 276 | def rescale_array_int_max(arr: np.ndarray, dtype: DtypeLike = np.uint16) -> np.ndarray: |
| 277 | """ |
| 278 | Rescale the array `arr` to be between the minimum and maximum values of the type `dtype`. |
| 279 | """ |
| 280 | info: np.iinfo = np.iinfo(dtype or arr.dtype) |
| 281 | return np.asarray(rescale_array(arr, info.min, info.max), dtype=dtype or arr.dtype) |
| 282 | |
| 283 | |
| 284 | def copypaste_arrays( |
nothing calls this directly
no test coverage detected
searching dependent graphs…