<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1555" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Dear All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I got a memory allocation problem, please see the
copied error message below. I would be very grateful if anyone could help me
solve this problem.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>My data:</FONT></DIV>
<DIV><FONT face=Arial size=2>Dimension: 512x512x277</FONT></DIV>
<DIV><FONT face=Arial size=2>Pixel Type: signed short</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Operation: Generate the edge map of the input image
using CannyEdgeDetectionImageFilter</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Code snippet:</FONT></DIV>
<DIV><FONT face=Arial size=2>CastToReal->SetInput( inputImage );
<DIV>cannyFilter->SetInput( CastToReal->GetOutput()
);<BR>cannyFilter->SetVariance( 0.5 );</DIV>
<DIV>cannyFilter->SetLowerThreshold( 255 );</DIV>
<DIV>cannyFilter->SetUpperThreshold( 90 );<BR>cannyFilter->Update();</DIV>
<DIV> </DIV>
<DIV>rescaleToChar->SetOutputMinimum( NumericTraits< CharPixelType
>::min() );<BR>rescaleToChar->SetOutputMaximum( NumericTraits<
CharPixelType >::max() );<BR>rescaleToChar->SetInput(
cannyFilter->GetOutput() );<BR>rescaleToChar->Update();</DIV>
<DIV> </DIV>
<DIV>An error occured at runing the line "rescaleToChar->Update();", the
error message is as the following.</DIV>
<DIV> </DIV></FONT></DIV>
<DIV><FONT face=Arial
size=2>----------------------------------------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2>itk::ExceptionObject (0138F9D8)<BR>Location:
"ImportImageContainer::AllocateElements"<BR>File:
C:\Librabries\InsightToolkit-2.4.1\InsightToolkit-2.4.1\Code\Common\itkImp<BR>ortImageContainer.txx<BR>Line:
186<BR>Description: Failed to allocate memory for image.</FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2>
<DIV><BR>Caught an ITK exception at executing registration app.</DIV>
<DIV> </DIV>
<DIV>itk::ExceptionObject (0138F9D8)<BR>Location:
"ImportImageContainer::AllocateElements"<BR>File:
C:\Librabries\InsightToolkit-2.4.1\InsightToolkit-2.4.1\Code\Common\itkImp<BR>ortImageContainer.txx<BR>Line:
186<BR>Description: Failed to allocate memory for image.</DIV>
<DIV>-------------------------------------------------------------------------------------------------------------------------------------------------</DIV>
<DIV> </DIV>
<DIV>Many thanks in advance.</DIV>
<DIV> </DIV>
<DIV>Yan</DIV></FONT></BODY></HTML>