Dichromacy (java & class files)
This plugin for ImageJ/Fiji simulates the three main types dichromatic vision (or colour blindness) due to lack of function or absence of retinal photosensitive
pigments: protanopia (red), deuteranopia (green)
and tritanopia (blue cones deficiency).
There are other milder colour vision deficiencies due to altered or shifted spectral responses of the photoreceptors. These are called protanomaly, deuteranomaly and tritanomaly respectively. Complete monochromatic vision is called achromatopsia.
The plugin source code is based on the C++ version of Scribus module colorblind.cpp (licensed as GPL).
The Scribus code was, in turn, based on Gimp's display filter for colour blind simulation (also licensed as GPL) which implements the algorithm described in Reference  below (see http://vischeck.com/ for more info). Unfortunately both Scribus and GIMP colour transformations contained a bug in the gamma processing that simulates the values of RGB pixels when displayed on a device of gamma ~ 2.0. Robert Dougherty and Alex Wade, (authors of the Vischeck plugin) kindly suggested the fix of the gamma bug. Their help in the implementation is therefore greately appreciated.
The advantage of Dichromacy over the Vischeck plugin is that it
can be recorded and called from scripts and macros, without user
A: Normal trichromatic view, B: protanope simulation, C: deuteranope simulation, D: tritanope simulation.