The following operations are implemented without using the built-in library,Numpy and Pillow are used to load and save the image
The image can be rotated by any angle bound or inbound.
Input Image |
Output
No Bound | Bound |
Applying 5X5 filters to do the following task
- Blurring
- Sharpening
Input Image |
Output
Box Filter | Gaussian Filter | Sharpen |
Applying Edge Detection in following sequence
- Vertical edge detection
- Horizontal edge detection
- Sobel edge detection (right, left, top, bottom)
- Canny edge detection
Input Image |
Output
Vertical Edge Detection | Horizontal Edge Detection |
Sobel Edge Detection | Canny Edge Detection |
Applying dilation and erosion transformation to the image
Output
Input-Image | Dilation | Erosion | Edge-Detection |
A mask is a binary image consisting of zero- and non-zero values. If a mask is applied to another binary or to a grayscale image of the same size, all pixels which are zero in the mask are set to zero in the output image. All others remain unchanged.
Masking is often used to restrict a point or arithmetic operator to an area defined by the mask. We can, for example, accomplish this by first masking the desired area in the input image and processing it with the operator, then masking the original input image with the inverted mask to obtain the unprocessed area of the image and finally recombining the two partial images using image addition.
Input-Image | Masked Image(Blue ball detected) |
A region of interest (ROI) is a portion of an image that you want to filter or perform some other operation on. You define an ROI by creating a binary mask, which is a binary image that is the same size as the image you want to process with pixels that define the ROI set to 1 and all other pixels set to 0.
Input-Image | Output Image |