[Insight-users] DeformableModel1.cxx problem

Stephen R. Aylward aylward at unc.edu
Wed Mar 16 15:25:51 EST 2005


Hi,

One possible cause - the input image filename is "analyze.hdr" but the 
text your gave is a header in the MetaImage fileformat.

Try changing the filename for the input image to
"input.mhd" so that the IO factories will use the correct reader.

Stephen



Akiko Campbell wrote:
> I’ve noticed there have been some issues reported for 
> DeformableModel1.cxx and I would like to know if anyone has found the 
> solution.  My ITK is 2.0.0 from February 2005, running on Windows XP. 
> When I run this example, the code raises the following exception at: 
> deformableModelFilter->Update();
> 
>  
> 
> “Unhandled exception at 0x00473991 in DeformableModel1.exe: 0xC00000005: 
> Access violation reading location 0x00000034”
> 
>  
> 
> My inputs are:
> 
>  
> 
> * InputImage
> 
>  
> 
> analyze.hdr
> 
> NDims = 3
> 
> DimSize = 512 512 40
> 
> ElementSpacing = 0.388672 0.388672 2
> 
> Position = 0 0 0
> 
> ElementByteOrderMSB = 0
> 
> ElementType = MET_UCHAR
> 
> HeaderSize = -1
> 
> ElementDataFile = analyze.img
> 
>  
> 
> * BinaryImage
> 
>  
> 
> mask.mhd
> 
> NDims = 3
> 
> DimSize = 512 512 40
> 
> ElementSpacing = 0.388672 0.388672 2
> 
> Position = 0 0 0
> 
> ElementByteOrderMSB = 0
> 
> ElementType = MET_UCHAR
> 
> HeaderSize = -1
> 
> ElementDataFile = mask.raw
> 
>  
> 
>  
> 
> The output I get until the exception is raised is:
> 
> **************************************************************************************************************************************
> 
> The gradient map created!
> 
> Creating mesh...
> 
> Mesh (013B78D8)
> 
>   RTTI typeinfo:   class itk::Mesh<double,3,class 
> itk::DefaultStaticMeshTraits<double,3,3,float,float,double> >
> 
>   Reference Count: 2
> 
>   Modified Time: 424
> 
>   Debug: Off
> 
>   Observers: none
> 
>   Source: (013B53C8)
> 
>   Source output index: 0
> 
>   Release Data: Off
> 
>   Data Released: False
> 
>   Global Release Data: Off
> 
>   PipelineMTime: 415
> 
>   UpdateMTime: 425
> 
>   Number Of Points: 0
> 
>   Requested Number Of Regions: 1
> 
>   Requested Region: 0
> 
>   Buffered Region: 0
> 
>   Maximum Number Of Regions: 1
> 
>   Number Of Points: 0
> 
>   Number Of Cell Links: 0
> 
>   Number Of Cells: 0
> 
>   Size of Cell Data Container: 0
> 
>   Number of explicit cell boundary assignments: 3
> 
>   CellsAllocationMethod: 3
> 
> Deformable mesh created using Marching Cube!
> 
> Deformable mesh fitting…
> 
>    
> 
>    
> 
> If anyone could help me resolve this issue, I would really appreciate it.
> 
>  
> 
> Akiko
> 
> 
> --
> No virus found in this outgoing message.
> Checked by AVG Anti-Virus.
> Version: 7.0.308 / Virus Database: 266.7.3 - Release Date: 2005-03-15
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users

-- 
===========================================================
Dr. Stephen R. Aylward
Associate Professor of Radiology
Adjunct Associate Professor of Computer Science and Surgery
http://caddlab.rad.unc.edu
aylward at unc.edu
(919) 966-9695


More information about the Insight-users mailing list