Question: aTest void testBlur ( ) { / / Create two Picture image objects using the same image file Picture p = new Picture ( PictureExplorer
aTest
void testBlur
Create two Picture image objects using the same image file
Picture new PicturePictureExplorerimageFolderName "bees.PNG;
Picture p new PicturePictureExplorerimageFolderName "bees.PNG; original
Apply the student code and solution code
Logic.blurp;
obtain the D Pixel array representation for both objects
Pixel pixels pgetPixelsD;
Pixel pixels pgetPixelsD; original
check that the formula was applied to a couple of pixels
int avgRedintpixelsgetRed pixelsgetRed pixelsgetRed
pixelsgetRed;
assert avgRed pixelsgetRed;
int avgRedintpixelsgetRed pixelsgetRed pixelsgetRed
pixelsgetRed;
assert avgRed pixelsgetRed;
Hello I am trying to write code that will blur the image bees, here is the code I must test. any help would be appreciated
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
