Skip to content

Commit

Permalink
add high-resolution cortex
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiyeri committed Oct 21, 2022
1 parent 6b4006d commit c4b510f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
Binary file added cortex.mat
Binary file not shown.
10 changes: 7 additions & 3 deletions pop_roi_connectplot.m
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,10 @@
% colormap
load cm17;
load cm18;


% replace low-resolution with high-resolution cortex
load cortex;

% frequency range
if ~isempty(g.freqrange)
frq_inds = find(S.freqs >= g.freqrange(1) & S.freqs < g.freqrange(2));
Expand Down Expand Up @@ -419,12 +422,13 @@
if strcmpi(g.plotcortex, 'on') && cortexFlag ~= -1
cortexTitle = [ plotOpt.labelshort ' (' titleStr ')' ];
if isempty(g.plotcortexseedregion)
allplots_cortex_BS(S.cortex, cortexPlot, [min(cortexPlot) max(cortexPlot)], cm17a, upper(g.measure), g.smooth);
allplots_cortex_BS(cortex_highres, cortexPlot, [min(cortexPlot) max(cortexPlot)], cm17a, upper(g.measure), g.smooth);
% allplots_cortex_BS(S.cortex, cortexPlot, [min(cortexPlot) max(cortexPlot)], cm17a, plotOpt.unit, g.smooth);
else
cortexTitle = [ cortexTitle ' for area ' int2str(seed_idx)];
cortexPlot = squeeze(matrix(seed_idx,:));
allplots_cortex_BS(S.cortex, cortexPlot, [min(cortexPlot) max(cortexPlot)], cm17a, upper(g.measure), g.smooth, [], {coordinate});
% allplots_cortex_BS(cortex_highres, cortexPlot, [min(cortexPlot) max(cortexPlot)], cm17a, upper(g.measure), g.smooth, [], {coordinate});
% allplots_cortex_BS(S.cortex, cortexPlot, [min(cortexPlot) max(cortexPlot)], cm17a, plotOpt.unit, g.smooth, [], {coordinate});
end
h = textsc(cortexTitle, 'title');
Expand All @@ -448,7 +452,7 @@
% assign region index to selected seed region (passed as index)
if ~isempty(seed_idx)
% ball not visible for these regions when plotting the mean voxel
manual_region_idxs = [2, 16, 18, 25, 26, 31, 32, 45, 49, 50, 55, 56, 59, 60, 61, 64];
manual_region_idxs = [2, 16, 18, 25, 26, 31, 32, 45, 49, 50, 56, 59, 60, 61, 64];
pos_idx = scouts(seed_idx).Vertices;
pos = vc(pos_idx,:);
if seed_idx == 1
Expand Down
Binary file modified resources/FC_MIM_cortex_left.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/FC_MIM_cortex_right.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/power_cortex_left.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/power_cortex_right.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c4b510f

Please sign in to comment.