See figure 2.3.
The boolean functions perform boolean arithmetic on pairs of IM_BANDFMT_UCHAR images. They are useful for combining the results of the relational and morphological functions. You can use im_eorconst() with 255 as im_not().
IM_BANDFMT_UCHAR
im_eorconst()
im_not()