Package colorblind.generators
Class DaltonizeGenerator
java.lang.Object
colorblind.generators.Generator
colorblind.generators.ColorTransformGenerator
colorblind.generators.DaltonizeGenerator
Optimized implementation of a Daltonize algorithm.
This works by precomputing a set of lookup tables for every possible color.
The lookup tables will use 64 MB of RAM.
Without these optimizations it would not be possible to use this algorithm in
real time.
-
Field Summary
Fields inherited from class colorblind.generators.ColorTransformGenerator
amount, amountComplement, applyGammaCorrectionLUT, colorMap, deficiency, dynamicAmount, MAX_ENCODED_VALUE, removeGammaCorrectionLUT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DaltonizeGenerator
createDaltonizer
(Deficiency colorBlindness) protected int[]
precalcDichromaticColorMap
(Matrix sim, float amount) protected int[]
precalcMonochromaticColorMap
(Vector sim, float amount) Methods inherited from class colorblind.generators.ColorTransformGenerator
preComputeApplyGammaCorrectionLUT, preComputeRemoveGammaCorrectionLUT, setAmount, setDynamicAmount, transformColor, transformPImage, transformPixels
-
Constructor Details
-
DaltonizeGenerator
-
-
Method Details
-
createDaltonizer
-
precalcMonochromaticColorMap
- Specified by:
precalcMonochromaticColorMap
in classColorTransformGenerator
-
precalcDichromaticColorMap
- Specified by:
precalcDichromaticColorMap
in classColorTransformGenerator
-