org.shapelogic.imageprocessing
Class NeighborChecker

java.lang.Object
  extended by org.shapelogic.imageprocessing.NeighborChecker
All Implemented Interfaces:
IPixelTypeFinder, PixelJumperByte

public class NeighborChecker
extends java.lang.Object
implements IPixelTypeFinder

Neighbor Checker. Runs around a point and find what type all the neighbor points have

Author:
Sami Badawi

Constructor Summary
NeighborChecker(IPixelTypeFinder parent, int currentPixelIndex)
           
 
Method Summary
 int allNeighbors()
           
protected  void checkNeighbors()
          Run over the neighbors points and put them in categories.
 boolean falseJunction()
           
 PixelTypeCalculator findPointType(int pixelIndex, PixelTypeCalculator reusedPixelTypeCalculator)
           
 int[] getCyclePoints()
          What you need to add to the the index in the pixels array to get to the indexed point.
 int getMaxX()
           
 int getMaxY()
           
 int getMinX()
           
 int getMinY()
           
 byte[] getPixels()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NeighborChecker

public NeighborChecker(IPixelTypeFinder parent,
                       int currentPixelIndex)
Method Detail

checkNeighbors

protected void checkNeighbors()
Run over the neighbors points and put them in categories.


allNeighbors

public int allNeighbors()

falseJunction

public boolean falseJunction()

getCyclePoints

public int[] getCyclePoints()
Description copied from interface: PixelJumperByte
What you need to add to the the index in the pixels array to get to the indexed point.

Specified by:
getCyclePoints in interface PixelJumperByte

getMaxX

public int getMaxX()
Specified by:
getMaxX in interface PixelJumperByte

getMaxY

public int getMaxY()
Specified by:
getMaxY in interface PixelJumperByte

getMinX

public int getMinX()
Specified by:
getMinX in interface PixelJumperByte

getMinY

public int getMinY()
Specified by:
getMinY in interface PixelJumperByte

getPixels

public byte[] getPixels()
Specified by:
getPixels in interface PixelJumperByte

findPointType

public PixelTypeCalculator findPointType(int pixelIndex,
                                         PixelTypeCalculator reusedPixelTypeCalculator)
Specified by:
findPointType in interface IPixelTypeFinder


Copyright © 2008. All Rights Reserved.