OK. I will try that. Thanks very much.<div><br></div><div>- - - TR</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 21, 2012 at 11:14 AM, Matt McCormick <span dir="ltr"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Tanweer,<br>
<br>
The recommended method is to use CMake to generate VS2010 project<br>
files. This will create code that automatically registers the IO<br>
factories.<br>
<br>
Thanks,<br>
Matt<br>
<div><div class="h5"><br>
On Wed, Nov 21, 2012 at 4:11 PM, Tanweer Rashid <<a href="mailto:trash001@odu.edu">trash001@odu.edu</a>> wrote:<br>
> I have not used CMake. I am using VS2010. In the project configuration, I<br>
> have added ITK and VTK include directories, along with the necessary VTK and<br>
> ITK libraries and lib paths.<br>
> I am using ITK's implementation of simplex mesh and visualizing with VTK.<br>
> The program can create the meshes, and then visualizes them, and after that<br>
> its seems to have trouble when it tries to read the .MHD file.<br>
><br>
> - - - Tanweer Rashid<br>
><br>
><br>
><br>
> On Tue, Nov 20, 2012 at 9:30 PM, Bill Lorensen <<a href="mailto:bill.lorensen@gmail.com">bill.lorensen@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Are you using Cmake to configure your project? If so, please provide<br>
>> your CMakeLists.txt file.<br>
>><br>
>> If you are not using CMake, what is the reason?<br>
>><br>
>> On Tue, Nov 20, 2012 at 7:31 PM, Tanweer Rashid <<a href="mailto:trash001@odu.edu">trash001@odu.edu</a>> wrote:<br>
>> > Hi,<br>
>> ><br>
>> > I am having problems reading a .MHD file. I get the following error:<br>
>> ><br>
>> > d:\programfiles\itk\include\itk-4.2\itkimagefilereader.hxx:143:<br>
>> > Could not create IO object for file<br>
>> > C:\Users\trash001\Desktop\sphere.mhd<br>
>> > Tried to create one of the following:<br>
>> > You probably failed to set a file suffix, or<br>
>> > set the suffix to an unsupported type.<br>
>> ><br>
>> ><br>
>> > My code is as follows:<br>
>> ><br>
>> > typedef itk::Image<float, 3> VolumeType;<br>
>> > typedef itk::ImageFileReader<VolumeType> VolumeReaderType;<br>
>> ><br>
>> > VolumeReaderType::Pointer reader = VolumeReaderType::New();<br>
>> > reader->SetFileName("C:\\Users\\trash001\\Desktop\\sphere.mhd");<br>
>> > reader->Update();<br>
>> ><br>
>> ><br>
>> > Thanks,<br>
>> > --<br>
>> > Tanweer Rashid<br>
>> > MSVE Dept.<br>
>> > Old Dominion University<br>
>> ><br>
>> ><br>
>> > _____________________________________<br>
>> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>> ><br>
>> > Visit other Kitware open-source projects at<br>
>> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>> ><br>
>> > Kitware offers ITK Training Courses, for more information visit:<br>
>> > <a href="http://www.kitware.com/products/protraining.php" 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="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
>> ><br>
>> > Follow this link to subscribe/unsubscribe:<br>
>> > <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Unpaid intern in BillsBasement at noware dot com<br>
>><br>
>><br>
>> --<br>
>><br>
><br>
><br>
><br>
> --<br>
> Tanweer Rashid<br>
> MSVE Dept.<br>
> Old Dominion University<br>
><br>
><br>
> _____________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.php" 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="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
<br>
<br>
--<br>
BEGIN-ANTISPAM-VOTING-LINKS<br>
------------------------------------------------------<br>
<br>
</div></div>Teach CanIt if this mail (ID 02Iqg8Hg5) is spam:<br>
Spam: <a href="https://www.spamtrap.odu.edu/canit/b.php?i=02Iqg8Hg5&m=94a49dc48359&t=20121121&c=s" target="_blank">https://www.spamtrap.odu.edu/canit/b.php?i=02Iqg8Hg5&m=94a49dc48359&t=20121121&c=s</a><br>
Not spam: <a href="https://www.spamtrap.odu.edu/canit/b.php?i=02Iqg8Hg5&m=94a49dc48359&t=20121121&c=n" target="_blank">https://www.spamtrap.odu.edu/canit/b.php?i=02Iqg8Hg5&m=94a49dc48359&t=20121121&c=n</a><br>
Forget vote: <a href="https://www.spamtrap.odu.edu/canit/b.php?i=02Iqg8Hg5&m=94a49dc48359&t=20121121&c=f" target="_blank">https://www.spamtrap.odu.edu/canit/b.php?i=02Iqg8Hg5&m=94a49dc48359&t=20121121&c=f</a><br>
------------------------------------------------------<br>
END-ANTISPAM-VOTING-LINKS<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Tanweer Rashid<br>MSVE Dept.<br><div>Old Dominion University</div><br>
</div>