ac.essex.ca.neighbourhoods
Class MooreNeighbourhood

java.lang.Object
  extended by ac.essex.ca.neighbourhoods.Neighbourhood
      extended by ac.essex.ca.neighbourhoods.MooreNeighbourhood

public class MooreNeighbourhood
extends Neighbourhood

The Moore neighbourhood is a neighbourhood that manifests itself as a 3x3 grid around a central pixel.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version, provided that any use properly credits the author. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org


Field Summary
 
Fields inherited from class ac.essex.ca.neighbourhoods.Neighbourhood
positions
 
Constructor Summary
MooreNeighbourhood()
           
 
Method Summary
 void createNeighbourhood()
          Creates a 3x3 Moore Neighbourhood surrounding the central pixel.
 
Methods inherited from class ac.essex.ca.neighbourhoods.Neighbourhood
addPosition, getPositions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MooreNeighbourhood

public MooreNeighbourhood()
Method Detail

createNeighbourhood

public void createNeighbourhood()
Creates a 3x3 Moore Neighbourhood surrounding the central pixel.

Specified by:
createNeighbourhood in class Neighbourhood