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

elena bresciani elena.bresciani87 at gmail.com
Thu Jul 17 08:43:46 EDT 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140717/43f16c58/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TEST.jpg
Type: image/jpeg
Size: 3641 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20140717/43f16c58/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testFunzioni.cxx
Type: text/x-c++src
Size: 1895 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20140717/43f16c58/attachment-0001.cxx>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TEST_out.jpg
Type: image/jpeg
Size: 17543 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/community/attachments/20140717/43f16c58/attachment-0003.jpg>
-------------- next part --------------
_____________________________________
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


More information about the Community mailing list