From 4bd55f4332a0b67db034ea471fb842b93b6fff4d Mon Sep 17 00:00:00 2001 From: valentin-pinkau Date: Wed, 11 Dec 2024 11:05:58 +0100 Subject: [PATCH] fix visualization --- +siibra/+items/Region.m | 18 +++++++++++------- walkthrough.mlx | Bin 1584906 -> 1584904 bytes 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/+siibra/+items/Region.m b/+siibra/+items/Region.m index b241ee9..d877cc0 100644 --- a/+siibra/+items/Region.m +++ b/+siibra/+items/Region.m @@ -95,14 +95,7 @@ function visualizeInTemplate(obj, space, colormap_name) viewer.Layout.Column = 2; viewer.BackgroundColor="white"; viewer.BackgroundGradient="off"; - hVolumeContinuous = volshow(template, ... - OverlayData=continuousMap, ... - Parent=viewer, ... - Alphamap=linspace(0,0.2,256), ... - OverlayRenderingStyle="GradientOverlay", ... - RenderingStyle="GradientOpacity"); - hVolumeContinuous.OverlayAlphamap=linspace(0,0.5,256); cmap = colormap(colormap_name); cmap(1, :) = [0, 0, 0]; @@ -116,6 +109,17 @@ function visualizeInTemplate(obj, space, colormap_name) mixed_volume = template_color_volume; mixed_volume(continuousMap>0) = probability_color_volume(continuousMap>0); + hVolumeContinuous = volshow(template, ... + OverlayData=cast(continuousMap * 254 + 1, "uint8"), ... + OverlayRenderingStyle="VolumeOverlay", ... + OverlayColormap=colormap("hot"), ... + RenderingStyle="GradientOpacity", ... + Parent=viewer, ... + Alphamap=linspace(0,0.2,256)); + + + hVolumeContinuous.OverlayAlphamap=linspace(0,0.1,256); + panel1 = uipanel(g); panel1.Layout.Row = 1; panel1.Layout.Column = 1; diff --git a/walkthrough.mlx b/walkthrough.mlx index 2a80af20040877ba65295209b377005b44f83247..b061bb2fd463740895c8b672f7837d29c82e1005 100644 GIT binary patch delta 409 zcmV;K0cQS+-e8E{V1R@HgaU*Egam{Iga(8Mgb0KQgbIWUgbaiYgbsucgb;)ggc5`k zgcO7ogcgJsv>5Cs1p^>AksO!tCm1My(N4o46o&8j6oh*Ubk!(ny9>>(G%>M8;~k-A z8?jIVXt%eQ)vZol;wAaN^W|{JPEZ=u28;|@B5Vp*y*DzZr(aWlC)Jx= z1I-z`qz0mFWt4O;ByKX|gR)hV(!Kj`6ts#$2L@~mlxLiNvqs0AgR>LI@Pv-wO*jjW z$wY30o~U6MvSB`QX@5>%?(ZJQuM%zdw^D%X8A9d3E|doup+(6dzIHn%&-0txW{K;Z zNLA85UDmU=G$|O8 z1O)>iH<28d%PkmQ0W+5>E*MGzJSvwfE*Kk^kuDfF0xK(*D=rutm*p-P9|kZi7ytkO D$h54x delta 435 zcmeCUm(X=Dp`nGbg{g(Pg{6hHg{_6Xg`@wY~-eYRF}}GkM%#SAky~!yEeynkr#HGCT`n(;fs98_PN7(eF#U?GF50W^DP4^Dsxxt5wIYSk`Hor*ux_zZA0R zEzgr5404N04Np!HT~++yffcu&$%8->N&P8jKkBh)YkbXOkNTw|q}F!(T&Cos%UA2K zczspNUZ9!Gy-M+f7n^6lQMfA2p2aP<xO&q0qdlBvwP#q(e1>uN)JkM$(v*^G1~fGPkCFSlm^