daltonize | Simulate and correct images for dichromatic color blindness | Data Visualization library

 by   joergdietrich Python Version: 0.2.0 License: GPL-2.0

kandi X-RAY | daltonize Summary

kandi X-RAY | daltonize Summary

daltonize is a Python library typically used in Analytics, Data Visualization applications. daltonize has no bugs, it has no vulnerabilities, it has build file available, it has a Strong Copyleft License and it has low support. You can install using 'pip install daltonize' or download it from GitHub, PyPI.

Daltonize simulates the three types of dichromatic color blindness and images and matplotlib figures. Generalizing and omitting a lot of details these types are:. Daltonize can also adjust the color palette of an input image such that a color blind person can perceive the full information content. It can be used as a command line tool to convert pixel images but also as a Python module. If used as the latter, it provides an API to simulate and correct for color blindness in matplotlib figures. This allows to create color blind friendly vector graphics suitable for publication.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              daltonize has a low active ecosystem.
              It has 46 star(s) with 16 fork(s). There are 4 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 2 open issues and 4 have been closed. On average issues are closed in 136 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of daltonize is 0.2.0

            kandi-Quality Quality

              daltonize has 0 bugs and 0 code smells.

            kandi-Security Security

              daltonize has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              daltonize code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              daltonize is licensed under the GPL-2.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              daltonize releases are not available. You will need to build from source code and install.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              daltonize saves you 122 person hours of effort in developing the same functionality from scratch.
              It has 307 lines of code, 21 functions and 4 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed daltonize and discovered the below as its top functions. This is intended to give you an instant insight into daltonize implemented functionality, and help decide if they suit your requirements.
            • Simulate an RGB image
            • Transform a matrices into an image
            • Simulate a matplotlib figure
            • Set the colors from a NumPy array
            • Get key color from matplotlib colors
            • Get the colors for a child
            • Generate RGB arrays from matplotlib colors
            • Clips an array
            • Convert an array to an image
            • Get the colors of a matplotlib figure
            • Set matplotlib colors
            • Inverse of gamma correction
            • Join rgb and alpha
            • Prepare matplotlib colors from matplotlib
            • Daltonize matplotlib matplotlib
            • Daltonize RGB color scheme
            • Daltonize an rgb color
            • Calculate gamma correction
            Get all kandi verified functions for this library.

            daltonize Key Features

            No Key Features are available at this moment for daltonize.

            daltonize Examples and Code Snippets

            Daltonize,Usage
            Pythondot img1Lines of Code : 23dot img1License : Strong Copyleft (GPL-2.0)
            copy iconCopy
            $ daltonize.py -h
            usage: daltonize.py [-h] [-s | -d] [-t {d,p,t}] [-g {2.4}] input_image output_image
            
            positional arguments:
              input_image
              output_image
            
            optional arguments:
              -h, --help            show this help message and exit
              -s, --simulate     
            Daltonize,Installation
            Pythondot img2Lines of Code : 1dot img2License : Strong Copyleft (GPL-2.0)
            copy iconCopy
            pip install daltonize
              
            Deuteranopia
            Pythondot img3Lines of Code : 1dot img3License : Strong Copyleft (GPL-2.0)
            copy iconCopy
            python daltonize.py -s -t=d example_images/Ishihara_Plate_3.jpg example_images/Ishihara_Plate_3-Deuteranopia.jpg
              

            Community Discussions

            QUESTION

            How do I change the pixel values of UIImage with daltonization algorithm in Swift
            Asked 2022-Feb-15 at 12:48

            I'm trying to change the pixel data of a UIImage and create a new image with the new pixel data. I've been trying to implement the function in the following link to Swift.

            https://galactic.ink/labs/Color-Vision/Javascript/Color.Vision.Daltonize.js

            I keep hitting conversion errors.

            Error: cannot assign value of type 'UInt32' to subscript of type 'RGBA32'

            error: cannot convert value of type 'RGBA32' to expected argument type 'UInt32'

            Also the data types that i'm using in the processing algorithm are UInt32 which doesn't include negative numbers, so i'm wondering if it's even possible at all to write this method in Swift.

            ...

            ANSWER

            Answered 2022-Feb-15 at 12:48

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install daltonize

            You can install using 'pip install daltonize' or download it from GitHub, PyPI.
            You can use daltonize like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • PyPI

            pip install daltonize

          • CLONE
          • HTTPS

            https://github.com/joergdietrich/daltonize.git

          • CLI

            gh repo clone joergdietrich/daltonize

          • sshUrl

            git@github.com:joergdietrich/daltonize.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link