This image also uses only four shades of gray (black, dark gray, light gray, white), but it adds full error-diffusion dithering support
Our final algorithm is perhaps the strangest one of all. Like the previous method, it allows the user to specify any value in the [2,256] range, and the algorithm will automatically calculate the best spread of grayscale values for that range. However, this algorithm also adds full dithering support.
What is dithering, you ask? In image processing, dithering uses optical illusions to make an image look more colorful than than it actually is. Dithering algorithms work by interspersing whatever colors are available into new patterns - ordered or random - that fool the human eye into perceiving more colors than are actually present. If that makes no sense, take a look at this gallery of dithered images.
There are many different dithering algorithms. The one I provide is one of the simpler error-diffusion mechanisms: a one-dimensional diffusion that bleeds color conversion errors from left to right.
If you look at the image above, you'll notice that only four colors are present - black, dark gray, light gray, and white - but because these colors are mixed together, from a distance this image looks much sharper than the four-color non-dithered image under Method #6. Here is a side-by-side comparison:
ภาพนี้ยังใช้เพียงสี่เฉดสีเทา ( สีดำ , เทาอ่อน , เทา , ขาว ) แต่มันเพิ่มการสนับสนุน dithering กระจายเต็มข้อผิดพลาดขั้นตอนสุดท้ายของเราอาจจะแปลก ๆหนึ่งของทั้งหมด ชอบวิธีการก่อนหน้านี้ , มันช่วยให้ผู้ใช้เพื่อระบุค่าใด ๆ ในช่วง 2256 [ ] , และขั้นตอนวิธีที่ดีที่สุดโดยอัตโนมัติจะคำนวณการแพร่กระจายของสีเทาค่าสำหรับช่วงที่ อย่างไรก็ตาม วิธีนี้ยังเพิ่มการเกลี่ยสีแบบเต็มสนับสนุนอะไรคือการเกลี่ยสี คุณถาม ในการประมวลผลภาพ การเกลี่ยสีใช้ภาพลวงตาทำให้ภาพดูมีสีสันมากขึ้นกว่าที่เป็นจริง . ขั้นตอนวิธีการทำงานโดย interspersing ใด dithering สีที่มีอยู่ในรูปแบบใหม่ - สั่งหรือแบบสุ่ม -- ที่หลอกสายตามนุษย์ในการรับรู้มากกว่าสีมากกว่าที่เป็นจริงในปัจจุบัน ถ้าไม่มีเหตุผล ดูนี่สิ dithered ของแกลเลอรี่ภาพมีหลายสัญลักษณ์ อัลกอริทึม หนึ่งที่ผมให้เป็นหนึ่งในข้อผิดพลาดที่เรียบง่าย : มิติ กลไกการแพร่กระจายเลือดออกผิดแปลงสีจากซ้ายไปขวาถ้าคุณดูที่รูปข้างบน คุณจะสังเกตเห็นว่าเพียงสี่สีปัจจุบัน - สีดำ , สีเทาเข้ม , สีเทาอ่อน และสีขาว แต่เพราะสีเหล่านี้ผสมกัน จากระยะไกล ภาพนี้ดูคมชัดมากกว่า ไม่ dithered สี่สีภาพตามวิธีการ # 6 นี่เป็นด้านข้างโดยการเปรียบเทียบ :
การแปล กรุณารอสักครู่..
