Hi Amardeep,<br><br>Thanks for the format conversion and also for putting up your data. I was able to reproduce the problem at my end. Your images had a negative origin and revealed a bug in code. This has been corrected now in the latest CVS repository.<br>
<br>Meanwhile, I have placed an example script and its output:<br><a href="http://bmi.osu.edu/~kishore/Amardeep/">http://bmi.osu.edu/~kishore/Amardeep/</a><br><br>Please try it out at your end and let me know how things work out.<br>
<br>Kishore<br><br><div class="gmail_quote">On Wed, Jul 22, 2009 at 5:41 AM, Amardeep Singh <span dir="ltr"><<a href="mailto:amar.singh@gmx.de">amar.singh@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dear Kishore<br>
<br>
I have converted the images to *.mhd, just like Alexander suggested. Does this solve the issue of<br>
opening the images for you?<br>
Please let me know if you still cannot use them.<br>
Thanks a lot for your help!<br>
<br>
Best regards<br><font color="#888888">
Amardeep</font><div><div></div><div class="h5"><br>
<br>
Oleksandr Dzyubak wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Kishore,<br>
<br>
You probably have some box with ITK installed.<br>
If you do, you could compile examples from ITK which<br>
comes in separate package "InsightApplications" (if you have not done so yet).<br>
Once successfully compiled, under directory<br>
~/InsightApplications/ConvertBetweenFileFormats you can find the executable<br>
ConvertBetweenFileFormats.<br>
<br>
The rest is quite simple. If you want to use Paraview, do as below<br>
<br>
./ConvertBetweenFileFormats image.nii image.mhd<br>
<br>
The second operand could be change to whatever your favorite format is.<br>
<br>
Alex<br>
<br>
Kishore Mosaliganti wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Amardeep,<br>
<br>
I am unable to open your images correctly or something is wrong.. What I saw was that the images was having 0s throughout.<br>
<br>
Can you write them in some other format that I can open in Paraview, for example?<br>
<br>
Thanks,<br>
Kishore<br>
<br>
On Tue, Jul 21, 2009 at 2:06 PM, Amardeep Singh <<a href="mailto:amar.singh@gmx.de" target="_blank">amar.singh@gmx.de</a> <mailto:<a href="mailto:amar.singh@gmx.de" target="_blank">amar.singh@gmx.de</a>>> wrote:<br>
<br>
Dear Kishore<br>
Dear ITK Users<br>
<br>
I have now been trying to use the filter, but, unfortunately, I<br>
cannot get it to run. My initial level set and my feature image<br>
are overlapping perfectly (same orientation/position information<br>
in the headers), but when I run the example program<br>
"ScalarSinglePhase3DTest.cc", I get the following error (it is<br>
indeed printed out twice):<br>
Exception caught !<br>
<br>
itk::ExceptionObject (0x8152b00)<br>
Location: "virtual void itk::DataObject::PropagateRequestedRegion()"<br>
File:<br>
/asingh/workspace/InsightToolkit-3.14.0/Code/Common/itkDataObject.cxx<br>
Line: 397<br>
Description: Requested region is (at least partially) outside the<br>
largest possible region.<br>
<br>
<br>
Exception caught !<br>
<br>
itk::ExceptionObject (0x8149d88)<br>
Location: "virtual void itk::DataObject::PropagateRequestedRegion()"<br>
File:<br>
/asingh/workspace/InsightToolkit-3.14.0/Code/Common/itkDataObject.cxx<br>
Line: 397<br>
Description: Requested region is (at least partially) outside the<br>
largest possible region.<br>
<br>
My parameters are chosen arbitrarily:<br>
curvature weight: 0.1<br>
area weight: 0.1<br>
laplacian weight: 0.1<br>
volume weight: 0.1 (what does this mean?)<br>
volume: 0 (what does this mean?)<br>
overlap weight: 0<br>
<br>
For your convenience, I have made the images available under the<br>
following URL:<br>
<a href="http://www.doc.ic.ac.uk/%7Easingh/" target="_blank">http://www.doc.ic.ac.uk/~asingh/</a> <<a href="http://www.doc.ic.ac.uk/%7Easingh/" target="_blank">http://www.doc.ic.ac.uk/%7Easingh/</a>><br>
<br>
I have also put my code there.<br>
<br>
Does anyone have an idea, why it fails?<br>
<br>
Any comment is highly appreciated!<br>
<br>
<br>
Best regards<br>
Amardeep<br>
<br>
<br>
Kishore Mosaliganti wrote:<br>
<br>
Hi Amardeep,<br>
<br>
The names of the classes were changed when moving to the<br>
Review directory. Therefore, you will need to modify the main<br>
cxx that you downloaded from Insight Journal.<br>
<br>
Thanks,<br>
Kishore<br>
<br>
On Thu, Jul 16, 2009 at 11:17 AM, Amardeep Singh<br>
<<a href="mailto:amar.singh@gmx.de" target="_blank">amar.singh@gmx.de</a> <mailto:<a href="mailto:amar.singh@gmx.de" target="_blank">amar.singh@gmx.de</a>><br>
<mailto:<a href="mailto:amar.singh@gmx.de" target="_blank">amar.singh@gmx.de</a> <mailto:<a href="mailto:amar.singh@gmx.de" target="_blank">amar.singh@gmx.de</a>>>> wrote:<br>
<br>
Dear ITK Users<br>
<br>
I would like to use the "Active Contours without edges"<br>
algorithm,<br>
which is available in<br>
the Review directory if I understood correctly.<br>
So, I am wondering where I can find an example about how to use<br>
the algorithm. I tried to run the<br>
"ScalarSinglePhase3DTest" example of the Insight Journal<br>
submission, but it failed to compile.<br>
The first error read:<br>
/applications/ScalarSinglePhase3DTest.cc:4:52: error:<br>
itkSparseMultiphaseLevelSetImageFilter.h: No such file or<br>
directory<br>
<br>
I am a little confused by the multitudes of implementations<br>
that<br>
are available with respect to this<br>
algorithm, at the moment (3 Insight Journal submission +<br>
Review).<br>
Can someone tell me where to start and how to get it running?<br>
Thanks a lot!<br>
<br>
Best regards<br>
Amardeep<br>
<br>
<br>
<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> <<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><br>
<<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>><br>
<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>
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>
_____________________________________<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>
Please keep messages on-topic and check the ITK FAQ at: <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>
</blockquote>
<br>
</blockquote>
</div></div></blockquote></div><br>