public enum DeconvolutionMode extends java.lang.Enum<DeconvolutionMode>
Deconvolution (image restorations) mode which defines level of image degradation. Originally deconvolution is a function which can restore image degraded (convoluted) by any natural function like blur, during obtaining image by camera. Because we cannot detect image function which corrupt the image, we have to check most well know functions like sharp or mathematical morphology.
This sample shows how to use Deconvolution modeBarCodeReader reader = new BarCodeReader("c:\\test.png", DecodeType.CODE_39_EXTENDED, DecodeType.CODE_128); reader.getQualitySettings().setDeconvolution(DeconvolutionMode.SLOW); for(BarCodeResult result : reader.readBarCodes()) System.out.println(result.getCodeText());
Enum Constant and Description |
---|
FAST
Enables fast deconvolution methods for high quality images.
|
NORMAL
Enables normal deconvolution methods for common images.
|
SLOW
Enables slow deconvolution methods for low quality images.
|
Modifier and Type | Method and Description |
---|---|
static DeconvolutionMode |
fromValue(int value) |
int |
getValue() |
static DeconvolutionMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DeconvolutionMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DeconvolutionMode FAST
Enables fast deconvolution methods for high quality images.
public static final DeconvolutionMode NORMAL
Enables normal deconvolution methods for common images.
public static final DeconvolutionMode SLOW
Enables slow deconvolution methods for low quality images.
public static DeconvolutionMode[] values()
for (DeconvolutionMode c : DeconvolutionMode.values()) System.out.println(c);
public static DeconvolutionMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static DeconvolutionMode fromValue(int value)