SCM Repository
View of /branches/vis12/src/lib/common/nrrd.c
Parent Directory
|
Revision Log
Revision 2035 -
(download)
(as text)
(annotate)
Fri Oct 12 21:03:15 2012 UTC (8 years, 4 months ago) by jhr
File size: 663 byte(s)
Fri Oct 12 21:03:15 2012 UTC (8 years, 4 months ago) by jhr
File size: 663 byte(s)
Working on dynamic sequence loading
/*! \file nrrd.c * * \author John Reppy * * Common utility code for dealing with nrrd files. */ /* * COPYRIGHT (c) 2012 The Diderot Project (http://diderot-language.cs.uchicago.edu) * All rights reserved. */ #include "Diderot/diderot.h" #include <teem/nrrd.h> Nrrd *Diderot_LoadNrrdFile (WorldPrefix_t *wrld, const char *filename) { /* create a nrrd; at this point this is just an empty container */ Nrrd *nin = nrrdNew(); /* read in the nrrd from file */ if (nrrdLoad(nin, filename, NULL) != 0) { char *msg = biffGetDone(NRRD); biffMsgAdd(wrld->errors, msg); FREE (msg); return 0; } return nin; }
root@smlnj-gforge.cs.uchicago.edu | ViewVC Help |
Powered by ViewVC 1.0.0 |