Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hello, I need help writing code in Java to test out the junit test in the photo. the Hint I was given was : This
Hello, I need help writing code in Java to test out the junit test in the photo.
the Hint I was given was :
This is a more challenging filter as you must consider a rectangular window that will move throughout the span of the image.
Take a x window starting from the upperleft corner of the image and sum all the red, green, and blue values separately for all the pixels in that window. In a by window, there will be a total of pixels for which to sum the three separate channels.
Take the sum found for each channel of all the pixels in the window and divide them by
Set the red, green, and blue values of the topleftmost pixel of the by window to be the value calculated from #
Perform this on the entire image moving the x window by one pixel each time from lefttoright and toptobottom where topmost will be row and leftmost is column
Thank you
Step 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