Escolar Documentos
Profissional Documentos
Cultura Documentos
return result;
{
neighberhoodSize; c++)
}
assert numNeighbors > 0;
return new Color( red / numNeighbors, green / numNeighbors, blue
/ numNeighbors );
}
//helper method to determine if given coordinates are in bounds
private boolean inBounds(Color[][] image, int row, int col)
{
return (row >= 0) && (row <= image.length) && (col >= 0)
return isRectangular;