一个matplotlib规范化对象,用于复制ds9图像拉伸
ds9norm的Python项目详细描述
ds9norm
==
此文件实现一个matplotlib normalize对象,该对象模拟
`ds9<;http://ds9.si.edu/site/home.html>;``中的图像缩放函数的功能。它提供了5种
配置图像缩放的方法:
-在指定的百分位数处剪裁低强度和高强度
(``clip_lo`,``clip_hi``)
-指定从黑色渐变到
白色(``stretch`)
-设置此传输函数的中点(``bias`,类似于
在DS9中向左/向右拖动鼠标右键)
-设置从黑白过渡的锐度(``对比度`,
类似于在DS9中向上/向下拖动鼠标右键)
http://nbviewer.ipython.org/github/glue-viz/ds9norm/blob/master/examples.ipynb>;`\uuu
…代码::python
norm=ds9 normalize(bias=0.2)
figure,axs=plt.subblots(ncols=3,nrows=3,squeze=false,tight廑layout=true)
ax,zip中的bias(axs[2],[2,.5,.8]):
ax ax.imshow(data,norm=ds9normalize(bias=bias))
ax.set戥title('bias=%0.1f%bias)
ax,zip中的对比度(axs[1],[0.5,1,2]):
ax.imshow(data,norm=ds9normalize(contrast=contrast))
ax.set戥title('contrast=%0.1f%contrast)
ax“arcsinh”]:
ax.imshow(data,norm=ds9normalize(stretch=stretch))
ax.set_title(stretch)
图:gallery.png
:alt:ds9norm demo
生成状态
----
[生成状态
(https://travis-ci.org/glue-viz/ds9norm?branch=master)[覆盖范围
状态\](https://coveralls.io/r/glue viz/ds9norm)
|构建状态图像::https://travis ci.org/glue viz/ds9norm.png
…|覆盖状态图片::https://coveralls.io/repos/glue-viz/ds9norm/badge.png
==
此文件实现一个matplotlib normalize对象,该对象模拟
`ds9<;http://ds9.si.edu/site/home.html>;``中的图像缩放函数的功能。它提供了5种
配置图像缩放的方法:
-在指定的百分位数处剪裁低强度和高强度
(``clip_lo`,``clip_hi``)
-指定从黑色渐变到
白色(``stretch`)
-设置此传输函数的中点(``bias`,类似于
在DS9中向左/向右拖动鼠标右键)
-设置从黑白过渡的锐度(``对比度`,
类似于在DS9中向上/向下拖动鼠标右键)
http://nbviewer.ipython.org/github/glue-viz/ds9norm/blob/master/examples.ipynb>;`\uuu
…代码::python
norm=ds9 normalize(bias=0.2)
figure,axs=plt.subblots(ncols=3,nrows=3,squeze=false,tight廑layout=true)
ax,zip中的bias(axs[2],[2,.5,.8]):
ax ax.imshow(data,norm=ds9normalize(bias=bias))
ax.set戥title('bias=%0.1f%bias)
ax,zip中的对比度(axs[1],[0.5,1,2]):
ax.imshow(data,norm=ds9normalize(contrast=contrast))
ax.set戥title('contrast=%0.1f%contrast)
ax“arcsinh”]:
ax.imshow(data,norm=ds9normalize(stretch=stretch))
ax.set_title(stretch)
图:gallery.png
:alt:ds9norm demo
----
[生成状态
(https://travis-ci.org/glue-viz/ds9norm?branch=master)[覆盖范围
状态\](https://coveralls.io/r/glue viz/ds9norm)
|构建状态图像::https://travis ci.org/glue viz/ds9norm.png
…|覆盖状态图片::https://coveralls.io/repos/glue-viz/ds9norm/badge.png