ImageAnd

Author : Melanie Rhianna Lewis
Input Type : TrianaPixelMap
Output Type : TrianaPixelMap
Date :

ImageAnd is a binary operator. A binary operator is one which takes data from two images and generates a third image. It does this by taking the value of the corresponding pixels in each of the two input images and combining the values using some operator to generate the apropriate pixel in the third image. Both input images must have the same dimensions.

ImageAdd ANDs the red values, green values and blue values for the two input images to generate a new image. Mathematically it can be expressed as follows:


    rr(i, j) = r1(i, j) AND r2(i, j)
    gr(i, j) = g1(i, j) AND g2(i, j)
    br(i, J) = b1(i, j) AND b2(i, j)
And example using this unit is:

This network isolates all pixels with intensities greater than a defined value. It works by taking two copies of the image. It then uses ToGreyScale to general a grey scale image and then uses Threshold to generate a black and white image where all pixels of intensity higher than the defined value are white and all others are black. It then uses this image, together with ImageAnd, as a 'cookie cutter' on a colour version of the image. Typical results are:

Before operation After operation

See also

ImageAdd, ImageDiff, ImageOr, ImageXor