Skip to content

Commit de634d7

Browse files
committed
change comment markers to make it compatible for both matlab and octave
1 parent 6860348 commit de634d7

3 files changed

Lines changed: 80 additions & 80 deletions

File tree

lib/octave/niftiinfo.m

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
## Copyright (C) 2019 Qianqian Fang <q.fang@neu.edu>
2-
##
3-
## This program is free software; you can redistribute it and/or modify it under
4-
## the terms of the GNU General Public License as published by the Free Software
5-
## Foundation; either version 3 of the License, or (at your option) any later
6-
## version.
7-
##
8-
## This program is distributed in the hope that it will be useful, but WITHOUT
9-
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10-
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11-
## details.
12-
##
13-
## You should have received a copy of the GNU General Public License along with
14-
## this program; if not, see <http://www.gnu.org/licenses/>.
1+
%% Copyright (C) 2019 Qianqian Fang <q.fang@neu.edu>
2+
%%
3+
%% This program is free software; you can redistribute it and/or modify it under
4+
%% the terms of the GNU General Public License as published by the Free Software
5+
%% Foundation; either version 3 of the License, or (at your option) any later
6+
%% version.
7+
%%
8+
%% This program is distributed in the hope that it will be useful, but WITHOUT
9+
%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10+
%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11+
%% details.
12+
%%
13+
%% You should have received a copy of the GNU General Public License along with
14+
%% this program; if not, see <http://www.gnu.org/licenses/>.
1515

16-
## -*- texinfo -*-
17-
## @deftypefn {Function File} {} niftiinfo (@var{filename})
18-
## Read the metadata from a NIfTI-1/2 and Analyze7.5 formatted image file
19-
##
20-
## Parsing the metadata in a NIfTI-1/2 file or a two-part NIfTI
21-
## or Analyze7.5 header file specified by @var{filename}. The
22-
## accepted file suffixes include .nii, .nii.gz, .hdr, and .hdr.gz.
23-
##
24-
## @seealso{niftiread, niftiwrite}
25-
## @end deftypefn
16+
%% -*- texinfo -*-
17+
%% @deftypefn {Function File} {} niftiinfo (@var{filename})
18+
%% Read the metadata from a NIfTI-1/2 and Analyze7.5 formatted image file
19+
%%
20+
%% Parsing the metadata in a NIfTI-1/2 file or a two-part NIfTI
21+
%% or Analyze7.5 header file specified by @var{filename}. The
22+
%% accepted file suffixes include .nii, .nii.gz, .hdr, and .hdr.gz.
23+
%%
24+
%% @seealso{niftiread, niftiwrite}
25+
%% @end deftypefn
2626

2727
function nii = niftiinfo (filename, varargin)
2828

@@ -103,7 +103,7 @@
103103

104104

105105
%!demo
106-
%! ## Reading a
106+
%! %% Reading a
107107
%! urlwrite('https://nifti.nimh.nih.gov/nifti-1/data/minimal.nii.gz','minimal.nii.gz')
108108
%! gunzip ('minimal.nii.gz');
109109
%! header=niftiinfo('minimal.nii');

lib/octave/niftiread.m

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
## Copyright (C) 2019 Qianqian Fang <q.fang@neu.edu>
2-
##
3-
## This program is free software; you can redistribute it and/or modify it under
4-
## the terms of the GNU General Public License as published by the Free Software
5-
## Foundation; either version 3 of the License, or (at your option) any later
6-
## version.
7-
##
8-
## This program is distributed in the hope that it will be useful, but WITHOUT
9-
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10-
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11-
## details.
12-
##
13-
## You should have received a copy of the GNU General Public License along with
14-
## this program; if not, see <http://www.gnu.org/licenses/>.
15-
16-
## -*- texinfo -*-
17-
## @deftypefn {Function File} {} niftiread (@var{filename})
18-
## @deftypefnx {Function File} {} niftiread (@var{headerfile}, @var{imagefile})
19-
## @deftypefnx {Function File} {} niftiread (@var{info})
20-
## Read the image data from a NIfTI-1/2 and Analyze7.5 formatted image file
21-
##
22-
## Loading a NIfTI-1/2 file specified by @var{filename}, or a two-part NIfTI
23-
## or Analyze7.5 files using @var{headerfile} and @var{imagefile}. The
24-
## accepted file suffixes include .nii, .nii.gz, .hdr, .hdr.gz, .img, img.gz
25-
##
26-
## @seealso{niftiinfo, niftiwrite}
27-
## @end deftypefn
1+
%% Copyright (C) 2019 Qianqian Fang <q.fang@neu.edu>
2+
%%
3+
%% This program is free software; you can redistribute it and/or modify it under
4+
%% the terms of the GNU General Public License as published by the Free Software
5+
%% Foundation; either version 3 of the License, or (at your option) any later
6+
%% version.
7+
%%
8+
%% This program is distributed in the hope that it will be useful, but WITHOUT
9+
%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10+
%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11+
%% details.
12+
%%
13+
%% You should have received a copy of the GNU General Public License along with
14+
%% this program; if not, see <http://www.gnu.org/licenses/>.
15+
16+
%% -*- texinfo -*-
17+
%% @deftypefn {Function File} {} niftiread (@var{filename})
18+
%% @deftypefnx {Function File} {} niftiread (@var{headerfile}, @var{imagefile})
19+
%% @deftypefnx {Function File} {} niftiread (@var{info})
20+
%% Read image data from a NIfTI-1/2 and Analyze7.5 formatted image file
21+
%%
22+
%% Loading a NIfTI-1/2 file specified by @var{filename}, or a two-part NIfTI
23+
%% or Analyze7.5 files using @var{headerfile} and @var{imagefile}. The
24+
%% accepted file suffixes include .nii, .nii.gz, .hdr, .hdr.gz, .img, img.gz
25+
%%
26+
%% @seealso{niftiinfo, niftiwrite}
27+
%% @end deftypefn
2828

