[Insight-users] 答复: [Insight-users] How to transpose 3Dima ge?

zhao yong qiang zhao-yq at cs.sjtu.edu.cn
Thu, 4 Mar 2004 21:36:31 +0800


This is a multi-part message in MIME format.

------=_NextPart_000_0003_01C40230.C249F8D0
Content-Type: text/plain;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Hi,

It is  a  series of dicom images, I convert it into *.mhd and *.raw =
file. I don=E2=80=99t know how to deal with the spacing if transpose it =
by using your method.

 Best  regards!!

=20

-----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6-----
=E5=8F=91=E4=BB=B6=E4=BA=BA: salah [mailto:salah at gris.uni-tuebingen.de]=20
=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2004=E5=B9=B43=E6=9C=884=E6=97=A5 =
21:04
=E6=94=B6=E4=BB=B6=E4=BA=BA: zhao yong qiang
=E4=B8=BB=E9=A2=98: AW: [Insight-users] How to transpose 3Dimage?

=20

Hello,

=20

Is it an itk image? I would suggest creating a new image with

the new dimensions, and then copying the data using a simple=20

loop, in which the indices are appropriatly switched.

=20

Greetings,

Zein

-----Urspr=C3=BCngliche Nachricht-----
Von: zhao yong qiang [mailto:zhao-yq at cs.sjtu.edu.cn]
Gesendet: Donnerstag, 4. M=C3=A4rz 2004 14:04
An: insight-users at itk.org
Betreff: [Insight-users] How to transpose 3Dimage?

Hi all,

    I have a 3d series, such as 128*128*13, I want to transpose it to =
128*13*128. Can someone give me a hand?

=20

Regards,=20
                          Zhao Yongqiang
                          Dept. of Computer Science & Engineering
                          Shanghai JiaoTong University
                          Shanghai, China
                          zhao-yq at cs.sjtu.edu.cn

=20


