Page 137 -
P. 137

Chapter 3 ■ Digital Morphology   111


                                 OPERATOR     LEFT       RIGHT     RESULT    DESCRIPTION

                                 <>           pixel      pixel     int       Not equal, pixels.
                                 =            image      image     int       Are LEFT and RIGHT equal?

                                 =            int        int       int       Integer equality.
                                 =            pixel      pixel     pixel     Pixel equality.
                                 =            image      int       int       Are all pixels in the image
                                                                             equal to the given integer?

                                 -            image      image     image     Set difference, LEFT-RIGHT.
                                 -            int        int       int       Integer subtraction.
                                 -            pixel      pixel     pixel     Vector subtraction.

                                 +            image      image     image     Union of images LEFT and
                                                                             RIGHT.
                                 +            int        int       int       Integer addition.

                                 +            pixel      pixel     pixel     Vector addition.
                                 +            image      pixel     image     Add a pixel to an image (set
                                                                             value).
                                 +            pixel      image     image     Add a pixel to an image (set
                                                                             value).
                                 *            image      image     image     Intersection of LEFT and
                                                                             RIGHT.

                                 *            int        int       int       Integer multiplication.
                                 <<           image      string    image     Read an image from a PBM
                                                                             format file named by the
                                                                             string.
                                 <<           int        string    int       Read an integer.
                                 <<           pixel      string    pixel     Read a pixel (2 ints).

                                 >>           image      string    image     Write an image to a PBM
                                                                             format file named by the
                                                                             string.

                                 >>           int        string    int       Write an integer.
                                 >>           pixel      string    pixel     Write a pixel (2 ints).
                                 ->           image      pixel     image     Translate the image by the
                                                                             pixel.
   132   133   134   135   136   137   138   139   140   141   142