net.sourceforge.javaocr
Interface ImageSlicer

All Known Implementing Classes:
AbstractBaseSlicer, SlicerH, SlicerV

public interface ImageSlicer

slices image into pieces. utilises iterator pattern, concrete implementations are provided for horizontal and vertical slicing


Method Summary
 boolean hasNext()
          whether next slice is available
 Image next()
          retrieve next slice and advance
 ImageSlicer slice(int fromY)
          start horizontal slicing iteration from certain position empty row means new image
 ImageSlicer slice(int fromY, int tolerance)
          start horizontal slicing with defined tolerance
 

Method Detail

slice

ImageSlicer slice(int fromY)
start horizontal slicing iteration from certain position empty row means new image

Parameters:
fromY - starting Y

slice

ImageSlicer slice(int fromY,
                  int tolerance)
start horizontal slicing with defined tolerance

Parameters:
fromY - starting position
tolerance - amount of empty rows allowed inside consecutive image

hasNext

boolean hasNext()
whether next slice is available

Returns:
availability of next slice

next

Image next()
retrieve next slice and advance

Returns:
next image slice


Copyright © -2012. All Rights Reserved.