------=_NextPart_000_0003_01C40230.C249F8D0
Content-Type: text/html;
	charset="utf-8"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dutf-8">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Font Definitions */
  at font-face
	{font-family:=E5=AE=8B=E4=BD=93;
	panose-1:2 1 6 0 3 1 1 1 1 1;}
 at font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 at font-face
	{font-family:"\ at =E5=AE=8B=E4=BD=93";
	panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0cm;
	margin-bottom:.0001pt;
	text-align:justify;
	text-justify:inter-ideograph;
	font-size:10.5pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.emailstyle17
	{font-family:Arial;
	color:windowtext;}
span.emailstyle18
	{font-family:Arial;
	color:navy;}
span.EmailStyle19
	{font-family:Arial;
	color:navy;}
 at page Section1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;
	layout-grid:15.6pt;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DZH-CN link=3Dblue vlink=3Dpurple =
style=3D'text-justify-trim:punctuation'>

<div class=3DSection1 style=3D'layout-grid:15.6pt'>

<p class=3DMsoNormal><font size=3D1 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:9.0pt;font-family:Arial;color:navy'>Hi,</span></font><=
/p>

<p class=3DMsoNormal style=3D'text-indent:9.0pt'><font size=3D1 =
color=3Dnavy
face=3DArial><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:Arial;
color:navy'>It is &nbsp;a&nbsp; series of dicom images, I convert it =
into *.mhd
and *.raw file. I don=E2=80=99t know how to deal with the spacing if =
transpose it by
using your method.</span></font></p>

<p class=3DMsoNormal style=3D'text-indent:9.0pt'><font size=3D1 =
color=3Dnavy
face=3DArial><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:Arial;
color:navy'>&nbsp;Best &nbsp;regards!!</span></font></p>

<p class=3DMsoNormal><font size=3D1 color=3Dnavy face=3DArial><span =
lang=3DEN-US
style=3D'font-size:9.0pt;font-family:Arial;color:navy'>&nbsp;</span></fon=
t></p>

<p class=3DMsoNormal align=3Dleft =
style=3D'margin-left:21.0pt;text-align:left'><font
size=3D2 face=3D=E5=AE=8B=E4=BD=93><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:=E5=AE=8B=E4=BD=93'>-----=E9=82=AE=E4=
=BB=B6=E5=8E=9F=E4=BB=B6-----<br>
<b><span =
style=3D'font-weight:bold'>=E5=8F=91=E4=BB=B6=E4=BA=BA:</span></b> salah
[mailto:salah at gris.uni-tuebingen.de] <br>
<b><span =
style=3D'font-weight:bold'>=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4:</span></=
b> 2004=E5=B9=B43=E6=9C=884=E6=97=A5 21:04<br>
<b><span =
style=3D'font-weight:bold'>=E6=94=B6=E4=BB=B6=E4=BA=BA:</span></b> =
</span></font><font size=3D2
 face=3D=E5=AE=8B=E4=BD=93><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:=E5=AE=8B=E4=BD=93'>zhao</span></fo=
nt><font
size=3D2 face=3D=E5=AE=8B=E4=BD=93><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:=E5=AE=8B=E4=BD=93'> yong =
qiang<br>
<b><span style=3D'font-weight:bold'>=E4=B8=BB=E9=A2=98:</span></b> AW: =
[Insight-users] How to
transpose 3Dimage?</span></font></p>

<p class=3DMsoNormal style=3D'margin-left:21.0pt'><font size=3D2
face=3D"Times New Roman"><span lang=3DEN-US =
style=3D'font-size:10.5pt'>&nbsp;</span></font></p>

<div>

<p class=3DMsoNormal align=3Dleft =
style=3D'margin-left:21.0pt;text-align:left'><font
size=3D2 color=3Dblue face=3DArial><span lang=3DEN-US =
style=3D'font-size:10.0pt;
font-family:Arial;color:blue'>Hello,</span></font></p>

</div>

<div>

<p class=3DMsoNormal align=3Dleft =
style=3D'margin-left:21.0pt;text-align:left'><font
size=3D3 face=3D"Times New Roman"><span lang=3DEN-US =
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=3DMsoNormal align=3Dleft =
style=3D'margin-left:21.0pt;text-align:left'><font
size=3D2 color=3Dblue face=3DArial><span lang=3DEN-US =
style=3D'font-size:10.0pt;
font-family:Arial;color:blue'>Is it an itk image? I would suggest =
creating a
new image with</span></font></p>

</div>

<div>

<p class=3DMsoNormal align=3Dleft =
style=3D'margin-left:21.0pt;text-align:left'><font
size=3D2 color=3Dblue face=3DArial><span lang=3DEN-US =
style=3D'font-size:10.0pt;
font-family:Arial;color:blue'>the new dimensions, and then copying the =
data
using a simple </span></font></p>

</div>

<div>

<p class=3DMsoNormal align=3Dleft =
style=3D'margin-left:21.0pt;text-align:left'><font
size=3D2 color=3Dblue face=3DArial><span lang=3DEN-US =
style=3D'font-size:10.0pt;
font-family:Arial;color:blue'>loop, in which the indices are =
appropriatly
switched.</span></font></p>

</div>

<div>

<p class=3DMsoNormal align=3Dleft =
style=3D'margin-left:21.0pt;text-align:left'><font
size=3D3 face=3D"Times New Roman"><span lang=3DEN-US =
style=3D'font-size:12.0pt'>&nbsp;</span></font></p>

</div>

<div>

<p class=3DMsoNormal align=3Dleft =
style=3D'margin-left:21.0pt;text-align:left'><font
size=3D2 color=3Dblue face=3DArial><span lang=3DEN-US =
style=3D'font-size:10.0pt;
font-family:Arial;color:blue'>Greetings,</span></font></p>

</div>

<div>

<p class=3DMsoNormal align=3Dleft =
style=3D'margin-left:21.0pt;text-align:left'><font
size=3D2 color=3Dblue face=3DArial><span lang=3DEN-US =
style=3D'font-size:10.0pt;
font-family:Arial;color:blue'>Zein</span></font></p>

</div>

<blockquote =
style=3D'margin-top:5.0pt;margin-right:0cm;margin-bottom:5.0pt'>

<p class=3DMsoNormal align=3Dleft =
style=3D'margin-right:0cm;margin-bottom:12.0pt;
margin-left:21.0pt;text-align:left'><font size=3D2 face=3DTahoma><span =
lang=3DEN-US
style=3D'font-size:10.0pt;font-family:Tahoma'>-----Urspr</span></font><fo=
nt
size=3D2 face=3D=E5=AE=8B=E4=BD=93><span =
style=3D'font-size:10.0pt;font-family:=E5=AE=8B=E4=BD=93'>=C3=BC</span></=
font><font
size=3D2 face=3DTahoma><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Tahoma'>ngliche
Nachricht-----<br>
<b><span style=3D'font-weight:bold'>Von:</span></b> </span></font><font =
size=3D2
 face=3DTahoma><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Tahoma'>zhao</span></font><font
size=3D2 face=3DTahoma><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Tahoma'>
yong qiang [mailto:</span></font><font size=3D2 face=3DTahoma><span =
lang=3DEN-US
 style=3D'font-size:10.0pt;font-family:Tahoma'>zhao</span></font><font =
size=3D2
face=3DTahoma><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Tahoma'>-yq at cs.sjtu.edu.cn]<br>
<b><span style=3D'font-weight:bold'>Gesendet:</span></b> Donnerstag, 4. =
M=C3=A4rz 2004
14:04<br>
<b><span style=3D'font-weight:bold'>An:</span></b> </span></font><font =
size=3D2
 face=3DTahoma><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Tahoma'>insight-users at itk.org</span=
></font><font
size=3D2 face=3DTahoma><span lang=3DEN-US =
style=3D'font-size:10.0pt;font-family:Tahoma'><br>
<b><span style=3D'font-weight:bold'>Betreff:</span></b> [Insight-users] =
How to
transpose 3Dimage?</span></font></p>

<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;layout-grid-mode:char'><font
size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:Arial'>Hi
all,</span></font></p>

<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;layout-grid-mode:char'><font
size=3D1 face=3DArial><span lang=3DEN-US =
style=3D'font-size:9.0pt;font-family:Arial'>&nbsp;&nbsp;&nbsp;
I have a 3d series, such as 128*128*13, I want to transpose it to =
128*13*128. Can
someone give me a hand?</span></font></p>

<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;layout-grid-mode:char'><font
size=3D2 face=3D"Times New Roman"><span lang=3DEN-US =
style=3D'font-size:10.5pt'>&nbsp;</span></font></p>

<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;layout-grid-mode:char'><font
size=3D2 face=3D"Times New Roman"><span lang=3DEN-US =
style=3D'font-size:10.0pt'>Regards,
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;
Zhao Yongqiang<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;
Dept. of Computer Science &amp; Engineering<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;
</span></font><font size=3D2><span lang=3DEN-US =
style=3D'font-size:10.0pt'>Shanghai</span></font><font
 size=3D2><span lang=3DEN-US style=3D'font-size:10.0pt'> =
</span></font><font size=3D2><span
  lang=3DEN-US style=3D'font-size:10.0pt'>JiaoTong</span></font><font =
size=3D2><span
 lang=3DEN-US style=3D'font-size:10.0pt'> </span></font><font =
size=3D2><span
  lang=3DEN-US style=3D'font-size:10.0pt'>University</span></font><font =
size=3D2><span
lang=3DEN-US style=3D'font-size:10.0pt'><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;
</span></font><font size=3D2><span lang=3DEN-US =
style=3D'font-size:10.0pt'>Shanghai</span></font><font
 size=3D2><span lang=3DEN-US style=3D'font-size:10.0pt'>, =
</span></font><font size=3D2><span
  lang=3DEN-US style=3D'font-size:10.0pt'>China</span></font><font =
size=3D2><span
lang=3DEN-US style=3D'font-size:10.0pt'><br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;
<a =
href=3D"mailto:zhao-yq at cs.sjtu.edu.cn">zhao-yq at cs.sjtu.edu.cn</a></span><=
/font></p>

<p class=3DMsoNormal =
style=3D'margin-left:21.0pt;layout-grid-mode:char'><font
size=3D2 face=3D"Times New Roman"><span lang=3DEN-US =
style=3D'font-size:10.5pt'>&nbsp;</span></font></p>

</blockquote>

</div>

</body>

</html>

------=_NextPart_000_0003_01C40230.C249F8D0--