Demo: use fuzzyhub service to control image opacity
A band pass filter is implemented as a simple fuzzy contoller. Change the slider value below to change the image opacity.
Input variable x is the slider position in range [0,1]. The variable terms are defined in terms low, middle, high.
Output variable y is defined in terms low and high in range [0,1].
The fuzzy system implements two rules:
low: x is low or x is high,
high: x is middle.
How it works
As user changes the ruler thumb position, a fuzzy controller service is queried, how according to the rules the output variable changes. The output variable is then translated to image opacity, which can be observed by user. Obviously, the maximum image opacity is reached as the slider value is 0.5.