[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.
More information about the Insight-users
mailing list