Skip to content

Commit

Permalink
fix visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin-pinkau committed Dec 11, 2024
1 parent 27ec84f commit 4bd55f4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions +siibra/+items/Region.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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;
Expand Down
Binary file modified walkthrough.mlx
Binary file not shown.

0 comments on commit 4bd55f4

Please sign in to comment.