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

SCM Repository

[diderot] Diff of /branches/pure-cfg/src/include/Diderot/types.h
ViewVC logotype

Diff of /branches/pure-cfg/src/include/Diderot/types.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1353, Mon Jun 20 17:12:06 2011 UTC revision 1354, Tue Jun 21 01:01:36 2011 UTC
# Line 108  Line 108 
108  typedef const char *Diderot_string_t;  typedef const char *Diderot_string_t;
109    
110  typedef struct {                        // wrapper for 1D image data  typedef struct {                        // wrapper for 1D image data
111      uint32_t            dim;            // dimension (== 1)      uint32_t            dim;            //!< dimension (== 1)
112      uint32_t            size[1];      uint32_t            size[1];
113        size_t              dataSzb;        //!< size of data in bytes
114      void                *data;      void                *data;
115  #if defined(DIDEROT_TARGET_CL)      Diderot_real_t      s;              //!< scaling from world-space to image-space
116      cl_mem              memObj;         // GPU-side memory object for data.      Diderot_real_t      t;              //!< translation from world-space to image-space
 #endif  
     Diderot_real_t      s;              // scaling from world-space to image-space  
     Diderot_real_t      t;              // translation from world-space to image-space  
117  } Diderot_image1D_t;  } Diderot_image1D_t;
118    
119  typedef struct {                        // wrapper for 2D image data  typedef struct {                        // wrapper for 2D image data
120      uint32_t            dim;            // dimension (== 2)      uint32_t            dim;            //!< dimension (== 2)
121      uint32_t            size[2];        // sizes (fast to slow)      uint32_t            size[2];        //!< sizes (fast to slow)
122        size_t              dataSzb;        //!< size of data in bytes
123      void                *data;      void                *data;
124      Diderot_Mat2x2_t    w2i;            // affine tranform from world space to index space.  This is the      Diderot_Mat2x2_t    w2i;            //!< affine tranform from world space to index space.  This is the
125                                          // inverse of the index to world-space transform that is loaded from                                          //!  inverse of the index to world-space transform that is loaded from
126                                          // the Nrrd file.                                          //!  the Nrrd file.
127      Diderot_vec2_t      tVec;           // translation part of world to index transform      Diderot_vec2_t      tVec;           //!< translation part of world to index transform
128      Diderot_Mat2x2_t    w2iT;           // transpose w3i      Diderot_Mat2x2_t    w2iT;           //!< transpose w3i
129  } Diderot_image2D_t;  } Diderot_image2D_t;
130    
131  typedef struct {                        // wrapper for 3D image data  typedef struct {                        // wrapper for 3D image data
132      uint32_t            dim;            // dimension (== 3)      uint32_t            dim;            // dimension (== 3)
133      uint32_t            size[3];        // sizes (fast to slow)      uint32_t            size[3];        // sizes (fast to slow)
134        size_t              dataSzb;        //!< size of data in bytes
135      void                *data;      void                *data;
136      Diderot_Mat3x3_t    w2i;            // affine tranform from world space to index space.  This is the      Diderot_Mat3x3_t    w2i;            //!< affine tranform from world space to index space.  This is the
137                                          // inverse of the index to world-space transform that is loaded from                                          //!  inverse of the index to world-space transform that is loaded from
138                                          // the Nrrd file.                                          //!  the Nrrd file.
139      Diderot_vec3_t      tVec;           // translation part of world to index transform      Diderot_vec3_t      tVec;           //!< translation part of world to index transform
140      Diderot_Mat3x3_t    w2iT;           // transpose w3i      Diderot_Mat3x3_t    w2iT;           //!< transpose w3i
141  } Diderot_image3D_t;  } Diderot_image3D_t;
142    
143  #endif /* !_DIDEROT_TYPES_H_ */  #endif /* !_DIDEROT_TYPES_H_ */

Legend:
Removed from v.1353  
changed lines
  Added in v.1354

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