Skip to content

Commit 9d190f6

Browse files
Remove old area code and tighten resample check
Cleanup and behavior tweak: remove a large deprecated/commented-out local surface-area implementation from cat_surf_parameters.m and change the resampling condition in cat_surf_resamp.m to only match 'gmv' (remove the 'area' branch).
1 parent 9f78709 commit 9d190f6

3 files changed

Lines changed: 1 addition & 28 deletions

File tree

cat_conf_stools.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1736,8 +1736,6 @@
17361736
FS_HOME.hidden = expert<2;
17371737
FS_HOME.help = {'Select the FreeSurfer home directory.'};
17381738

1739-
1740-
17411739
% surface area
17421740
area = cfg_menu;
17431741
area.name = 'Surface area';

cat_surf_parameters.m

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -249,31 +249,6 @@
249249
if nargout==1, varargout{1}.([sides{si} 'Parea' ]){i} = Parea; end
250250
measuresi = measuresi + 1; cat_progress_bar('Set',i - 1 + measuresi/measuresn);
251251
end
252-
253-
%{
254-
if job.area
255-
%% local surface area by nearest neighbor approach (see Winkler 2012, 2017)
256-
% As far as cat_surf_parameters characterize the original surface
257-
% her only the simple surface area is esimated an mapped to all
258-
% connected vertices (simply divided by 3 that describes the COM
259-
% alingment but the alignments by the voronoi / outer-circle
260-
% point would be more accurate).
261-
% For area estimation scaling of the orinal surface is irelevant.
262-
% RD202005: implement better mapping
263-
stime = clock;
264-
if ~cat_io_rerun(Parea,Pname) && job.lazy
265-
if job.verb, fprintf('%sexist - Display %s\n',nstr,spm_file(Parea,'link','cat_surf_display(''%s'')')); end
266-
else
267-
Si = gifti(Pname);
268-
area = cat_surf_fun('area',Si) * 1000; clear Si % in cm2
269-
cat_io_FreeSurfer('write_surf_data',Parea,area); clear area;
270-
if job.verb, fprintf('%s%4.0fs - Display %s\n',nstr,etime(clock,stime),spm_file(Parea,'link','cat_surf_display(''%s'')')); end
271-
end
272-
273-
if nargout==1, varargout{1}.([sides{si} 'Parea' ]){i} = Parea; end
274-
measuresi = measuresi + 1; cat_progress_bar('Set',i - 1 + measuresi/measuresn);
275-
end
276-
%}
277252

278253

279254

cat_surf_resamp.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252
Pfwhm_all{j} = Pfwhm_gii;
253253

254254
% resample values
255-
if ~isempty(strfind(pname,'gmv')) %|| ~isempty(strfind(pname,'area'))
255+
if ~isempty(strfind(pname,'gmv'))
256256
% resample values using delaunay-based age map
257257

258258
% create mapping between

0 commit comments

Comments
 (0)