【求助】如何在 LAB色彩空间 内投点?
mathematica吧
全部回复
仅看楼主
level 2
stdda 楼主
本人没有任何计算机语言的背景- -
看了几天Mathematica的手册,没找到解决方案
我想在这个LABColor 里面能显示我给出的 点(L*a*b),请问如何能实现?
还望各位大神不吝赐教!先谢过!
@xzcyr
2018年05月19日 16点05分 1
level 2
stdda 楼主
我想把1、2步骤结合在一起,比如说我给Mathematica一个图片/数据,它能把图片的颜色的Lab值投在LABColor这个颜色空间里。
第2个的结果有些奇怪,既然是以Lab取值的点,为什么会落在LAB色彩空间外面?
----------------------------------------------------1-------------------------------------------------------
-------------------------------------------------------2-------------------------------------------------------
cols = {LABColor[0.5, 0.2, 0.4], LABColor[0.8, 0.3, 0.4],LABColor[0.3, -0.2, -0.4],
LABColor[0.2, 0.5, 0.7], LABColor[0.9, -0.5, -0.6], LABColor[0.6, -0.7,0.4]};
sph = DiscretizeRegion[Sphere[{1/2, 0, 0},1/2], MaxCellMeasure -> {1 -> 0.05}];
Show[ChromaticityPlot3D[cols, "LAB",PlotStyle -> AbsolutePointSize[6]],
Graphics3D[With[{pts= MeshCoordinates[sph]},
GraphicsComplex[pts,{Directive[Opacity[0.8], EdgeForm[]],
MeshCells[sph, 2]},
VertexColors -> (LABColor @@@ pts)]]],
BoxRatios -> Automatic]
来源:https://mathematica.stackexchange.com/questions/159852/how-can-i-combine-the-chromaticityplot3d-with-a-sphere
2018年05月20日 11点05分 4
……没落外面啊,你仔细看球的大小设定。
2018年06月02日 05点06分
回复 xzcyr :怎么样才能让所有可选的Lab值的点都落在球里?我觉得是球小了,但是不知道怎么调
2018年06月08日 15点06分
@stdda ……你仔细看看Sphere的帮助。
2018年07月07日 07点07分
1