Doxygen Source Code Documentation
Intracranial.h File Reference
Go to the source code of this file.
Defines | |
| #define | MAX_STRING_LENGTH THD_MAX_NAME |
| #define | MTEST(ptr) |
Functions | |
| void | check_one_output_file (char *filename) |
Variables | |
| THD_3dim_dataset * | anat |
| float | min_val_float = 25.0 |
| int | min_val_int = 25 |
| float | max_val_float = 150.0 |
| int | max_val_int = 150 |
| float | min_conn_float = 4.0 |
| int | min_conn_int = 4 |
| float | max_conn_float = 2.0 |
| int | max_conn_int = 2 |
Define Documentation
|
|
Definition at line 37 of file Intracranial.h. |
|
|
Value: if((ptr)==NULL) \ ( SI_error ("Cannot allocate memory") ) Definition at line 44 of file Intracranial.h. |
Function Documentation
|
|
RWCox [16 Apr 2003] If input is a byte dataset, make a short copy of it. * Definition at line 347 of file 3dIntracranial.c. References ADN_label1, ADN_none, ADN_prefix, ADN_self_name, THD_3dim_dataset::dblk, THD_datablock::diskptr, EDIT_dset_items(), EDIT_empty_copy(), THD_diskptr::header_name, SI_error(), THD_delete_3dim_dataset(), and THD_is_file().
00351 {
00352 char message[MAX_STRING_LENGTH]; /* error message */
00353 THD_3dim_dataset * new_dset=NULL; /* output afni data set pointer */
00354 int ierror; /* number of errors in editing data */
00355
00356
00357 /*----- make an empty copy of input dataset -----*/
00358 new_dset = EDIT_empty_copy ( anat );
00359
00360
00361 ierror = EDIT_dset_items( new_dset ,
00362 ADN_prefix , filename ,
00363 ADN_label1 , filename ,
00364 ADN_self_name , filename ,
00365 ADN_none ) ;
00366
00367 if( ierror > 0 )
00368 {
00369 sprintf (message,
00370 "*** %d errors in attempting to create output dataset!\n",
00371 ierror);
00372 SI_error (message);
00373 }
00374
00375 if( THD_is_file(new_dset->dblk->diskptr->header_name) )
00376 {
00377 sprintf (message,
00378 "Output dataset file %s already exists"
00379 "--cannot continue!\a\n",
00380 new_dset->dblk->diskptr->header_name);
00381 SI_error (message);
00382 }
00383
00384 /*----- deallocate memory -----*/
00385 THD_delete_3dim_dataset( new_dset , False ) ; new_dset = NULL ;
00386
00387 }
|
Variable Documentation
|
|
Definition at line 25 of file Intracranial.h. |
|
|
Definition at line 34 of file Intracranial.h. |
|
|
Definition at line 35 of file Intracranial.h. |
|
|
Definition at line 29 of file Intracranial.h. |
|
|
Definition at line 30 of file Intracranial.h. |
|
|
Definition at line 32 of file Intracranial.h. |
|
|
Definition at line 33 of file Intracranial.h. |
|
|
Definition at line 27 of file Intracranial.h. |
|
|
Definition at line 28 of file Intracranial.h. |