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

SCM Repository

[diderot] View of /trunk/src/compiler/IL/image-info.sml
ViewVC logotype

View of /trunk/src/compiler/IL/image-info.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 135 - (download) (annotate)
Fri Jul 2 21:57:47 2010 UTC (9 years, 5 months ago) by jhr
File size: 872 byte(s)
  Working on IL representation
(* image-info.sml
 *
 * COPYRIGHT (c) 2010 The Diderot Project (http://diderot.cs.uchicago.edu)
 * All rights reserved.
 *
 * Information about a NRRD file
 *)

structure ImageInfo : sig

    type info = {
	    dim : int,				(* dimension of space *)
	    ty : RawTypes.ty,			(* types of scalar samples *)
	    origin : FloatLit.float list,	(* center of first sample *)
	    sizes : int list			(* number of samples along each axis *)
	  }
	
    val getInfo : string -> info

  end = struct

    type info = {
	    dim : int,				(* dimension of space *)
	    ty : RawTypes.ty,			(* types of scalar samples *)
	    origin : FloatLit.float list,	(* center of first sample *)
	    sizes : int list			(* number of samples along each axis *)
	  }

    fun getInfo fileName = let
	  val {version, header} = RunDNorm.run fileName
	  in
(* FIXME*)raise Fail "getInfo"
	  end

  end

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0