[Insight-users] DanielssonDistanceMapImageFilter 4.1 broken
Bill Lorensen
bill.lorensen at gmail.com
Thu Jun 14 15:48:23 EDT 2012
Are you using cmake to configure your project.
If so, you should do something like this in your CMakeLists.txt file:
FIND_PACKAGE(ITK REQUIRED)
INCLUDE(${ITK_USE_FILE})
On Thu, Jun 14, 2012 at 2:59 PM, Karl <bulkmailaddress at gmail.com> wrote:
> Bill,
> I thought if I wanted the imageIO to be automatically detected based on file
> extension then some flag or something needed set at build time.
> I didn't take this extra step so I need to manually specify the imageIO.
> Karl
>
> -----Original Message-----
> From: Bill Lorensen [mailto:bill.lorensen at gmail.com]
> Sent: Thursday, June 14, 2012 2:48 PM
> To: bulkmailaddress at gmail.com
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] DanielssonDistanceMapImageFilter 4.1 broken
>
> Karl,
> In general the Examples do not have try/catch blocks, just to keep them
> short.
>
> You should not have to set the imageio manually.
>
> Bill
>
> On Thu, Jun 14, 2012 at 12:43 PM, Karl <bulkmailaddress at gmail.com> wrote:
>> Bill,
>> Upon further exploration the example was crashing because of the IO
>> not being set on the reader and writers. Manually setting the ImageIO
>> resolved the issue. As a side note in this example not all updates
>> are wrapped inside the try catch so exceptions are not being properly
> caught.
>> Additional probing lead me to discover the issue with my code was an
>> error allocating memory within the filter. Use of the filter pushed
>> me above my 2GB limit.
>> Thanks for the help.
>>
>> -----Original Message-----
>> From: Bill Lorensen [mailto:bill.lorensen at gmail.com]
>> Sent: Wednesday, June 13, 2012 8:39 PM
>> To: bulkmailaddress at gmail.com
>> Cc: insight-users at itk.org
>> Subject: Re: [Insight-users] DanielssonDistanceMapImageFilter 4.1
>> broken
>>
>> Works for me. When you say it crashes, are there any error messages?
>>
>> Please specify the command line you are using.
>>
>> On Wed, Jun 13, 2012 at 4:54 PM, Karl <bulkmailaddress at gmail.com> wrote:
>>> Hi,
>>>
>>> I have a working version of ITK 4.1. Have been using it for a while
>>> now without issues. Today I attempted to use
>>> DanielssonDistanceMapImageFilter and my application was crashing on
>>> the call to update. I couldn't figure out why so I went to the
>>> examples and found
>>> Examples\Filtering\DanielssonDistanceMapImageFilter.cxx. Upon
>>> running with the inputs given in the comments the example crashes as
>>> well on the
>> update line. Any ideas?
>>>
>>> Thanks
>>>
>>>
>>>
>>> _____________________________________
>>> 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
>>
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
--
Unpaid intern in BillsBasement at noware dot com
More information about the Insight-users
mailing list