[prev in list] [next in list] [prev in thread] [next in thread] 

List:       insight-users
Subject:    Re: [ITK-users] [ITK] using MHA file to store additional information about image
From:       Andras Lasso <lasso () queensu ! ca>
Date:       2018-05-31 2:59:25
Message-ID: YQBPR0101MB1859014DCF1236011150DD7BD8630 () YQBPR0101MB1859 ! CANPRD01 ! PROD ! OUTLOOK ! COM
[Download RAW message or body]

[Attachment #2 (text/plain)]

Yes, Plus toolkit has been using mha and nrrd files for many years to store tracked \
ultrasound data in a single file. Recently we use nrrd format more, as this format \
supports 3D+t image sequences more cleanly. At the beginning, we used ITK's \
reader/writer, but metadata handling was not fast enough and we also needed dynamic \
header construction and memory-cached compressed streaming image I/O. We are now also \
adding support for lossy video codecs as non-standard extensions.

Plus can reconstruct volumes from tracked ultrasound slices, connect to many \
ultrasound devices through native interfaces, connect to most optical and \
electromagnetic trackers, stream tracked ultrasound data through OpenIGTLink for \
real-time visualization to various applications, perform spatial and temporal \
calibrations, etc. Check out www.plustoolkit.org<http://www.plustoolkit.org> and \
www.slicerigt.org<http://www.slicerigt.org> for details. There is a resident Plus \
expert at Robarts, Adam Rankin, you can contact him if you need more information, and \
we'll have a one-week hackathon at Robarts in July where you can meet several \
experienced Plus and SlicerIGT users and developers \
(https://na-mic.github.io/ProjectWeek/PW29_2018_London_Canada/).

Andras

From: Community <community-bounces@itk.org> On Behalf Of Dženan Zukic
Sent: Wednesday, May 30, 2018 4:26 PM
To: Andrew Harris <aharr8@uwo.ca>
Cc: Insight-users <insight-users@itk.org>
Subject: Re: [ITK] [ITK-users] using MHA file to store additional information about \
image

Hi Andrew,

you can add content to image's MetaData dictionary. But you should look at how Plus \
does it (code<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub. \
com%2FPlusToolkit%2FPlusLib%2Fblob%2Fmaster%2Fsrc%2FPlusCommon%2FIO%2FvtkPlusMetaImage \
SequenceIO.cxx&data=02%7C01%7Classo%40queensu.ca%7C5a34db5cc49149f2b77b08d5c66b8a59%7C \
d61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636633087559034726&sdata=9JCBbDgxqHogvLhKlhy8Vnk1SkRhFbgJFck%2Fy77KtEg%3D&reserved=0>, \
docs<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fperk-software.cs. \
queensu.ca%2Fplus%2Fdoc%2Fnightly%2Fdev%2FvtkPlusMetaImageSequenceIO_8h.html&data=02%7 \
C01%7Classo%40queensu.ca%7C5a34db5cc49149f2b77b08d5c66b8a59%7Cd61ecb3b38b142d582c4efb2 \
838b925c%7C1%7C0%7C636633087559034726&sdata=NtNk%2Ftz712R0RIsO8YXlff2ds16C%2BVpZtgZpKWiCu3k%3D&reserved=0>). \
You might be able to use it directly.

Regards,
Dženan

On Wed, May 30, 2018 at 2:53 PM Andrew Harris <aharr8@uwo.ca<mailto:aharr8@uwo.ca>> \
wrote: Hello, I was wondering if it is possible to store additional information about \
an image as part of an MHA file.  Specifically, we are capturing ultrasound using an \
arm that has encoders attached that report position in space, and I'd like to be able \
to include that information in the MHA file rather than keeping a separate record. \
Thanks in advance for the help.

--

AH



Andrew Harris, BSc with Honours (Medical Physics)

PhD (CAMPEP) & MClSc Candidate

-----------------------------------------------------------------------------------------------


This email and any attachments thereto may contain private, confidential, and \
privileged materials for the sole use of the intended recipient. Any reviewing, \
copying, or distribution of this email (or any attachments thereto) by other than the \
intended recipient is strictly prohibited. If you are not the intended recipient, \
please contact the sender immediately and permanently destroy this email and any \
attachments thereto. The ITK community is transitioning from this mailing list to \
discourse.itk.org<https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdisc \
ourse.itk.org&data=02%7C01%7Classo%40queensu.ca%7C5a34db5cc49149f2b77b08d5c66b8a59%7Cd \
61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636633087559034726&sdata=F%2F2FM4Gx3T8lnoTySGCAEwFinDW8L7MYnJrHnNwV86Y%3D&reserved=0>. \
Please join us there! ________________________________
Powered by www.kitware.com<https://na01.safelinks.protection.outlook.com/?url=http%3A% \
2F%2Fwww.kitware.com&data=02%7C01%7Classo%40queensu.ca%7C5a34db5cc49149f2b77b08d5c66b8 \
a59%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636633087559034726&sdata=ZMXFx9lMJo9Hask7X6sNVE9PffQs23XxMXoPsxToXKg%3D&reserved=0>


Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html<https://na01.safelinks.protection.ou \
tlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C0 \
1%7Classo%40queensu.ca%7C5a34db5cc49149f2b77b08d5c66b8a59%7Cd61ecb3b38b142d582c4efb283 \
8b925c%7C1%7C0%7C636633087559034726&sdata=7TlJGDrfCE7jP2HMG1FVEXDv9vb6TOfQXvQvpxXtOLY%3D&reserved=0>


Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php<https://na01.safelinks.protection.outl \
ook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fproducts%2Fprotraining.php&data=02%7C01%7C \
lasso%40queensu.ca%7C5a34db5cc49149f2b77b08d5c66b8a59%7Cd61ecb3b38b142d582c4efb2838b92 \
5c%7C1%7C0%7C636633087559034726&sdata=QBCbC5%2BC2OfECc3CAh8xm9sRj1W5QB9bAA7zJW1hPAs%3D&reserved=0>


Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ<https://na01.safelinks.protection.outlook.com/?url=htt \
p%3A%2F%2Fwww.itk.org%2FWiki%2FITK_FAQ&data=02%7C01%7Classo%40queensu.ca%7C5a34db5cc49 \
149f2b77b08d5c66b8a59%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636633087559034726&sdata=nl8SjXiDbYKLqy7hYt13IrHs9EYXNsu58ESqxPFgQVc%3D&reserved=0>


Follow this link to subscribe/unsubscribe:
https://itk.org/mailman/listinfo/insight-users<https://na01.safelinks.protection.outlo \
ok.com/?url=https%3A%2F%2Fitk.org%2Fmailman%2Flistinfo%2Finsight-users&data=02%7C01%7C \
lasso%40queensu.ca%7C5a34db5cc49149f2b77b08d5c66b8a59%7Cd61ecb3b38b142d582c4efb2838b92 \
5c%7C1%7C0%7C636633087559034726&sdata=u7z2GjFpflP2RxrZJzl%2F2zNwJ9ie9bHMOA8bK9sycPk%3D&reserved=0>



[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Verdana;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
p
	{mso-style-priority:99;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0in;
	mso-margin-bottom-alt:auto;
	margin-left:0in;
	font-size:12.0pt;
	font-family:"Times New Roman",serif;}
span.EmailStyle19
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Yes, \
Plus toolkit has been using mha and nrrd files for many years to store tracked \
ultrasound data in a single file. Recently we use nrrd format more, as this  format \
supports 3D&#43;t image sequences more cleanly. At the beginning, we used ITK's \
reader/writer, but metadata handling was not fast enough and we also needed dynamic \
header construction and memory-cached compressed streaming image I/O. We are now also \
adding  support for lossy video codecs as non-standard \
extensions.<o:p></o:p></span></p> <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Plus \
can reconstruct volumes from tracked ultrasound slices, connect to many ultrasound \
devices through native interfaces, connect to most optical and electromagnetic  \
trackers, stream tracked ultrasound data through OpenIGTLink for real-time \
visualization to various applications, perform spatial and temporal calibrations, \
etc. Check out <a href="http://www.plustoolkit.org">www.plustoolkit.org</a> and <a \
href="http://www.slicerigt.org"> www.slicerigt.org</a> for details. There is a \
resident Plus expert at Robarts, Adam Rankin, you can contact him if you need more \
information, and we'll have a one-week hackathon at Robarts in July where you can \
meet several experienced Plus and SlicerIGT users  and developers (<a \
href="https://na-mic.github.io/ProjectWeek/PW29_2018_London_Canada/">https://na-mic.github.io/ProjectWeek/PW29_2018_London_Canada/</a>).<o:p></o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Andras<o:p></o:p></span></p>
 <p class="MsoNormal"><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
 <p class="MsoNormal"><b><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span \
style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> Community \
&lt;community-bounces@itk.org&gt; <b>On Behalf Of </b>Dženan Zukic<br>
<b>Sent:</b> Wednesday, May 30, 2018 4:26 PM<br>
<b>To:</b> Andrew Harris &lt;aharr8@uwo.ca&gt;<br>
<b>Cc:</b> Insight-users &lt;insight-users@itk.org&gt;<br>
<b>Subject:</b> Re: [ITK] [ITK-users] using MHA file to store additional information \
about image<o:p></o:p></span></p> <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,sans-serif">Hi \
Andrew,<o:p></o:p></span></p> </div>
<div>
<p class="MsoNormal"><span \
style="font-family:&quot;Verdana&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p> \
</div> <div>
<p class="MsoNormal"><span style="font-family:&quot;Verdana&quot;,sans-serif">you can \
add content to image's MetaData dictionary. But you should look at how Plus does it \
(<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com% \
2FPlusToolkit%2FPlusLib%2Fblob%2Fmaster%2Fsrc%2FPlusCommon%2FIO%2FvtkPlusMetaImageSequ \
enceIO.cxx&amp;data=02%7C01%7Classo%40queensu.ca%7C5a34db5cc49149f2b77b08d5c66b8a59%7C \
d61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636633087559034726&amp;sdata=9JCBbDgxqHogvLhKlhy8Vnk1SkRhFbgJFck%2Fy77KtEg%3D&amp;reserved=0">code</a>,&nbsp;<a \
href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fperk-software.cs \
.queensu.ca%2Fplus%2Fdoc%2Fnightly%2Fdev%2FvtkPlusMetaImageSequenceIO_8h.html&amp;data \
=02%7C01%7Classo%40queensu.ca%7C5a34db5cc49149f2b77b08d5c66b8a59%7Cd61ecb3b38b142d582c \
4efb2838b925c%7C1%7C0%7C636633087559034726&amp;sdata=NtNk%2Ftz712R0RIsO8YXlff2ds16C%2BVpZtgZpKWiCu3k%3D&amp;reserved=0">docs</a>).
  You might be able to use it directly.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span \
style="font-family:&quot;Verdana&quot;,sans-serif"><o:p>&nbsp;</o:p></span></p> \
</div> <div>
<p class="MsoNormal"><span \
style="font-family:&quot;Verdana&quot;,sans-serif">Regards,<o:p></o:p></span></p> \
</div> <div>
<p class="MsoNormal"><span \
style="font-family:&quot;Verdana&quot;,sans-serif">Dženan<o:p></o:p></span></p> \
</div> </div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal">On Wed, May 30, 2018 at 2:53 PM Andrew Harris &lt;<a \
href="mailto:aharr8@uwo.ca">aharr8@uwo.ca</a>&gt; wrote:<o:p></o:p></p> </div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in \
6.0pt;margin-left:4.8pt;margin-right:0in"> <div>
<p class="MsoNormal">Hello, I was wondering if it is possible to store additional \
information about an image as part of an MHA file.&nbsp; Specifically, we are \
capturing ultrasound using an arm that has encoders attached that report position in \
space, and I'd like  to be able to include that information in the MHA file rather \
than keeping a separate record. Thanks in advance for the help.<br clear="all"> \
<o:p></o:p></p> <div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><span \
style="font-family:&quot;Arial&quot;,sans-serif;color:#232323">--<o:p></o:p></span></p>
 <p style="margin:0in;margin-bottom:.0001pt"><span \
style="font-family:&quot;Arial&quot;,sans-serif;color:#232323">AH<o:p></o:p></span></p>
 <p style="margin:0in;margin-bottom:.0001pt;min-height:15px"><span \
style="font-family:&quot;Arial&quot;,sans-serif;color:#232323"><o:p>&nbsp;</o:p></span></p>
 <p style="margin:0in;margin-bottom:.0001pt"><span \
style="font-family:&quot;Arial&quot;,sans-serif;color:#232323">Andrew Harris, BSc \
with&nbsp;Honours&nbsp;(Medical Physics)<o:p></o:p></span></p> <p \
style="margin:0in;margin-bottom:.0001pt"><span \
style="font-family:&quot;Arial&quot;,sans-serif;color:#232323">PhD (CAMPEP) &amp; \
MClSc Candidate<o:p></o:p></span></p> <p \
style="margin:0in;margin-bottom:.0001pt"><span \
style="font-family:&quot;Arial&quot;,sans-serif;color:#232323">----------------------- \
------------------------------------------------------------------------<o:p></o:p></span></p>
 <p style="margin:0in;margin-bottom:.0001pt"><i><span \
style="font-family:&quot;Arial&quot;,sans-serif;color:#232323">This email and any \
attachments thereto may contain private, confidential,&nbsp;and&nbsp;privileged \
materials for the sole use of the intended recipient. Any&nbsp;reviewing,  copying, \
or distribution of this email (or any attachments thereto)&nbsp;by other than the \
intended recipient is strictly prohibited. If you are not&nbsp;the intended \
recipient, please contact the sender immediately and&nbsp;permanently destroy this \
email and any attachments  thereto.</span></i><span \
style="font-family:&quot;Arial&quot;,sans-serif;color:#232323"><o:p></o:p></span></p> \
</div> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal">The ITK community is transitioning from this mailing list to
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fdiscourse.itk \
.org&amp;data=02%7C01%7Classo%40queensu.ca%7C5a34db5cc49149f2b77b08d5c66b8a59%7Cd61ecb \
3b38b142d582c4efb2838b925c%7C1%7C0%7C636633087559034726&amp;sdata=F%2F2FM4Gx3T8lnoTySGCAEwFinDW8L7MYnJrHnNwV86Y%3D&amp;reserved=0" \
target="_blank"> discourse.itk.org</a>. Please join us there!<br>
________________________________<br>
Powered by <a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fww \
w.kitware.com&amp;data=02%7C01%7Classo%40queensu.ca%7C5a34db5cc49149f2b77b08d5c66b8a59 \
%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636633087559034726&amp;sdata=ZMXFx9lMJo9Hask7X6sNVE9PffQs23XxMXoPsxToXKg%3D&amp;reserved=0" \
target="_blank"> www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.c \
om%2Fopensource%2Fopensource.html&amp;data=02%7C01%7Classo%40queensu.ca%7C5a34db5cc491 \
49f2b77b08d5c66b8a59%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636633087559034726&amp;sdata=7TlJGDrfCE7jP2HMG1FVEXDv9vb6TOfQXvQvpxXtOLY%3D&amp;reserved=0" \
target="_blank">http://www.kitware.com/opensource/opensource.html</a><br> <br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.c \
om%2Fproducts%2Fprotraining.php&amp;data=02%7C01%7Classo%40queensu.ca%7C5a34db5cc49149 \
f2b77b08d5c66b8a59%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636633087559034726&amp;sdata=QBCbC5%2BC2OfECc3CAh8xm9sRj1W5QB9bAA7zJW1hPAs%3D&amp;reserved=0" \
target="_blank">http://www.kitware.com/products/protraining.php</a><br> <br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.itk.org%2 \
FWiki%2FITK_FAQ&amp;data=02%7C01%7Classo%40queensu.ca%7C5a34db5cc49149f2b77b08d5c66b8a \
59%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636633087559034726&amp;sdata=nl8SjXiDbYKLqy7hYt13IrHs9EYXNsu58ESqxPFgQVc%3D&amp;reserved=0" \
target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br> <br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fitk.org%2Fma \
ilman%2Flistinfo%2Finsight-users&amp;data=02%7C01%7Classo%40queensu.ca%7C5a34db5cc4914 \
9f2b77b08d5c66b8a59%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636633087559034726&amp;sdata=u7z2GjFpflP2RxrZJzl%2F2zNwJ9ie9bHMOA8bK9sycPk%3D&amp;reserved=0" \
target="_blank">https://itk.org/mailman/listinfo/insight-users</a><o:p></o:p></p> \
</blockquote> </div>
</div>
</body>
</html>



The ITK community is transitioning from this mailing list to discourse.itk.org. Please join us there!
________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
https://itk.org/mailman/listinfo/insight-users

--===============1616384912==--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic