Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need help with c++ please. 16.13 Homework 8b Image Processing n this assignment, you will use abstract classes and class inheritance to implement an
I need help with c++ please.
16.13 Homework 8b Image Processing n this assignment, you will use abstract classes and class inheritance to implement an image processing system for the grayscale images ou implented in Problem 8a. This program must be passed off in person to the instructor. Write an abstract class called "ImageFilter", or something similar. This class should have one abstract method that returns void and takes two grayscale images as parameters, a source, and a destination. Write subclasses of ImageFilter for the operations BoxFilter, SobelHorizontalFilter, GradientMagnitude, UnsharpMask. The class hierarchy will look like the following ImageFilter (Abstract class) BoxFilter SobelHorizontalFilter GradientMagnitude UnsharpMask The image operators can be described as follows: The BoxFilter is a blur operator that replaces the pixel with the average value of an NxN neighborhood around the pixe, where N is odd. o The SobelHorizontalFilter (https://en.wikipedia.org/wiki/SobelLoperator) is a first derivative operator that works by taking a weighted sum of the 3x3 neighborhood around the pixel in the source image. It attempts to capture the horizontal directional derivative of the image at each pixel. In other words, we treat the image as a 2D function, and we are trying to compute first the derivative of that function in the horizontal direction. The neighborhood weights (called a kernel) for the Sobel operator are as follows: 16.13 Homework 8b Image Processing n this assignment, you will use abstract classes and class inheritance to implement an image processing system for the grayscale images ou implented in Problem 8a. This program must be passed off in person to the instructor. Write an abstract class called "ImageFilter", or something similar. This class should have one abstract method that returns void and takes two grayscale images as parameters, a source, and a destination. Write subclasses of ImageFilter for the operations BoxFilter, SobelHorizontalFilter, GradientMagnitude, UnsharpMask. The class hierarchy will look like the following ImageFilter (Abstract class) BoxFilter SobelHorizontalFilter GradientMagnitude UnsharpMask The image operators can be described as follows: The BoxFilter is a blur operator that replaces the pixel with the average value of an NxN neighborhood around the pixe, where N is odd. o The SobelHorizontalFilter (https://en.wikipedia.org/wiki/SobelLoperator) is a first derivative operator that works by taking a weighted sum of the 3x3 neighborhood around the pixel in the source image. It attempts to capture the horizontal directional derivative of the image at each pixel. In other words, we treat the image as a 2D function, and we are trying to compute first the derivative of that function in the horizontal direction. The neighborhood weights (called a kernel) for the Sobel operator are as followsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started