close

In image processing, the 'blur'function can be done by averaging from surrounding points.
The following 6-by-6 is used to represent the letter 'O'.
Please store the representation in an array.
When the element is empty, make the value as 0.
When the element is marked as 'O', store the value as '1'.



When you blur the array once, you actually make average between the point and the surrounding points, and store the new value into a new array.
Some rules should be able gound in the following array.



When reshow the blurred array, use 'O' if the value is between 0.8 to 1, use 'o' if the value is between 0.5 to 0.7, use '.' if the value is between 0.2 to 0.4, and use ' ' if the value is between 0 and 0.1.



這根本就是惡夢
希望有高人可以救命


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 戲言 的頭像
    戲言

    戲言

    戲言 發表在 痞客邦 留言(2) 人氣()