net.sourceforge.javaocr.ocr
Class SlicerH

java.lang.Object
  extended by net.sourceforge.javaocr.ocr.AbstractBaseSlicer
      extended by net.sourceforge.javaocr.ocr.SlicerH
All Implemented Interfaces:
ImageSlicer

public class SlicerH
extends AbstractBaseSlicer

class performing image slicing. it's a good idea to pre process image and made it binary. image slicing does not move data around and does not modify it. slicer is not thread safe.

Author:
Konstantin Pribluda

Field Summary
 
Fields inherited from class net.sourceforge.javaocr.ocr.AbstractBaseSlicer
border, currentPosition, empty, image, tolerance
 
Constructor Summary
SlicerH(Image image, int empty)
           
 
Method Summary
protected  Image chisel(int imageStart)
           
protected  void iterateSpan()
           
 
Methods inherited from class net.sourceforge.javaocr.ocr.AbstractBaseSlicer
hasNext, next, slice, slice, spanEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlicerH

public SlicerH(Image image,
               int empty)
Parameters:
image - image to be sliced
empty - empty empty
Method Detail

iterateSpan

protected void iterateSpan()
Specified by:
iterateSpan in class AbstractBaseSlicer

chisel

protected Image chisel(int imageStart)
Specified by:
chisel in class AbstractBaseSlicer


Copyright © -2012. All Rights Reserved.