net.sf.javaocr.demos.android.utils.image
Class IntegralImageSlicer

java.lang.Object
  extended by net.sf.javaocr.demos.android.utils.image.IntegralImageSlicer
All Implemented Interfaces:
ImageSlicer

public class IntegralImageSlicer
extends Object
implements ImageSlicer

utilise integral images to slice up


Field Summary
static int EMPTY_PIXEL
           
private  Image integrated
           
(package private)  IntegralImageFilter integrator
           
private  Shrinker shrinker
           
 
Constructor Summary
IntegralImageSlicer(Image template)
          create with supplied image
IntegralImageSlicer(int w, int h)
          construct for given image size
 
Method Summary
 List<List<Image>> sliceUp(Image image)
          slice image into distinct glyphs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY_PIXEL

public static final int EMPTY_PIXEL
See Also:
Constant Field Values

integrator

IntegralImageFilter integrator

shrinker

private final Shrinker shrinker

integrated

private Image integrated
Constructor Detail

IntegralImageSlicer

public IntegralImageSlicer(int w,
                           int h)
construct for given image size

Parameters:
w -
h -

IntegralImageSlicer

public IntegralImageSlicer(Image template)
create with supplied image

Parameters:
template - integral image destination
Method Detail

sliceUp

public List<List<Image>> sliceUp(Image image)
slice image into distinct glyphs

Specified by:
sliceUp in interface ImageSlicer
Parameters:
image - image to be sliced
Returns:
list of glyphs


Copyright © -2012. All Rights Reserved.