首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

viewer.utils

skimage.viewer.utils.figimage(image,...)

图形紧密围绕图像返回图形和轴。

skimage.viewer.utils.init_qtapp()

初始化QAppliction。

skimage.viewer.utils.new_plot(parent,...)

返回新的图形和坐标轴。

skimage.viewer.utils.start_qtapp(APP)

启动Qt主循环

skimage.viewer.utils.update_axes_image(...)

更新图像图显示的图像。

skimage.viewer.utils.ClearColormap(rgb,...)

从alpha = 0到1线性变化的颜色映射

skimage.viewer.utils.FigureCanvas(figure,...)

用于显示图像的画布。

skimage.viewer.utils.LinearColormap(name,...)

LinearSegmentedColormap,其颜色平滑变化。

skimage.viewer.utils.RequiredAttr(init_val)

使用前必须设置的类属性。

skimage.viewer.utils.canvas

skimage.viewer.utils.core

skimage.viewer.utils.dialogs

figimage

skimage.viewer.utils.figimage(image, scale=1, dpi=None, **kwargs)[source]

图形紧密围绕图像返回图形和轴。

不像pyplot.figimage,它实际上绘制到一个轴对象上,该对象填满了图形。将图像绘制到轴上允许轴艺术家的后续叠加。

参数:

图像:数组图像以绘制比例:float如果比例为1,则图形和坐标轴与图像尺寸相同。规模较小的值会缩小这个数字。dpi:图形的每英寸点数。如果没有,使用默认的rcParam。

init_qtapp

skimage.viewer.utils.init_qtapp()[source]

初始化QAppliction。

QApplication需要在创建任何QWidgets之前进行初始化

new_plot

skimage.viewer.utils.new_plot(parent=None, subplot_kw=None, **fig_kw)[source]

返回新的图形和坐标轴。

参数:

父级:显示图形对象的QtWidget Qt小部件。如果无,您必须手动调用canvas.setParent并传递父窗口小部件。subplot_kw:dict通过matplotlib.figure.Figure.add_subplot传递的关键字参数。关键字参数传递给matplotlib.figure.Figure。

start_qtapp

skimage.viewer.utils.start_qtapp(app=None)[source]

启动Qt主循环

update_axes_image

skimage.viewer.utils.update_axes_image(image_axes, image)[source]

更新图像图显示的图像。

这将设置图像图的阵列并适当更新其形状

Parameters:

image_axes : matplotlib.image.AxesImage Image axes to update. image : array Image array.

ClearColormap

class skimage.viewer.utils.ClearColormap(rgb, max_alpha=1, name='clear_color')[source]

基地: skimage.viewer.utils.core.LinearColormap

从alpha = 0到1线性变化的颜色映射

__init__(rgb, max_alpha=1, name='clear_color')[source]

FigureCanvas

class skimage.viewer.utils.FigureCanvas(figure, **kwargs)[source]

基地: object

用于显示图像的画布。

__init__(figure, **kwargs)[source]resizeEvent(event)[source]

LinearColormap

class skimage.viewer.utils.LinearColormap(name, segmented_data, **kwargs)[source]

LinearSegmentedColormap,其颜色平滑变化。

该类是LinearSegmentedColormap的简化,不支持颜色强度跳转。

参数:

名称:str色彩地图的名称。segmented_data:字典中的'红','绿','蓝'和(可选)'alpha'值。每个颜色键包含一个x,y元组列表。x必须从0单调增加到1,并且对应于可映射对象(例如图像)的输入值。y对应于颜色强度。

__init__(name, segmented_data, **kwargs)[source]

RequiredAttr

class skimage.viewer.utils.RequiredAttr(init_val=None)[source]

Bases: object

使用前必须设置的类属性。

__init__(init_val=None)[source]instances = {(<skimage.viewer.utils.core.RequiredAttr object>, None): 'Widget is not attached to a Plugin.', (<skimage.viewer.utils.core.RequiredAttr object>, None): 'Plugin is not attached to ImageViewer'}

扫码关注腾讯云开发者

领取腾讯云代金券