-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed remaining dependencies to minc and added volume_io to 3rdparty
- Loading branch information
1 parent
3887195
commit a478ee6
Showing
116 changed files
with
39,774 additions
and
8,352 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
This directory contains libraries that are not maintained by the CAT-Surface | ||
maintainers. These libraries are necessary to compile CAT_Surface and are | ||
provided here as courtesy to the end-users. | ||
maintainers. These libraries are needed to compile CAT_Surface and are provided | ||
here as a courtesy to end users. | ||
|
||
The following library was largely modified: | ||
The following libraries have undergone major changes and all dependencies on | ||
volume functions have been removed, since we are constantly using nifti functions | ||
only: | ||
- [bicp-1.4.6](https://github.com/BIC-MNI/minc) | ||
- [minc-1.5.1/volume_io](https://github.com/BIC-MNI/minc) | ||
|
||
All dependencies in bicpl on minc and volume_io were removed and replaced by | ||
nifti-functions. The following functions from minc were added: | ||
The following function was added from minc-1.5.1: | ||
- ParseArgv.c | ||
- alloc.c | ||
- alloc_check.c | ||
- progress.c | ||
- arrays.c |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
/* ---------------------------------------------------------------------------- | ||
@COPYRIGHT : | ||
Copyright 1993,1994,1995 David MacDonald, | ||
McConnell Brain Imaging Centre, | ||
Montreal Neurological Institute, McGill University. | ||
Permission to use, copy, modify, and distribute this | ||
software and its documentation for any purpose and without | ||
fee is hereby granted, provided that the above copyright | ||
notice appear in all copies. The author and McGill University | ||
make no representations about the suitability of this | ||
software for any purpose. It is provided "as is" without | ||
express or implied warranty. | ||
---------------------------------------------------------------------------- */ | ||
|
||
#include "bicpl_internal.h" | ||
|
||
#ifndef lint | ||
static char rcsid[] = "$Header: /private-cvsroot/libraries/bicpl/Objects/graphics_io.c,v 1.9 2005/08/17 22:28:26 bert Exp $"; | ||
#endif | ||
|
||
/* ----------------------------- MNI Header ----------------------------------- | ||
@NAME : input_graphics_file | ||
@INPUT : filename | ||
@OUTPUT : format | ||
n_objects | ||
object_list | ||
@RETURNS : OK or ERROR | ||
@DESCRIPTION: Inputs a file of graphics objects. | ||
@METHOD : | ||
@GLOBALS : | ||
@CALLS : | ||
@CREATED : 1993 David MacDonald | ||
@MODIFIED : | ||
---------------------------------------------------------------------------- */ | ||
|
||
BICAPI Status input_graphics_file( | ||
STRING filename, | ||
File_formats *format, | ||
int *n_objects, | ||
object_struct ***object_list ) | ||
{ | ||
Status status; | ||
FILE *file; | ||
BOOLEAN eof; | ||
object_struct *object; | ||
STRING current_directory; | ||
|
||
status = open_file_with_default_suffix( filename, "obj", READ_FILE, | ||
BINARY_FORMAT, &file ); | ||
|
||
*n_objects = 0; | ||
|
||
if( status == OK ) | ||
{ | ||
current_directory = extract_directory( filename ); | ||
|
||
do | ||
{ | ||
status = input_object( current_directory, file, format, | ||
&object, &eof ); | ||
|
||
if( status == OK && !eof ) | ||
add_object_to_list( n_objects, object_list, object ); | ||
|
||
} while( status == OK && !eof ); | ||
|
||
delete_string( current_directory ); | ||
} | ||
|
||
if( status == OK ) | ||
status = close_file( file ); | ||
|
||
return( status ); | ||
} | ||
|
||
/* ----------------------------- MNI Header ----------------------------------- | ||
@NAME : output_graphics_file | ||
@INPUT : filename | ||
format | ||
n_objects | ||
object_list | ||
@OUTPUT : | ||
@RETURNS : OK or ERROR | ||
@DESCRIPTION: Writes a file of graphics objects. | ||
@METHOD : | ||
@GLOBALS : | ||
@CALLS : | ||
@CREATED : 1993 David MacDonald | ||
@MODIFIED : | ||
---------------------------------------------------------------------------- */ | ||
|
||
BICAPI Status output_graphics_file( | ||
STRING filename, | ||
File_formats format, | ||
int n_objects, | ||
object_struct *object_list[] ) | ||
{ | ||
Status status; | ||
int i; | ||
FILE *file; | ||
|
||
status = open_file_with_default_suffix( filename, "obj", WRITE_FILE, | ||
BINARY_FORMAT, &file ); | ||
|
||
if( status == OK ) | ||
{ | ||
for_less( i, 0, n_objects ) | ||
{ | ||
if( status == OK ) | ||
status = output_object( file, format, object_list[i] ); | ||
} | ||
} | ||
|
||
if( status == OK ) | ||
status = close_file( file ); | ||
|
||
return( status ); | ||
} | ||
|
Oops, something went wrong.