<div dir="ltr">Following up my own question:<div><br></div><div>I should have tried this before, but if I write out the original image everything is fine (NRRD0005, and the measurement frame is written out). So that answers half of my issue.</div>
<div><br></div><div style>So my refined question is this:</div><div style><br></div><div style>I am constructing a new vector image using itk:ComposeImageFilter and averaging operations on images taken from an itk::VectorIndexSelectionCastImageFilter.</div>
<div style><br></div><div style>All other spatial information is being carried along with the sliced images, but not the measurement frame. Can anyone point me in the right direction to preserve this information?</div><div style>
<br></div><div style><br></div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 9, 2013 at 4:16 PM, Soubzriquet <span dir="ltr"><<a href="mailto:soubzriquet@gmail.com" target="_blank">soubzriquet@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all!<div><br></div><div>I have the following issue where I am losing metadata when outputting to a NRRD file.</div>
<div><br></div><div> 1) I load a valid NRRD0005 file with a "measurement frame" field into an itk::VectorImage</div>
<div> 2) I filter the image, creating a new vector image </div><div> 3) I write out the new image to a file</div><div><br></div><div>The resulting file is in NRRD0004 format, and does not include a measurement frame.</div>
<div><br></div><div>I've dumped the entire metadata dictionary and I can see that the measurement frame is being read from the file, but it is handled differently that other properties like "kinds" and "space", it's metadata object type name is std::vector<std::vector<double>>> whereas the other types show up as std::strings.</div>
<div><br></div><div>So it looks like I can special case this field and regenerate it to hack around the problem, but I'd like to see how to do this properly.</div><div><br></div><div><br></div>
<div>So I am wondering does ITK 4.3.2 support NRRD0005 at all? If so, is this a known issue or am I just doing something incorrectly?</div><div><br></div><div>Any ideas how best to proceed before I dive into the ITK source?</div>
</div>
</blockquote></div><br></div>