Mercurial > hg > minc-tools
comparison minc4itk/itkMincImageIO.cxx @ 2656:946695de0dca
EZ minc test implimentation
author | Vladimir S. FONOV <vladimir.fonov@gmail.com> |
---|---|
date | Fri, 23 Mar 2012 16:41:29 -0400 |
parents | aed206ef4c5e |
children |
comparison
equal
deleted
inserted
replaced
2655:584b0bdfa619 | 2656:946695de0dca |
---|---|
177 if(_rdr->ndim(0)>0 && _rdr->ndim(4)>0) | 177 if(_rdr->ndim(0)>0 && _rdr->ndim(4)>0) |
178 throw ExceptionObject(__FILE__,__LINE__,"Combining time and vector dimension in one file is not supported!"); | 178 throw ExceptionObject(__FILE__,__LINE__,"Combining time and vector dimension in one file is not supported!"); |
179 SetNumberOfComponents(_rdr->ndim(0)+_rdr->ndim(4)); | 179 SetNumberOfComponents(_rdr->ndim(0)+_rdr->ndim(4)); |
180 } | 180 } |
181 | 181 |
182 for(int i=1,c=0; i < 4; i++) | 182 for(int i=1,c=0; i < 5; i++) |
183 { | 183 { |
184 if(_rdr->ndim(i)<=0) continue; | 184 if(_rdr->ndim(i)<=0) continue; |
185 SetDimensions(c,_rdr->ndim(i)); | 185 SetDimensions(c,_rdr->ndim(i)); |
186 SetSpacing(c,_rdr->nspacing(i)); | 186 SetSpacing(c,_rdr->nspacing(i)); |
187 SetOrigin(c,_rdr->nstart(i)); | 187 SetOrigin(c,_rdr->nstart(i)); |