Research Article

Automatic Liver Segmentation from CT Images Using Single-Block Linear Detection

Pseudocode 1

Pseudocode of median filtering algorithm.
Input: window, InputImage
Output: OutImage
image height, image width = size (InputImage)
window height, window width = size (window)
= floor  (window width/2)
= floor (window height/2)
for = )
 for = )
  
  for
   for
      window () = InputImage ()
      
   end
  end
  window = sort (window)
  OutImage () = window (window width window height/2)
 end
end