extract minimum window row range image height column range image width fill minimum value zero matrix save new image boundary still improved since method boundary ignored padding elements applied deal boundaries erosion take dilation image input create zero matrix size original image erosion structuring window structuring window matrix convolution loop
Formal science Computer science Computer graphics Image processing