Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Server maintenance on Tue 24.5. at 12:00.
Estimated downtime less than 30 minutes.
Open sidebar
Vesa Oikonen
tpcclib
Commits
d2db662a
Commit
d2db662a
authored
Jun 02, 2020
by
Vesa Oikonen
Browse files
updated doc
parent
ee39e0e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
v2/libtpcnifti/analyzeio.c
View file @
d2db662a
...
...
@@ -9,28 +9,27 @@
/*****************************************************************************/
/** Verify if specified file name is an Analyze 7.5 file.
@sa anaReadHeader, niftiExists
@sa anaReadHeader, niftiExists
, micropetExists
@return Returns 1 if it is Analyze, 0 if not.
*/
int
anaExists
(
/** File name, either header file, image file, or base name without extensions. */
const
char
*
filename
,
/**
If
filename
refers
to
an
Analyze
file
,
then
header
filename
will
be
/**
If
file
name
refers
to
an
Analyze
file
,
then
header
file
name
will
be
written
in
this
char
pointer
(
space
needs
to
allocated
by
caller
);
If
header
and
image
are
combined
,
then
this
will
be
the
name
of
combined
file
;
enter
NULL
if
not
needed
.
*/
If
header
and
image
are
combined
,
then
this
will
be
the
name
of
combined
file
;
enter
NULL
if
not
needed
.
*/
char
*
hdrfile
,
/** If filename refers to an Analyze file, then image filename will be
/** If file
name refers to an Analyze file, then image file
name will be
written in this char pointer (space needs to allocated by caller);
If header and image are combined, then this will be the name of combined
file;
enter NULL if not needed. */
If header and image are combined, then this will be the name of combined
file;
enter NULL if not needed. */
char
*
imgfile
,
/** If filename refers to an Analyze file, and if SIF exists, then SIF filename
/** If file
name refers to an Analyze file, and if SIF exists, then SIF file
name
will be written in this char pointer (space needs to allocated by caller);
NULL if not needed. */
enter
NULL if not needed. */
char
*
siffile
,
/** Pointer to Analyze header, which is filled in this function; enter NULL,
if not needed. */
/** Pointer to Analyze header, which is filled in this function; enter NULL, if not needed. */
ANALYZE_DSR
*
header
,
/** Pointer to status data; enter NULL if not needed. */
TPCSTATUS
*
status
...
...
@@ -135,6 +134,7 @@ int anaExists(
/*****************************************************************************/
/** Read Analyze header contents.
@sa anaExists, micropetHeaderRead
@return enum tpcerror (TPCERROR_OK when successful).
*/
int
anaReadHeader
(
...
...
v2/libtpcnifti/niftiio.c
View file @
d2db662a
...
...
@@ -11,28 +11,27 @@
/** Verify if specified file name is a NIfTI file.
@remark Currently only NIfTI-1 is supported.
@todo Support for NIfTI-2.
@sa niftiReadHeader, anaExists
@sa niftiReadHeader, anaExists
, micropetExists
@return Returns 0 if it is not NIfTI, otherwise the version of NIfTI.
*/
int
niftiExists
(
/** File name, either header file, image file, or base name without extensions. */
const
char
*
filename
,
/**
If
filename
refers
to
a
N
ifti
file
,
then
header
filename
will
be
/**
If
file
name
refers
to
a
N
IfTI
file
,
then
header
file
name
will
be
written
in
this
char
pointer
(
space
needs
to
allocated
by
caller
);
If
header
and
image
are
combined
,
then
this
will
be
the
name
of
combined
file
;
enter
NULL
if
not
needed
.
*/
If
header
and
image
are
combined
,
then
this
will
be
the
name
of
combined
file
;
enter
NULL
if
not
needed
.
*/
char
*
hdrfile
,
/** If filename refers to a N
ifti
file, then image filename will be
/** If file
name refers to a N
IfTI
file, then image file
name will be
written in this char pointer (space needs to allocated by caller);
If header and image are combined, then this will be the name of combined
file;
enter NULL if not needed. */
If header and image are combined, then this will be the name of combined
file;
enter NULL if not needed. */
char
*
imgfile
,
/** If filename refers to a N
ifti
file, and if SIF exists, then SIF filename
/** If file
name refers to a N
IfTI
file, and if SIF exists, then SIF file
name
will be written in this char pointer (space needs to allocated by caller);
NULL if not needed. */
exter
NULL if not needed. */
char
*
siffile
,
/** Pointer to Nifti header, which is filled in this function; enter NULL,
if not needed. */
/** Pointer to NIfTI header, which is filled in this function; enter NULL, if not needed. */
NIFTI_DSR
*
header
,
/** Pointer to status data; enter NULL if not needed. */
TPCSTATUS
*
status
...
...
@@ -139,7 +138,7 @@ int niftiExists(
/** Read Nifti header contents, including 4-byte extender.
@remark Currently does not read Nifti-1 header extension.
@todo Support for NIfTI-2.
@sa niftiExists, anaReadHeader
@sa niftiExists, anaReadHeader
, micropetHeaderRead
@return enum tpcerror (TPCERROR_OK when successful).
*/
int
niftiReadHeader
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment