Git Product home page Git Product logo

colormapjet.py's Introduction

colorMapJet.py

from colorMatJet import getColorJetRGBi, getColorJetRGBf
getColorJetRGBi(v=i / 100., vmin=0, vmax=1)

example

>> for i in range(0, 10):
>>   print i / 100., getColorJetRGBi(v=i / 100., vmin=0, vmax=1)
>> 0.0 [0, 0, 255]
>> 0.01 [0, 10, 255]
>> 0.02 [0, 20, 255]
>> 0.03 [0, 30, 255]
>> 0.04 [0, 40, 255]
>> 0.05 [0, 51, 255]
>> 0.06 [0, 61, 255]
>> 0.07 [0, 71, 255]
>> 0.08 [0, 81, 255]
>> 0.09 [0, 91, 255]

>> for i in range(0, 10):
>>   print  i / 100., getColorJetRGBf(v=i / 100., vmin=0, vmax=1)
>> 0.0 [0, 0.0, 1.0]
>> 0.01 [0, 0.04, 1.0]
>> 0.02 [0, 0.08, 1.0]
>> 0.03 [0, 0.12, 1.0]
>> 0.04 [0, 0.16, 1.0]
>> 0.05 [0, 0.2, 1.0]
>> 0.06 [0, 0.24, 1.0]
>> 0.07 [0, 0.28, 1.0]
>> 0.08 [0, 0.32, 1.0]
>> 0.09 [0, 0.36, 1.0]

thanx!

(http://qiita.com/shimacpyon/items/9902b685a7a95e824a58)

(http://stackoverflow.com/questions/7706339/grayscale-to-red-green-blue-matlab-jet-color-scale/7811134#7811134)

colormapjet.py's People

Contributors

peace098beat avatar

Watchers

James Cloos avatar  avatar

Forkers

daidai321

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.