Compimp
Compimp
Color;
/*
*/
{ //check precondition
return result;
private Color aveOfNeighbors(Color[][] image, int row, int col, int neighberhoodSize)
{ int numNeighbors = 0;
int red = 0;
int green = 0;
int blue = 0;
{ numNeighbors++;
red += image[r][c].getRed();
green += image[r][c].getGreen();
blue += image[r][c].getBlue();
{ return (row >= 0) && (row <= image.length) && (col >= 0)
int row = 1;
row++;
return isRectangular;
Class FilterExample
java.lang.Object
FilterExample
Constructor Summary
Constructors
Constructor
Description
FilterExample()
Method Summary
Method
Description
Color[][]
Constructor Details
FilterExample
public FilterExample()
Method Details
smooth
public Color[][] smooth(Color[][] image,
int neighberhoodSize)