原圖

原圖平滑化後

原圖銳利化後

原圖

先灑點正常胡椒鹽

灑上黑、灰、白色胡椒鹽

再加點芥末粉..


中值濾波後

心得:
平滑化-
平滑化主要用在減少雜訊,平滑化後的每一點可以是將原圖周圍8個像素點和自己的像素點相加除以9所得到的標準平均值,或是將原圖周圍8個像素點和自己的像素點以不同的係數相乘所得到的權重平均值。
銳利化-
銳利化主要用在使圖片模糊的地方變清晰,銳利化的每一個點是將周圍幾(4~5)個點的像素點乘以(-1)加上自己4~5倍所得到的像素點。
中值濾波後-
中值濾波相較於平滑化處理,不但可以將雜訊去除,也不會改變影像像素值的結構。
中值濾波是將九宮格的色彩值做排序後取中位數,再回原本的點。
這次作業拖了好久..,終於交出去了,這次學習到許多影像濾波器,知道了平常修圖的功能是怎麼運算的,灑胡椒鹽時我直接random(1000),iRandomNumber<=1和>1&<=2,要不然都灑太多了,義大利麵看起來變好噁心..,後來中值濾波後改變太少,又調回來了,調來調去連顏色都改了,希望下次作業程式也能讓我玩得很開心,我很期待三D的作業,現在也都跟上進度了。
沒有留言:
張貼留言