Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/vis12-cl/src/lib/common/nrrd.c
ViewVC logotype

View of /branches/vis12-cl/src/lib/common/nrrd.c

Parent Directory Parent Directory | Revision Log Revision Log

Revision 2402 - (download) (as text) (annotate)
Sat Jul 27 13:55:03 2013 UTC (8 years, 6 months ago) by jhr
File size: 663 byte(s)
  Create branch for adding OpenCL to vis12 branch.  Based on r2401 of the vis12 branch.
/*! \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; 

ViewVC Help
Powered by ViewVC 1.0.0