Professional Documents
Culture Documents
Focus
Focus
FUZZY INFERENCE
Objective
Fuzzy Rules
$ FILENAME: camera/af1.fil
$ DATE: 07/29/92
$ UPDATE: 08/06/92
$ FIU HEADER
fiu tvfi (min max) *8;
$ RULES
end
Input/Output Response
Now let us compile the FIU source code given above and use the
FIDE analyzer to see how this unit works. Figures 4a and 4b
provide two input/output response surfaces of the FIU. From
Figure 4a, we see that Plausibility_of_Center becomes high when
the distance at the center is around 10 meters, a distance we
defined to be Medium in the definition of input variables. It
becomes lower when the distance increases, especially when the
distance on the left is Medium. Figure 4b shows the
Plausibility_of_Left is high when the distance on the left is
around 10 meters. In this case, when the distance at the center
is about the same as that on the left, we choose center as the
desired object. The Plausibility_of_Right is similar to the
Plausibility_of_Left. The three outputs of the FIU are compared
to identify the point with highest plausibility. The distance
at this point is the focus distance. By adjusting the membership
functions of the distance labels, we can achieve different response
surfaces for different purposes.
COMMENTS