Preprocess
Fill in a module description here
clahe
clahe (image:numpy.ndarray, clip_limit:float, tile_grid_size:Tuple[int,int])
Apply Contrast Limited Adaptive Histogram Equalization (CLAHE) to a grayscale image.
| Type | Details | |
|---|---|---|
| image | ndarray | 2D array representing the input grayscale image. |
| clip_limit | float | Threshold for contrast limiting. Higher values result in stronger contrast enhancement. |
| tile_grid_size | Tuple | Size (height, width) of the grid for histogram equalization (e.g., (8, 8)). |
| Returns | ndarray | CLAHE-enhanced image as a 2D array. |
process_ihc_image
process_ihc_image (ihc_rgb:numpy.ndarray)
Process an IHC image by separating its stains.
| Type | Details | |
|---|---|---|
| ihc_rgb | ndarray | The IHC image as a NumPy array in BGR format. |
| Returns | tuple | The original IHC image in RGB format. |