Step 3: If Pij =0 or Pij =255 then check for next condition Step 4: If processing pixel is 0 or 255 & also surrounding all elements has same value then processing element is an information instead of noise as there is high co-relation between neighboring pixels so pixel value should keep as it was.