Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribedimage text in transcribedimage text in transcribed

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 follows

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions

Question

Strong analytical, communication, and problem-solving skills

Answered: 1 week ago