NGHỆ THUẬT
LÀM ĐẸP VÀ SỨC KHỎE
THỦ CÔNG
VĂN HÓA VÀ LỊCH SỬ
GIẢI TRÍ
MÔI TRƯỜNG
THỰC PHẨM VÀ ĐỒ UỐNG
KỸ THUẬT NGƯỢC
KHOA HỌC
THỂ THAO
CÔNG NGHỆ
THIẾT BỊ ĐEO
Error Diffusion
Mark

Tạo bởi

Mark

30. tháng Tám 2026FI
0
0
0
0
0

Error Diffusion

A photographic halftone screen makes grey by varying how BIG each dot is, on a fixed grid. That works because an emulsion will give you any dot size you ask for. A laser printer and an inkjet will not: they have one dot, the smallest they can make, and it is either there or it is not. So the arrangement has to be turned round. Keep the dot size fixed and vary HOW MANY, and now the question is which pixels get one. Simply rounding each pixel to black or white throws away up to half a level every time and the picture collapses into two tones. Robert Floyd and Louis Steinberg published the fix in 1976, and it is four lines long. Round the pixel. Subtract what you actually printed from what was asked for. Hand that difference forward to the four neighbours you have not decided yet, in the proportions seven, three, five and one sixteenths. The error is never discarded, only moved somewhere the eye will average it away - so a region that has been printing slightly too dark accumulates a debt that forces the next pixel white. The cost is one row of buffer and four additions per pixel, which is why it went straight into printer firmware and stayed there. The signature is worms: at middle greys the dots chain into short drifting diagonals, because the debt travels the same way every time. A halftone screen fails by beating against another screen; error diffusion fails by growing worms, and no screen angle can fix that.
Trung cấp
3 hours

Hướng dẫn

1

Diffuse the error by hand

Rule a strip of eight squares on graph paper and write a grey level from 0 to 10 in each - a ramp, say, 1 2 3 4 5 6 7 8. Work left to right. If the value is above 5, fill the square and subtract 10; otherwise leave it and subtract 0. Carry the remainder into the next square before you judge it. Eight squares in, count the filled ones: it will match the average you started with. You are the algorithm.

Vật liệu cho bước này:

Graph PaperGraph Paper4 tờ

Công cụ cần thiết:

Graphite Pencil SetGraphite Pencil Set
Steel Ruler (30cm)Steel Ruler (30cm)
2

Print all three and walk backwards

Print the same photograph three times at 1 bit per pixel: thresholded, ordered-dithered, and error-diffused. Pin them up and walk away, measuring the distance at which each stops looking like dots and starts looking like a photograph. Then go back with the loupe and find the repeating tile in the ordered print and the worms in the diffused one.

Vật liệu cho bước này:

PaperPaper6 tờ

Công cụ cần thiết:

Desktop ComputerDesktop Computer
Magnifying Loupe (10x)Magnifying Loupe (10x)
Tape MeasureTape Measure
3

Three renderings measured, and four ways to fake a grey

Loading Jupyter Notebook...

Công cụ cần thiết:

Desktop ComputerDesktop Computer
4

Compendium: why the weights are 7, 3, 5, 1

The four weights are not arbitrary and they are not optimal either. They sum to sixteen so the division is a shift, they are biased forwards and down because those are the pixels not yet decided in raster order, and the 7 dominates because the pixel immediately to the right is the one the eye will average with most strongly. Jarvis-Judice-Ninke spread the error over twelve neighbours two rows deep and Stucki over twelve with a divisor of 42; both reduce worms and both cost two row buffers instead of one. In 1976, on a printer controller, one row buffer was the entire argument. Two failure modes are worth recognising in a real implementation. The first pixels of the image have no accumulated error, so a flat light region starts with a visible clean patch before the pattern establishes - printing rows alternately left-to-right and right-to-left, called serpentine order, breaks up both that and the diagonal drift. And error diffusion applied to each colour separately lets the four channels agree by accident and clump, so colour printers either diffuse the channels jointly or add a small random jitter to the threshold. Neither problem exists for a halftone screen, which is why it survived in offset printing long after this became the right answer everywhere else.

Công cụ cần thiết:

Notebook and PencilNotebook and Pencil

Vật liệu

2

Công cụ yêu cầu

6

CC0 Phạm vi công cộng

Bản thiết kế này được phát hành theo CC0. Bạn tự do sao chép, sửa đổi, phân phối và sử dụng cho bất kỳ mục đích nào mà không cần xin phép.

Hỗ trợ nhà sáng tạo bằng cách mua sản phẩm qua bản thiết kế, nơi họ nhận Hoa hồng nhà sáng tạo do nhà bán hàng đặt, hoặc tạo phiên bản mới và kết nối trong bản thiết kế riêng để chia sẻ doanh thu.

Thảo luận

(0)

Đăng nhập để tham gia thảo luận

Đang tải bình luận...