After conducting further research on colorblindness simulation, I highly recommend the DaltonLens-Python repository. The author's blog is well worth reading.
- cv2
- numpy
- matplotlib
.
├── data # Contains the input images
├── results # Contains the output images
├── rendering.py # Color blindness image simulation
└── README.md
The sample image is cropped from the screenshot of the paper
Color-blind friendly version
- run python rendering.py --[image_path] --[output_path]
The code in this project is revised based on RGB2Colorblind.
Please refer License Information of RGB2Colorblind.