<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Sharef:<br>
<br>
Try using <br>
<br>
<pre>vtkImageReader *reader = vtkImageReader::New();
</pre>
reader->SetDataMask(0x7fff);<br>
<br>
Thanks<br>
Regards<br>
karthik<br>
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:alqatarneh@netscape.net">alqatarneh@netscape.net</a> wrote:
<blockquote cite="mid75D6B558.7E3FB062.0E731D15@netscape.net"
type="cite">
<pre wrap="">Hello Luis and all again,
Thank you Luis for your fast reply.
I agree that Google is a good search engine but it did not help me much in this case.
I found the link that you directed me to and many other links but that was not the dataset that I was referring to.
Maybe I did not make myself clear..
There are 2 different Headsq datasets in ITK (Quarter, Half).
There is also one more dataset of HEADSQ Images (headsq.1, headsq.2,.... headsq.94) that is used to demonstarte the example:(InsightApplications/vtkITK/Scripts/DemoMutual.tcl).
That dataset I downloaded from:
<a class="moz-txt-link-freetext" href="ftp://public.kitware.com/pub/vtk/VTKTextbook/FullHead.tgz">ftp://public.kitware.com/pub/vtk/VTKTextbook/FullHead.tgz</a>
To my understanding it has different format from the Headsq Quarter and Half format.
The ReadMe of this HEADSQ dataset says: "Warning: this dataset has a connectivity bit set (unlike the half and quarter resolution cases). Set the data mask in vtkVolume16Source to mask out the high-order bit."
Am I wrong? is the format of this dataset similar to the Quarter and Half datasets?
If it is different from the others , can you tell me how I can convert my images to the same format as the HEADSQ Image format, and add the connectivity bit set " As mentioned above: this dataset has a connectivity bit set "?
Kind regards,
Sharef
Luis Ibanez <a class="moz-txt-link-rfc2396E" href="mailto:luis.ibanez@kitware.com"><luis.ibanez@kitware.com></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">
Hi Sharef,
Google is an amazing tool.
If you type:
"headsq itk"
The third link is the following email of the ITK users list
<a class="moz-txt-link-freetext" href="http://public.kitware.com/pipermail/insight-users/2003-May/003894.html">http://public.kitware.com/pipermail/insight-users/2003-May/003894.html</a>
Where you will find the MetaImage header that allows you to read
the headsq dataset with an itk::ImageFileReader.
filename="quarter.mhd":
NDims = 3
DimSize = 64 64 93
ElementSpacing = 1 1 1
Position = 0 0 0
ElementByteOrderMSB = False
ElementType = MET_USHORT
ElementDataFile = quarter.%d 1 93 1
Note that the actual demo that you are looking at is an early
experiment where ITK filters where wrapped inside VTK filters.
In that situation, the reading of the image is done with VTK
filters.
I would suggest you to use the MetaImage header attached and
look at the ITK registration applications such as
InsightApplications/
LandmarkInitializedMutualInformationRegistration
Once you load an image in ITK you can save it in any
of the formats listed on the FAQ
<a class="moz-txt-link-freetext" href="http://www.itk.org/Wiki/ITK_FAQ#What_3D_file_formats_can_ITK_import_and_export.3F">http://www.itk.org/Wiki/ITK_FAQ#What_3D_file_formats_can_ITK_import_and_export.3F</a>
Regards,
Luis
----------------------------------
<a class="moz-txt-link-abbreviated" href="mailto:alqatarneh@netscape.net">alqatarneh@netscape.net</a> wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hi Luis, Hi all,
There is a dataset of HEADSQ Images (headsq.1, headsq.2,.... headsq.94)
that is used to demonstarte the example (InsightApplications/vtkITK/Scripts/DemoMutual.tcl).
I understand that the format of such data is different from the Quarter and Half Headsq data as pointed out in the ReadMe:
"Warning: this dataset has a connectivity bit set (unlike the half and
quarter resolution cases). Set the data mask in vtkVolume16Source to
mask out the high-order bit."
Can someone tell me how to produce similar format to the HEADSQ.n format from my own images?
I searched quite alot but I found most info available is mostly about the Headsq Quarter dataset.
Thank you very much in advance!
Regards,
Sharef
</pre>
</blockquote>
<pre wrap="">
</pre>
</blockquote>
<pre wrap=""><!---->
__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at <a class="moz-txt-link-freetext" href="http://isp.netscape.com/register">http://isp.netscape.com/register</a>
Netscape. Just the Net You Need.
New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at <a class="moz-txt-link-freetext" href="http://channels.netscape.com/ns/search/install.jsp">http://channels.netscape.com/ns/search/install.jsp</a>
_______________________________________________
Insight-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Insight-users@itk.org">Insight-users@itk.org</a>
<a class="moz-txt-link-freetext" href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</a>
</pre>
</blockquote>
<br>
</body>
</html>