This repository contains several functions for image processing.
- myID() -> np.int: Returns my ID number.
- imReadAndConvert(filename: str, representation: int) -> np.ndarray: Reads an image file and converts it to a specified representation (RGB or grayscale).
- imDisplay(filename: str, representation: int): Reads an image file and displays it as RGB or grayscale.
- transformRGB2YIQ(imgRGB: np.ndarray) -> np.ndarray: Converts an RGB image to YIQ color space.
- transformYIQ2RGB(imgYIQ: np.ndarray) -> np.ndarray: Converts a YIQ image to RGB color space.
- hsitogramEqualize(imgOrig: np.ndarray) -> (np.ndarray, np.ndarray, np.ndarray): Equalizes the histogram of an image.
###Usage To use these functions, first import the ex1.utils.py file. Then, call the desired function with the appropriate parameters.
- Python 3.x
- NumPy
- OpenCV
- Matplotlib
- Scikit-learn
Clone the repository: git clone https://github.com/AviRahimov/EX1_ImageProcessing.git
pip install numpy opencv-python matplotlib scikit-learn
