[Insight-users] CastImageFilter Error

Bill Lorensen bill.lorensen at gmail.com
Tue Jul 10 13:59:09 EDT 2012


Please provide a self-contained, compilable example that illustrates the
problem.

Thanks,

Bill

On Tue, Jul 10, 2012 at 12:43 PM, ariel <curiale at gmail.com> wrote:

> Hi,
>
> I've had some troubles after xcode update (from 4.1 to 4.3.3).
>
> When I compiled ITK-3.20.1 I had too many warnings like this:
> InsightToolkit-3.20.1/Utilities/vxl/core/vnl/vnl_math.h:86:36: warning:
> in-class initializer for static data member of type 'const double' is a GNU
> extension [-Wgnu] static VNL_DLL_DATA const double e
> VCL_STATIC_CONST_INIT_FLOAT_DECL(2.7182818284590452354);
>
>
>
> Second, I made a simple program  and I can't explain why this code exit
> with
> segmentation fault:
>
> typedef itk::CastImageFilter < MovingImageType, InternalImageType >
> MovingCasterType;
>         MovingCasterType::Pointer movingImageCaster =
> MovingCasterType::New();
>         movingImageCaster->SetInput( movingImageReader->GetOutput() );
>
>
>         std::cout<<"0"<<std::endl;
>         try
>         {
>         movingImageCaster->Update();
>          }
>           catch( itk::ExceptionObject & err )
>                 {
>                 std::cout << "ExceptionObject caught !" << std::endl;
>                 std::cout << err << std::endl;
>                 return -1;
>                 }
>
>
>
> The input of the caster filter is:
>
> Image (0x7fc201cda600)
>   RTTI typeinfo:   itk::Image<double, 2u>
>   Reference Count: 3
>   Modified Time: 307
>   Debug: Off
>   Observers:
>     none
>   Source: (0x7fc201cde1f0)
>   Source output index: 0
>   Release Data: Off
>   Data Released: False
>   Global Release Data: Off
>   PipelineMTime: 179
>   UpdateMTime: 308
>   LargestPossibleRegion:
>     Dimension: 2
>     Index: [0, 0]
>     Size: [800, 600]
>   BufferedRegion:
>     Dimension: 2
>     Index: [0, 0]
>     Size: [800, 600]
>   RequestedRegion:
>     Dimension: 2
>     Index: [0, 0]
>     Size: [800, 600]
>   Spacing: [1, 1]
>   Origin: [0, 0]
>   Direction:
> 1 0
> 0 1
>
>   IndexToPointMatrix:
>   1 0
> 0 1
>
>   PointToIndexMatrix:
>   1 0
> 0 1
>
>   PixelContainer:
>     ImportImageContainer (0x7fc201cde360)
>       RTTI typeinfo:   itk::ImportImageContainer<unsigned long, double>
>       Reference Count: 1
>       Modified Time: 306
>       Debug: Off
>       Observers:
>         none
>       Pointer: 0x108d15000
>       Container manages memory: true
>       Size: 480000
>       Capacity: 480000
>
>
> Thanks,
> Ariel.
>
> --
> View this message in context:
> http://itk-insight-users.2283740.n2.nabble.com/CastImageFilter-Error-tp7580458.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> 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.php
>
> 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
>



-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20120710/cc3124db/attachment.htm>


More information about the Insight-users mailing list