体绘制是颜色混合的过程, 用户很难通过直接编辑颜色传输函数来得到期望的颜色混合效果. 为了能更直观地为体绘制图像设置颜色, 提出一种基于样例图像的颜色传输函数设计方法. 首先使用颜色迁移方法, 基于样例图像对初始体绘制图像进行颜色迁移, 使得迁移后的体绘制图像与样例图像有类似的着色风格; 然后还原体绘制的颜色混合过程, 使用最优化的框架将迁移后的体绘制图像反推到三维建立颜色传输函数, 在该颜色传输函数下的绘制结果与样例图像尽可能保持一致, 样例图像可以是任意符合用户期望颜色效果的图像. 与传统的传输函数设计方法相比,文中方法利用了已有图像资源和人类对图像的感知能力, 更简单直观, 易于使用, 且该方法是有效的.
Volume rendering is a color-blending process, thus users often find nontrivial to directly edit colortransfer function for getting expected volume rendering results. In order to make the process more intuitive, thispaper proposes an example-based color transfer function design method. A colorization method in 2D imageprocessing is adopted to colorize the initial volume rendering image with the same color style as the example.Then the color at each voxel in 3D space is inversely calculated based on volume rendering process. An optimizedframework is developed to find the optimal color transfer function to produce the result which is the most similarwith the colorized image and thus consistent with the example image. The example image can be any images withexpected colors. Compared with traditional transfer function design methods, this method takes advantage of humanperception about images, simple and intuitive. It eliminates cumbersome handwork. Experimental resultsdemonstrate that this semi-automatic method is effective and convenient.