net.sf.javaocr.demos.android.utils.image
Class IntegralImageSlicer
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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
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.