Group 13 Fuzzy Techniques in Image Processing
Group 13 Fuzzy Techniques in Image Processing
Group 13 Fuzzy Techniques in Image Processing
processing
Team Memebers
Sai 21MIP10013
Rakesh 21MIP10015
Shivam 21MIP10033
Mj Sumedh 21BAI10282
Ankit 21BAI10409
PRESENTATION FLOW
1.Introduction to Fuzzy logic
1.1 Fuzzy Sets
1.2 Fuzzy Infrence System
2 Fuzzy Image Processing Model
3 Applications
3.1 Noise Detection and Removal
3.2 Edge detection
3.3 Contrast Enahancement
Fuzzy Sets
Fuzzy set theory is the extension of conventional (crisp) set
theory
Instead of just black and white, the color belonging to a set has
degree of whiteness &blackness
Fuzzy Sets contnd..
You can see that in fuzzy set H, graph the values are
from [0,1] but in crisp set it is 0 or 1 only.
Fuzzy Sets contnd..
Components of FIS:
1.Fuzzification.
2.Knowledge Base.
3.Infrence Engine.
4.Fuzzy logic Operations.
Fuzzy Infrence System Contnd.
Fuzzy Infrence System Contnd.
Fuzzy Infrence System Contnd.
🞂Rules
If x is A1 and y is B1 then z is C1
If x is A2 and y is B2
then z is C2
Fuzzy Logic in Image Processing
1.Introduction to image processing and its significance
across various fields:
Collecting scikit-fuzzy
Downloading scikit-fuzzy-0.4.2.tar.gz (993 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 994.0/994.0 kB 11.1 MB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy>=1.6.0 in /usr/local/lib/python3.10/dist-packages (from scikit-fuzzy) (1.25.2)
Requirement already satisfied: scipy>=0.9.0 in /usr/local/lib/python3.10/dist-packages (from scikit-fuzzy) (1.11.4)
Requirement already satisfied: networkx>=1.9.0 in /usr/local/lib/python3.10/dist-packages (from scikit-fuzzy) (3.2.1)
Building wheels for collected packages: scikit-fuzzy
Building wheel for scikit-fuzzy (setup.py) ... done
Created wheel for scikit-fuzzy: filename=scikit_fuzzy-0.4.2-py3-none-any.whl size=894078 sha256=3da63d9c193f372afb5176cd1ef48c092adf735eafc55a5f17a784df9feb7816
Stored in directory: /root/.cache/pip/wheels/4f/86/1b/dfd97134a2c8313e519bcebd95d3fedc7be7944db022094bc8
Successfully built scikit-fuzzy
Installing collected packages: scikit-fuzzy
Successfully installed scikit-fuzzy-0.4.2
1 import numpy as np
2 import matplotlib.pyplot as plt
3 from skimage import io
4 from scipy.signal import convolve2d
5 from skfuzzy import gaussmf, trimf, defuzz, interp_membership
6 from skfuzzy.control import ControlSystem, ControlSystemSimulation, Antecedent, Consequent
7
1 import skfuzzy.control
2
3 # Check if the Rule class is present in the skfuzzy.control module
4 if 'Rule' in dir(skfuzzy.control):
5 print("Rule class found in skfuzzy.control module.")
6 else:
7 print("Rule class not found in skfuzzy.control module.")
8
output
1 plt.figure()
2 plt.imshow(Iy, cmap='gray')
3 plt.title('Iy')
4 plt.show()
keyboard_arrow_down Create Fuzzy Logic system for edge detection
1 edgeFIS = ControlSystem()
keyboard_arrow_down Create the ControlSystem object with rules defined and Create simulation object
1 edgeFIS = ControlSystem([rule1, rule2])
2
3 # Create simulation object
4 edgeControlSystem = ControlSystemSimulation(edgeFIS)