[ITK] ITK LaplacianRecursiveGaussianImageFilter Example

Jeanna S. jeannasheen at gmail.com
Mon Aug 8 13:27:29 EDT 2016


Alright, now the example works after I switched BUILD_SHARED_LIBS to OFF.
Thanks for your help.

Jeanna

On Mon, Aug 8, 2016 at 9:41 AM, Dženan Zukić <dzenanz at gmail.com> wrote:

> The best way to fix that is by not using dynamic libraries. When
> configuring ITK with CMake make sure that BUILD_SHARED_LIBS is OFF.
>
> Regards,
> Dženan
>
> On Mon, Aug 8, 2016 at 12:38 PM, Jeanna S. <jeannasheen at gmail.com> wrote:
>
>> Hello Dženan,
>>
>> Thanks for your reply. Would you happen to know any way to fix the error,
>> if it is in fact caused by version mixing?
>>
>> Jeanna
>>
>> On Mon, Aug 8, 2016 at 6:08 AM, Dženan Zukić <dzenanz at gmail.com> wrote:
>>
>>> Hi Jeanna,
>>>
>>> you can safely ignore "libpng warning: iCCP: known incorrect sRGB
>>> profile".
>>>
>>> LaplacianRecursiveGaussianImageFilter works for me:
>>> [image: Inline image 1]
>>>
>>> I am not a Mac user, but your error stinks of version mixing: either the
>>> ITK libraries in your path are a different version from the one your
>>> program is compiled with, or have been compiled with a different compiler
>>> version (this is sometimes a problem with Visual Studio versions).
>>>
>>> Regards,
>>> Dženan
>>>
>>> On Mon, Aug 8, 2016 at 12:44 AM, Jeanna S. <jeannasheen at gmail.com>
>>> wrote:
>>>
>>>> Hello,
>>>>
>>>> I am trying to run the ITK LaplacianRecursiveGaussianImageFilter
>>>> Example (here
>>>> <https://itk.org/Wiki/ITK/Examples/EdgesAndGradients/LaplacianRecursiveGaussianImageFilter>),
>>>> but I keep getting this error:
>>>>
>>>> libc++abi.dylib: terminating with uncaught exception of type
>>>> itk::ExceptionObject: /Users/JJ/Desktop/ITKstuffs/IT
>>>> K/Modules/Core/Common/include/itkImageBase.hxx:326:
>>>>
>>>> itk::ERROR: Image(0x7fd8a4970e70): itk::ImageBase::CopyInformation()
>>>> cannot cast PKN3itk10DataObjectE to PKN3itk9ImageBaseILj2EEE
>>>>
>>>> I also once got this error:
>>>>
>>>> libpng warning: iCCP: known incorrect sRGB profile
>>>>
>>>> followed by the above error.
>>>>
>>>> Does anybody know why this error is happening and/or can provide an
>>>> image that will work with the example?
>>>>
>>>> Thanks in advance.
>>>>
>>>> _______________________________________________
>>>> Community mailing list
>>>> Community at itk.org
>>>> http://public.kitware.com/mailman/listinfo/community
>>>>
>>>>
>>>
>>
>>
>> --
>> when the rich wage war, it's the poor who die
>>
>
>


-- 
when the rich wage war, it's the poor who die
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160808/ea749b2f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot 2016-08-08 09.05.38.png
Type: image/png
Size: 220650 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20160808/ea749b2f/attachment-0001.png>


More information about the Community mailing list