isocolors
计算等值面和补片颜色
语法
nc = isocolors(X,Y,Z,C,vertices)
nc = isocolors(X,Y,Z,R,G,B,vertices)
nc = isocolors(C,vertices)
nc = isocolors(R,G,B,vertices)
nc = isocolors(...,PatchHandle)
isocolors(...,PatchHandle)
说明
nc = isocolors(X,Y,Z,C,vertices) 使用颜色值 C 计算等值面(补片对象)顶点 (vertices) 的颜色。数组 X、Y 和 Z 定义 C 中的颜色数据的坐标,并且必须是表示 Cartesian 轴对齐网格的单调向量(就像由 meshgrid 生成一样)。颜色在 nc 中返回。C 必须是三维的(索引颜色)。
nc = isocolors(X,Y,Z,R,G,B,vertices) 将 R、G 和 B 用作红色、绿色和蓝色数组(真彩色)。
nc = isocolors(C,vertices) 和 nc = isocolors(R,G,B,vertices) 假定 X、Y 和 Z 由以下表达式确定
[X Y Z] = meshgrid(1:n,1:m,1:p)
其中 [m n p] = size(C)。
nc = isocolors(...,PatchHandle) 使用 PatchHandle 确定的补片中的顶点。
isocolors(...,PatchHandle) 将 PatchHandle 指定的补片的 FaceVertexCData 属性设置为计算的颜色。
示例
扩展功能
版本历史记录
在 R2006a 之前推出
另请参阅
isosurface | subvolume | isocaps | reducepatch | smooth3 | reducevolume | isonormals


