Research Article

Two-Dimensional Fuzzy Spatial Relations: A New Way of Computing and Representation

Algorithm 1

Algorithm for defuzzification of 2D fuzzy topological and directional relations.
for to 8 do
if then
  topological relation is overlap and directional relation is
  
else if then
  topological relation is TPP and directional relation is
else if then
  topological relation is TPPI and directional relation is
else if all are approximately equal for all then
  topological relation will be NTPP
else if all are approximately equal for all then
  topological relation is NTPPI
else if all are approximately equal for all then
  topological relation will be EQ
else if then
  topological relation is meet and directional relation is
else
  topological relation is Disjoint and directional relation is
end if
end for