在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:peterkovesi/PerceptualColourMaps.jl开源软件地址:https://github.com/peterkovesi/PerceptualColourMaps.jl开源编程语言:Julia 100.0%开源软件介绍:PerceptualColourMaps(Perceptual Color Maps)InstallationInstall via the package manager.
If you are after the latest master use:
SummaryThe Perceptual Colour/Color Maps package provides functions for creating high quality colour maps that have consistent perceptual contrast over their full range. It also provides functions for generating colour map test images, functions to assist with the correct rendering of data with colour maps, and functions for generating relief shaded images and perceptually uniform ternary images. Many colour maps provided by vendors have highly uneven perceptual contrast over their range. Colour maps may have points of locally high colour contrast leading to the perception of false anomalies in your data when there is none. Conversely colour maps may also have 'flat spots' of low perceptual contrast that prevent you from seeing features in the data. To illustrate this the colour maps shown below are rendered on a test image consisting of a sine wave superimposed on a ramp function. The amplitude of the sine wave is modulated from its full value at the top of the image to 0 at the bottom. What we are hoping to see is the sine wave uniformly visible across the image from left to right. We also want the contrast level, the distance down the image at which the sine wave remains discernible, to be uniform across the image. At the very bottom of the image, where the sine wave amplitude is 0, we just have a linear ramp which simply reproduces the colour map. Given that the underlying data is a featureless ramp, we should not perceive any identifiable features across the bottom of the image. At the top row of the test image, the sine wave amplitude from peak to trough is 10% of the total data range. It is not unusual for the sine wave pattern to completely disappear in parts of some vendor colour maps. On the other hand the perceptually uniform colour maps exhibit no false features and the sine wave pattern is uniformly visible across the full width of the test image. Previous work that has tried to use CIELAB space for the design of
colour maps has had mixed results. This is because CIELAB space is
only perceptually uniform for large patches of colour presented at
very low spatial frequencies. The key observation is that at fine
spatial frequencies perceptual contrast is dominated by lightness
difference; chroma and hue are relatively unimportant. The colour
maps generated by cmap()
Usage 3 and 4: cmap(searchStr) Given the large number of colour maps that this function can create this usage option provides some help by listing the numbers of all the colour maps with names containing the string 'str'. Typically this is used to search for colour maps having a specified attribute: "linear", "diverging", "rainbow", "cyclic", or "isoluminant" etc. If 'searchStr' is omitted all colour maps are listed.
Note the listing of colour maps can be a bit slow because each colour map has to be created in order to determine its full name. Using the colour maps: PyPlot:
Plots:
Winston:
You can also apply a colour map to a single channel image to create a conventional RGB image. This is recommended if you are using a diverging or cyclic colour map because it allows you to ensure data values are honoured appropriately when you map them to colours.
Warning PyPlot and Tk do not seem to coexist very well (Julia can crash!). ImageView and Winston use Tk which means that you may have to take care which image display functions you choose to use. These colour maps can also be passed to the
Organisation of the Colour MapsThe colour maps are organised according to the attributes: Linear, Diverging, Rainbow, Cyclic, and Isoluminant. Linear colour maps are intended for general use and have colour lightness values that increase or decrease linearly over the colour map's range. Diverging colour maps are suitable where the data being displayed
has a well defined reference value and we are interested in
differentiating values that lie above, or below, the reference
value. The centre point of the colour map will be white, black or
grey. Rainbow colour maps are widely used but often misused. It is
suggested that they be avoided because they have reversals in the
lightness gradient at yellow and red which can upset a viewer's
perceptual ordering of the colours in the colour map. However, they
are attractive and perhaps can have a legitimate use where the main
aim is to differentiate data values rather than communicate a data
ordering. I believe the rainbow colour maps generated by Cyclic colour maps have colours that are matched at each end. They are
intended for the presentation of data that is cyclic such as orientation values
or angular phase data. They require particular care in their design (the
standard colour circle is not a good map). Isoluminant colour maps are constructed from colours of equal perceptual lightness. These colour maps are designed for use with relief shading. On their own these colour maps are not very useful because features in the data are very hard to discern. However, when used in conjunction with relief shading their constant lightness means that the colour map does not induce an independent shading pattern that can interfere with, or even hide, the structures induced by the relief shading. The relief shading provides the structural information and the colours provide the data classification information. Colour Blind colour maps. These are not designed to be merely 'colour blind safe'. These maps have been constructed to lie within either the 2D model of protanopic/deuteranopic colour space, or the 2D model of tritanopic colour space. Hopefully by working within these colour spaces people who are colour blind will be able to share a common perceptual interpretation of data with those who have normal colour vision. It also ensures maximal use of the available colour spaces, and allows chroma and lightness to be properly used in the design of colour maps. I would value any feedback on the usefulness, or otherwise, of these maps. Links
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论