superResolution
class PyTorchModel
Methods:
class initiation
Methods:
upscale_image(img:np.ndarray, kernel:np.ndarray)
Apply super-resolution and postprocessing to an input RGB image.
Parameters:
img
(np.ndarray): RGB input image.kernel
(np.ndarray): Morphological kernel (e.g., cv2.getStructuringElement).
Returns:
np.ndarray
: Grayscale post-processed image.Author:
- Yassin Riyazi (edited for clarity and structure)
- Sajjad Shumaly
Labels:
src_PyThon_ContactAngle_CaMeasurer_superResolution_upscale_image