Skip to content

Neuroimaging Informatics Technology Initiative

Sections
Personal tools
You are here: Home
phorum - NIfTI Message Board - Re: nifti_image_write_bricks
NIfTI Message Board

 New Topic  |  Go to Top  |  Go to Topic  |  Search   Previous Message  |  Next Message 
 Re: nifti_image_write_bricks
Author: rick reynolds (---.nimh.nih.gov)
Date:   10-07-08 10:47

Hi Cinly,

It is correct that the code fails because of the first
nifti_image_write_bricks(nim, &NBL) call.

Initially, a.nii is written with 2 volumes. The first
nifti_image_read() call reads the header, but then the
first nifti_image_load_bricks() call loads volume[0],
but not volume[1].

---

Then that single volume is written out via the first
nifti_image_write_bricks() call. This is actually not
done correctly. The NBL structure should match the
nifti_image. But the NBL structure contains 1 volume
while the nifti_image has time dimension 2.

The nifti_image_write_bricks() function ought to have a
check and complain when this happens, but it currently
does not.

The result of the first nifti_image_write_bricks() call
is that a.nii now only has 1 volume, while the header
claims that it has 2. So the next read function fails
(since vol = 1, and not 0).

- rick



 Reply To This Message  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 nifti_image_write_bricks  new
Cinly OOI 10-06-08 19:55 
 Re: nifti_image_write_bricks  
rick reynolds 10-07-08 10:47 
 Re: nifti_image_write_bricks  new
rick reynolds 10-07-08 15:27 
 Re: nifti_image_write_bricks  new
Cinly OOI 10-08-08 08:46 
 Re: nifti_image_write_bricks  new
Cinly OOI 10-08-08 10:37 
 Re: nifti_image_write_bricks  new
rick reynolds 10-08-08 14:35 
 Re: nifti_image_write_bricks  new
Cinly OOI 10-08-08 14:48 


 New Topic  |  Go to Top  |  Go to Topic  |  Search 
 Reply To This Message
 Your Name:
 Your E-mail:
 Subject:
   
 

Powered by Plone

phorum.org

This site conforms to the following standards: