U盘PE| w764位旗舰版下载 | U盘装win7系统 | U盘启动 |win7pe | win10下载 |加入收藏土豆PE官网U盘PE,U盘装win7系统,win7pe,U盘启动,U盘装系统,w764位旗舰版下载站!
当前位置:主页 > 帮助中心 > 帮助中心 >

对于VtkSmartVolumeMapper, 保持简单。

来源:http://www.tudoupe.com时间:2021-11-08

1. 缘起

《VTK图形发展进展》一书的体图部分说,vtkVolumeRayCastCompositeFunctionvtkVolumeRayCastMapper在更新版本的 vtk 中, 此特性不再支持 。
这本书的编码如下:

然后,你必须想出一个替代办法或功能。

2. 分析

对于上面提到的vtkVolumeRayCastMapper函数包含对身体进行绘图。
显然,它是一个具体的物理地图现实, 所以简单浏览并找出一个统一的基础, 很容易找到。vtkVolumeMapper班、班、班、班、班、班、班、班、班、班、班、班、班、班、班
如其正式文件所示,提供下列类型图表:
vtkVolumeMapper类图可以看到具体实现了vtkVolumeMapper有很多不同的类别, 但有些类别使用 GPU 这个词, 这对于不支持 CPU 的人来说可能不太有利。 我开始理解它们, 但很难想象它们在任何特定时间使用 。
看到里面有一个名叫vtkSmartVolumeMapper该子类别再次是一个特殊类别,应等于以上所有或大多数子类别的总和,可自动调用。

三. vtkSmartVolumeMapper小组的文件

以下的论文以 vtk9.x 为基础;其他的查点值版本和所代表的材料可能有所不同。
Adaptive volume mapper.
自适应的体绘制。
vtkSmartVolumeMapper is a volume mapper that will delegate to a specific volume mapper based on rendering parameters and available hardware. Use the SetRequestedRenderMode() method to control the behavior of the selection. The following options are available:
机构映射映像仪 vtkSmartVolumeMapper 委托一个基于映射设置和可用硬件的特定机构映射映像仪负责。 Set request RenderMode () 函数用于管理想要的行为 。

默认DefaultRenderMode (默认创建模式): vtkSmartVolumeMapper:: DefaultRenderMopper:: DefaultRenderMode:: DefaultRenderMode:: DefaultRenderMode:: DefaultRenderMode:: DefaultRenderMode::
Allow the vtkSmartVolumeMapper to select the best mapper based on rendering parameters and hardware support. If GPU ray casting is supported, this mapper will be used for all rendering. If not, then the vtkFixedPointRayCastMapper will be used exclusively. This is the default requested render mode, and is generally the best option. When you use this option, your volume will always be rendered, but the method used to render it may vary based on parameters and platform.
启用 vtkSmart VolumeMapper 以根据图像设置和硬件兼容性来选择最佳映像器。 如果支持 GPU 灯光投影, 所有映像器都将使用 RayCast 映像器。 如果 vtkFixedPointRayCastMapper 不支持, 仅使用 vtkFixedPointRayCastMapper 即可。 这是最常要求的映像样式, 通常是最好的选项。 如果您选择此选项, 您的天体总是会生成, 但用于绘制它的机制会因设置和平台而不同 。

RayCastRenderMode (光投影投影模式): VtkSmart VolumeMapper
Use the vtkFixedPointVolumeRayCastMapper for both interactive and still rendering. When you use this option your volume will always be rendered with the vtkFixedPointVolumeRayCastMapper.
vtkFixedPointPolumeRastMapper 用于交互式和静态翻譯。当您选择此选项时, 您的身体对象总是使用 vtkFixedPodePolumeRastMapper 绘制 。

GpurenderMode ( GPU 映射模式): VtkSmart VolumeMapper :
Use the vtkGPUVolumeRayCastMapper, if supported, for both interactive and still rendering. If the GPU ray caster is not supported (due to hardware limitations or rendering parameters) then no image will be rendered. Use this option only if you have already checked for supported based on the current hardware, number of scalar components, and rendering parameters in the vtkVolumeProperty.
vtkGPUUPUUMERastMapper (如果有的话) 用于互动和静态翻譯。 如果 GPU 光投影器不支持( 由于硬件限制或刻录设置), 则不会生成图像。 只有基于当前硬件、 测量的组件数量和 vtkVolumeProperty 的 vtkVolumeProperty 对 vtkVolumeProperty 的映像设置进行评估时, 此选项才可用 。
You can adjust the contrast and brightness in the rendered image using the FinalColorWindow and FinalColorLevel ivars. By default the FinalColorWindow is set to 1.0, and the FinalColorLevel is set to 0.5, which applies no correction to the computed image. To apply the window / level operation to the computer image color, first a Scale and Bias value are computed:
FinalColorWindow 和 FinalCololorLive 可用于修改图像的对比度和亮度。 最后ColorWindow 默认设定为1.0, 最后ColorWindow 设定为0.5。 这不适用于图片计算的任何调整。 要应用计算机图片颜色的窗口/级别操作, 首先计算刻度和比亚斯值 :
scale = 1.0 / this->FinalColorWindow
bias = 0.5 - this->FinalColorLevel / this->FinalColorWindow
To compute a new color (R’, G’, B’, A’) from an existing color (R,G,B,A) for a pixel, the following equation is used:
使用以下方程式,从现有的像素颜色(R、G、G、B、A)中产生新的颜色(R'、G'、B'、A'):
R’ = Rscale + biasA
G’ = Gscale + biasA
B’ = Bscale + biasA
A’ = A
Note that bias is multiplied by the alpha component before adding because the red, green, and blue component of the color are already pre-multiplied by alpha. Also note that the window / level operation leaves the alpha component unchanged - it only adjusts the RGB values.
请记住, 偏差在添加 Alpha 分数之前会翻倍, 因为颜色的红色、 绿色和蓝色分数已经乘以 Alpha 。 也值得注意的是, 窗口/ 级别动作不会修改 Alpha 部分 - 它们只是改变 RGB 值 。

4. 总结

使用最后一节中正式文件的说明。vtkSmartVolumeMapper正常操作的实施完美无缺,在硬件和软件的支持完全为人所知之前,将选择一种特定的地图绘制器。
该技术如下:

5. 参考文献

  1. vtkSmartVolumeMapper的正式文件

Copyright © 2012-2014 Www.tudoupe.Com. 土豆启动 版权所有 意见建议:tdsky@tudoupe.com

土豆系统,土豆PE,win7系统下载,win7 64位旗舰版下载,u盘启动,u盘装系统,win10下载,win10正式版下载,win10 RTM正式版下载,win8下载,电脑蓝屏,IE11修复,网络受限,4K对齐,双系统,隐藏分区,系统安装不了,U盘装系统,笔记本装系统,台式机装系统,diskgenius运用,GHSOT装系统,U盘修复,U盘技巧,U盘速度,U盘不能格式化,U盘复制发生错误,U盘加密,U盘选购,开机黑屏,蓝屏,进不了系统,上不了网,打不开程序,点击无反应,系统设置,PE个性化,PE添加网络,PE维护系统

点击这里给我发消息