Fuzzy Logic

### Example 9: Image Processing

Problem. The table shows the gray levels values for an 8-bit image associated with an array of 25 pixels. Use the enhancement function on this image to recognize the pattern in the image.

Solution. An image R of m × n dimensions can be considered as an array of fuzzy singletons, each with a value of membership denoting the gray level in the image.  The object of contrast enhancement is to process a given image so that the result is more suitable than the original for a specific application in pattern recognition We will demonstrate enhancement of the image shown in the next figure. First, let's add a function to Fuzzy Logic.

Now, we can plot the image.

In general, each membership value in fuzzyimage will be modified to a new membership value to enhance the image by the transformation function Contrast. The IntensifyContrast operator applies a Contrast function and intensifies the contrast between the gray levels in the image. As the number of successive applications of the IntensityContrast increases, the slop of the curve gets steeper.

The graphical effect of this recursive transformation for a typical membership function is shown in the next figure where the number of successive applications of the IntensifyContrast function increases from one to three.

After the original image is processed  by the IntensityContrast operator several times, it is undoubtedly more suitable for the subsequent pattern recognition and classification.  We hope you recognize the pattern in the image. This is a letter A.