[ITK-users] Fwd: [ITK] Using C++ functions in ITK pipeline

elena bresciani elena.bresciani87 at gmail.com
Thu Jul 17 09:57:10 EDT 2014


Thank you very much Nicolas!

Cheers
Elena


2014-07-17 15:46 GMT+02:00 Nicolas Gallego <nicgallego at gmail.com>:

>
> Hi Elena,
> I compiled and tested your example code.
> I found that there was a conflict between the return of the function and
> the argument (output),
> also I think output allocation on the function is not necesary since you
> assign it a valid output.
> Here a version of your code that worked.
>
>
> Nicolás Gallego-Ortiz
> Université catholique de Louvain, Belgium
>
>
> 2014-07-17 14:43 GMT+02:00 elena bresciani <elena.bresciani87 at gmail.com>:
>
>>  Hello guys,
>>
>> I'm developing a really complicated pipeline and to avoid repetitions and
>> unreadeble code I thought of writing the different pieces of code as
>> functions, each with a single specific purpose.
>> Since I'm not really a C++ master I started with a very simple pipeline
>> (reader -> rescale intensity filter -> writer), where the rescale intensity
>> filter is in a separate function, outside the main().
>> The code compiles and it even runs but the output is not what it would
>> have to be.
>>
>> Can someone help me find where is the error?
>>
>> Attached you can find my code, a test image and the respective output.
>>
>> Thanks in advance
>>
>> Elena
>>
>> _____________________________________
>> 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://public.kitware.com/mailman/listinfo/insight-users
>>
>> _______________________________________________
>> Community mailing list
>> Community at itk.org
>> http://public.kitware.com/mailman/listinfo/community
>>
>>
>
>
> _____________________________________
> 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://public.kitware.com/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20140717/8d5db2c6/attachment.html>


More information about the Insight-users mailing list