This C/C++ program reads in raw format images and performs filtering by convolving them with small operators of 3×3 and 5×5 coefficients. The program applies differentiation by difference using edge operators such as the Sobel Operator in x and y directions. It computes horizontal and vertical differential images separately and saves them for display.
- Circle Image: Created using Photoshop with a dark intensity circle inside it.
- Unesco-1.png: Provided in the file page of CANVAS.
- Custom Image: Any small-sized image selected by the user.
The resulting images are saved in raw format and converted to jpg/png format as well. The output images include:
- Horizontal and vertical difference images for 3×3 filter size.
- Horizontal and vertical difference images for 5×5 filter size.
The program applies convolution with 3×3 and 5×5 filters to perform image filtering. It then normalizes the filtered results to prevent overflow.
- Compile the program.
- Execute the compiled binary.
- Input the file paths for the raw format images.
- Check the output images generated in the specified directory.
- Source Code: Main.cpp
- Input Images: Circle.raw, Unesco-1.png, CustomImage.raw
- Output Images: (To be generated by running the program)
Shubham Vats