[Insight-users] Re: Logical Operator Filters
Luis Ibanez
luis.ibanez at kitware.com
Wed Jan 18 12:12:55 EST 2006
Hi Alma,
Yes,
ITK has a set of logical operator filters.
I presume that you are planning to apply these operators
on binary images. In that case, they are equivalent to
operations such as AND, OR, and XOR.
Please look at the following filters:
AndImageFilter
http://www.itk.org/Insight/Doxygen/html/da/de7/classitk_1_1AndImageFilter.html
OrImageFilter
http://www.itk.org/Insight/Doxygen/html/d4/ddb/classitk_1_1OrImageFilter.html
XorImageFilter
http://www.itk.org/Insight/Doxygen/html/d6/d98/classitk_1_1XorImageFilter.html
They are derived from the BinaryFunctorImageFilter, and it is
relatively easy to create new ones if you find that there are
logical operators that you need but are missing from ITK.
In practice you only need to write the Functor that defines the
operation to be applied on all the pixel pairs, then you instantiate
the BinaryFunctorImageFilter using that new Functor.
Please let us know if you have other questions,
Thanks,
Luis
--------------------------------
Alma Rosas Rugerio Ramos wrote:
> Hello
>
>
> One quesion, does ITK have any library to use the logical operatores, such as
> intersection, union, difference?
>
>
> I hope you can answer me, Thanks
>
>
>
More information about the Insight-users
mailing list