public class FastChessboardDetector extends Object implements ImageAnalyser<FImage>
Constructor and Description |
---|
FastChessboardDetector(int patternWidth,
int patternHeight)
* Construct with the given pattern size
|
Modifier and Type | Method and Description |
---|---|
void |
analyseImage(FImage src)
Analyse an image.
|
boolean |
chessboardDetected()
Check whether the last image analysed with
analyseImage(FImage)
was likely to contain a suitable chessboard pattern. |
static void |
main(String[] args)
Simple test program
|
public FastChessboardDetector(int patternWidth, int patternHeight)
patternWidth
- the pattern widthpatternHeight
- the pattern heightpublic void analyseImage(FImage src)
ImageAnalyser
analyseImage
in interface ImageAnalyser<FImage>
src
- The image to process in place.public boolean chessboardDetected()
analyseImage(FImage)
was likely to contain a suitable chessboard pattern.public static void main(String[] args) throws MalformedURLException, IOException
args
- MalformedURLException
IOException