Perform some basic processing functions:
- Change the brightness.
- Change the contrast.
- Flip the image (horizontally / vertically)
- Convert from RGB to grayscale.
- Blending 2 gray images of the same size.
- Blur an image.
- Crop an image into Circle.
- Crop an image into Ellipse.
Note: Each pixel can be a value (grayscale image) or a vector (color image).
In this project, you are required to implement the following basic image processing functions:
- Change the brightness
- Change the contrast
- Flip the image (horizontally / vertically)
- Convert from RGB to grayscale
Tham khảo tại đây
- Blending 2 gray images of the same size
- Blur an image
- Write a main function (1 point) with the following requirements:
- Allow the user to input the image file name each time the main function is executed.
- Allow the user to choose an image processing function (from 1 to 6, for function 4 allow choosing between horizontal flip or vertical flip). Choosing 0 allows performing all functions with output file names corresponding to each function. Example:
- Input:
cat.png
- Function: Blur
- Output:
cat_blur.png
- Input:
- Crop an image into Circle
- Crop an image into Ellipse