<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Hi Mariam,
<div><br>
</div>
<div>The question is not stupid. The documentation is not quite clear and it makes assumptions on the user's prior knowledge.</div>
<div><br>
</div>
<div>The range in question is the range of pixel values in your voxelized phantom (or source) that you want to attribute to a particular material.</div>
<div><br>
</div>
<div>If you look at the time activity curve example in the examples folder of Gate v6.2, you'll find a folder named data and inside of it, the file named range.dat. This is the range translator for the voxelized phantom used in this example. This file looks
like this:</div>
<div><br>
</div>
<div>
<div> 4</div>
<div> 0 0 Air false 0.0 0.0 0.0 0.0 1.0</div>
<div> 6 6 Lung false 0.8 0.8 0.8 1.0 1.0</div>
<div> 15 15 Breast false 0.5 0.5 0.5 1.0 1.0</div>
<div> 29 36 RibBone true 1.0 1.0 1.0 1.0 1.0</div>
<div> </div>
</div>
<div>The first line says that we have four materials. The second line says that every pixel with a value between 0 and 0 in your voxelized phantom corresponds to the material Air. Then, every pixel with a value between 6 and 6 corresponds to the material Lung.
Every pixel with a value between 15 and 15 corresponds to Breast. Finally, pixels that have a value between 29 and 36 are assigned to RibBone.</div>
<div><br>
</div>
<div>The red, blue, green and alpha values determine what colour and how opaque these materials show up when you view your phantom. Learn more about it here: <a href="http://en.wikipedia.org/wiki/RGBA_color_space">http://en.wikipedia.org/wiki/RGBA_color_space</a></div>
<div><br>
</div>
<div>And the reason the same material was defined several times in your example, was just to show that you could have the same material show up different colour when its pixel value is different.</div>
<div><br>
</div>
<div>I hope this helps.</div>
<div><br>
</div>
<div>
<div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px; ">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Marc</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>__________________________</div>
<div><br>
</div>
<div>Marc Chamberland, MSc</div>
PhD candidate<br>
Department of Physics<br>
Carleton University<br>
Ottawa (ON)</div>
</span></div>
<br>
<div>
<div>On 2013-02-25, at 11:13 AM, mariam zoubair <<a href="mailto:zoubair-mariam@hotmail.fr">zoubair-mariam@hotmail.fr</a>></div>
<div> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div class="hmmessage">
<div dir="ltr">
<div dir="ltr"><style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
<div dir="ltr">
<pre>Dear GATE-Users,</pre>
<br>
I am a new user Gate. I would like to define the tabulated or the range translator. I found in the users guide that the first line must contain the number of materials, the following lines contain either a material number (or range). So I do not understand
what is range in this case and for the color attribute values (red, green, blue, alpha) what is alpha I can use any value? I find in examples, same material is defined several times.</div>
<div dir="ltr"><br>
</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">My questions may be stupid but I am learn this code</div>
<div dir="ltr"><br>
</div>
<div dir="ltr"><br>
</div>
<div dir="ltr">
<pre>Best Regards,</pre>
<pre><br></pre>
<pre>Mariam</pre>
</div>
<div dir="ltr"><br>
</div>
<div dir="ltr"><br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<font color="#0000ff" size="5"><a href="http://www.bicoeur.com/" target="_blank"><br>
</a></font><br>
<font color="#0000ff" size="5"><a href="http://www.bicoeur.com/" target="_blank"><br>
</a></font><br>
<br>
<br>
</div>
</div>
</div>
</div>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</blockquote>
</div>
<br>
</div>
</body>
</html>