[Insight-users] Itk Segmentation Fault

Ariel Hernán Curiale curiale at gmail.com
Fri Mar 25 08:21:23 EDT 2011


What ITK version are running ?

Another things is that "DeformationPixelType" need to be a float or double.

Please post the source code.


Saludos
Ariel Hernán Curiale
www.curiale.com.ar



El 25/03/2011, a las 12:54, akbarjan bayiz escribió:

> Hello!
> 
> Thank you for your reply. 
> I've done it as you said, changed the data types, but unfortunately it gives out a full screen of error now. I am trying to read two dicom series from two different directories, and perform Demons registration, then save the output as a new dicom file. Maybe this is different from what you are doing, and that is why your data type does not work for my code I think. 
> 
> Do you have any other good suggestions? 
> 
> Best Regards, 
> 
> --- On Fri, 3/25/11, Ariel Hernán Curiale <curiale at gmail.com> wrote:
> 
> From: Ariel Hernán Curiale <curiale at gmail.com>
> Subject: Re: [Insight-users] Itk Segmentation Fault
> To: "akbarjan bayiz" <abayiz at yahoo.com>
> Cc: insight-users at itk.org
> Date: Friday, March 25, 2011, 5:34 AM
> 
> Hi, Im recently used this class  and I had no errors.  This is my code:
> 
> 		  typedef itk::Image<PixelType,3> ImageType;
> 	typedef itk::Image< itk::Vector<DeformationPixelType, 3>, 3> DeformationFieldType;
> 	typedef itk::DiffeomorphicDemonsRegistrationFilter <ImageType, ImageType, DeformationFieldType> FilterType;
> 	
> 	typename FilterType::Pointer filter = FilterType::New();
> 	
> 	
> 	filter->SetFixedImage(img_diastole->GetOutput());
> 	filter->SetMovingImage(img_sistole->GetOutput());
> 	filter->Update();
> 	
> 	typename DeformationFieldType::Pointer deformacion = filter->GetDeformationField();
> 
> 
> Saludos
> Ariel Hernán Curiale
> www.curiale.com.ar
> 
> 
> 
> El 25/03/2011, a las 10:00, akbarjan bayiz escribió:
> 
>> Hello all!
>> 
>> I am using Demons algorithm to perform registration of two DICOM series. My code compiles without any error. And when I run it, at the final step, when it updates the filter, there is a "0" on the screen, and gives error message saying "Segmentation Fault". 
>> 
>> What should I do for it? 
>> 
>> Thank you in advance! 
>> 
>> 
>> 
>> _____________________________________
>> Powered by www.kitware.com
>> 
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>> 
>> Kitware offers ITK Training Courses, for more information visit:
>> http://www.kitware.com/products/protraining.html
>> 
>> Please keep messages on-topic and check the ITK FAQ at:
>> http://www.itk.org/Wiki/ITK_FAQ
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110325/62b711f9/attachment.htm>


More information about the Insight-users mailing list