public class DetectBrokenImage extends AbstractImageProcessor
imageKeyDEFAULT_IMAGE_KEY| Constructor and Description |
|---|
DetectBrokenImage() |
| Modifier and Type | Method and Description |
|---|---|
double |
getThreshold() |
static void |
main(String[] args) |
stream.Data |
process(stream.Data item,
ImageRGB img) |
void |
setThreshold(double threshold) |
getImage, process, setImagepublic double getThreshold()
@Parameter(description="The fraction of pixels that need to have the \'broken\' color to mark this image as broken.") public void setThreshold(double threshold)
threshold - the threshold to setpublic stream.Data process(stream.Data item,
ImageRGB img)
process in interface ImageProcessorprocess in class AbstractImageProcessorAbstractImageProcessor.process(stream.Data,
stream.image.ImageRGB)public static void main(String[] args)
Copyright © 2015. All rights reserved.