SCM Repository
View of /branches/vis12/src/lib/common/nrrd.c
Parent Directory
|
Revision Log
Revision 3291 -
(download)
(as text)
(annotate)
Wed Oct 14 21:25:00 2015 UTC (5 years, 6 months ago) by jhr
File size: 716 byte(s)
Wed Oct 14 21:25:00 2015 UTC (5 years, 6 months ago) by jhr
File size: 716 byte(s)
code is copyright University of Chicago
/*! \file nrrd.c * * \author John Reppy * * Common utility code for dealing with nrrd files. */ /* * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu) * * COPYRIGHT (c) 2015 The University of Chicago * 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 |