Mercurial > hg > minc-tools
changeset 64:e2e67bb6251c
*** empty log message ***
author | david <david> |
---|---|
date | Tue, 12 Jan 1993 15:05:01 +0000 |
parents | 637853a7276a |
children | 5ba0ecfdc7d0 |
files | volume_io/Volumes/input_volume.c |
diffstat | 1 files changed, 7 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/volume_io/Volumes/input_volume.c +++ b/volume_io/Volumes/input_volume.c @@ -31,6 +31,8 @@ int ndims, dim[MAX_VAR_DIMS]; long start[3], count[3]; + status = OK; + icv = miicv_create(); (void) miicv_setint( icv, MI_ICV_TYPE, NC_BYTE ); @@ -136,10 +138,10 @@ create_world_transform( &origin, axes, volume->thickness, &volume->world_transform ); - ALLOC3D( status, volume->data, volume->sizes[X], volume->sizes[Y], + ALLOC3D( volume->data, volume->sizes[X], volume->sizes[Y], volume->sizes[Z] ); - ALLOC( status, image, sizes[1] * sizes[2] ); + ALLOC( image, sizes[1] * sizes[2] ); for_less( index0, 0, sizes[0] ) { @@ -165,7 +167,7 @@ } } - FREE( status, image ); + FREE( image ); (void) ncclose( cdfid ); (void) miicv_free( icv ); @@ -218,7 +220,6 @@ char filename[], volume_struct *volume ) /* ARGSUSED */ { - Status status; int x, y, z, val; Real dx, dy, dz; @@ -231,7 +232,7 @@ volume->value_scale = 1.0; volume->value_translation = 0.0; - ALLOC3D( status, volume->data, volume->sizes[X], volume->sizes[Y], + ALLOC3D( volume->data, volume->sizes[X], volume->sizes[Y], volume->sizes[Z] ); for_less( x, 0, volume->sizes[X] ) @@ -255,5 +256,5 @@ print( "%d/%d\n", x, volume->sizes[X] ); } - return( status ); + return( OK ); }