This repository has been archived on 2024-06-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
thesis-src/Ocr/Ocr.Tesseract.Screenshots/Threshold/AutoThresholdProcessor.cs
T
2023-11-14 14:52:19 +01:00

20 lines
414 B
C#

using ImageMagick;
namespace Ocr.Tesseract.Screenshots.Threshold;
public class AutoThresholdProcessor : SingleImageProcessor
{
private readonly AutoThresholdMethod _method;
public AutoThresholdProcessor(AutoThresholdMethod method)
{
_method = method;
}
/// <inheritdoc />
protected override MagickImage Process(MagickImage image)
{
image.AutoThreshold(_method);
return image;
}
}