2929
function img = niftiread (filename, varargin)
3030

@@ -44,7 +44,7 @@
4444

4545

4646
%!demo
47-
%! ## Reading a
47+
%! %% Reading a
4848
%! urlwrite('https://nifti.nimh.nih.gov/nifti-1/data/minimal.nii.gz','minimal.nii.gz')
4949
%! gunzip ('minimal.nii.gz');
5050
%! img=niftiread('minimal.nii');

lib/octave/niftiwrite.m

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
## Copyright (C) 2019 Qianqian Fang <q.fang@neu.edu>
2-
##
3-
## This program is free software; you can redistribute it and/or modify it under
4-
## the terms of the GNU General Public License as published by the Free Software
5-
## Foundation; either version 3 of the License, or (at your option) any later
6-
## version.
7-
##
8-
## This program is distributed in the hope that it will be useful, but WITHOUT
9-
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10-
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11-
## details.
12-
##
13-
## You should have received a copy of the GNU General Public License along with
14-
## this program; if not, see <http://www.gnu.org/licenses/>.
1+
%% Copyright (C) 2019 Qianqian Fang <q.fang@neu.edu>
2+
%%
3+
%% This program is free software; you can redistribute it and/or modify it under
4+
%% the terms of the GNU General Public License as published by the Free Software
5+
%% Foundation; either version 3 of the License, or (at your option) any later
6+
%% version.
7+
%%
8+
%% This program is distributed in the hope that it will be useful, but WITHOUT
9+
%% ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10+
%% FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
11+
%% details.
12+
%%
13+
%% You should have received a copy of the GNU General Public License along with
14+
%% this program; if not, see <http://www.gnu.org/licenses/>.
1515

16-
## -*- texinfo -*-
17-
## @deftypefn {Function File} {} niftiwrite (@var{img}, @var{filename})
18-
## @deftypefnx {Function File} {} niftiwrite (@var{img}, @var{filename}, @var{info})
19-
## @deftypefnx {Function File} {} niftiwrite (@var{img}, @var{filename}, @var{info},...)
20-
## Write image data and metadata to a NIfTI-1/2 and Analyze7.5 formatted image file
21-
##
22-
## Writing the image data @var{img} and metadata @var{info} to a NIfTI-1
23-
## file or a two-part NIfTI or Analyze7.5 files specified by @var{filename}.
24-
## The accepted file suffixes include .nii and .nii.gz.
25-
##
26-
## @seealso{niftiinfo, niftiread}
27-
## @end deftypefn
16+
%% -*- texinfo -*-
17+
%% @deftypefn {Function File} {} niftiwrite (@var{img}, @var{filename})
18+
%% @deftypefnx {Function File} {} niftiwrite (@var{img}, @var{filename}, @var{info})
19+
%% @deftypefnx {Function File} {} niftiwrite (@var{img}, @var{filename}, @var{info},...)
20+
%% Write image data and metadata to a NIfTI-1/2 and Analyze7.5 formatted image file
21+
%%
22+
%% Writing image data @var{img} and metadata @var{info} to a NIfTI-1
23+
%% file or a two-part NIfTI or Analyze7.5 files specified by @var{filename}.
24+
%% The accepted file suffixes include .nii and .nii.gz.
25+
%%
26+
%% @seealso{niftiinfo, niftiread}
27+
%% @end deftypefn
2828

2929
function niftiwrite (img, filename, varargin)
3030

@@ -64,7 +64,7 @@ function niftiwrite (img, filename, varargin)
6464
endfunction
6565

6666
%!demo
67-
%! ## Reading a
67+
%! %% Reading a
6868
%! urlwrite('https://nifti.nimh.nih.gov/nifti-1/data/minimal.nii.gz','minimal.nii.gz')
6969
%! gunzip ('minimal.nii.gz');
7070
%! header=niftiinfo('minimal.nii');

0 commit comments

Comments
 (0)