[ITK] [ITK-users] Setting constants in ternary functor filters
jmerkow
jmerkow at gmail.com
Fri Jan 16 12:20:12 EST 2015
Ahhh, I see. You have an if-else block that checked for NULL pointers, and
then call GetConstant on the null pointer.
I guess I misunderstood the decorated data object for pixel types. I
thought that they were constant images, so that GetPixel returns the
constant at all locations. I re-read [1] more carefully and see my mistake.
Im going to switch to the unary functor, but is there a constant image class
like Im describing? It would be an easy way to set constants for functors
(or anything) without wasting memory by CreateImage -> Fill.
Thanks for your help!
-Jameson
--
View this message in context: http://itk-users.7.n7.nabble.com/Setting-constants-in-ternary-functor-filters-tp35125p35132.html
Sent from the ITK - 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://public.kitware.com/mailman/listinfo/insight-users
More information about the Community
mailing list