col halfw c halfw row halfh r halfh dpointd row halfh dpointu row halfh dpointl col halfw dpointr col halfw dneighbor dil image dpointd dpointu dpointl dpointr filter dneighbor se extractmax row col max filter end end imwrite extractmax scene diljpg end syntaxhighlight denoising picture dilation method '''erosion''' align center math begin bmatrix end bmatrix math use matlab erosion syntaxhighlight lang matlab imwrite image 'scene erojpg' extractmin
Formal science Computer science Computer graphics Image processing