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.
這根本就是惡夢
希望有高人可以救命
- May 05 Sat 2007 00:54
程式
close
全站熱搜
留言列表