Re: Fix for 687403 Poor halftoning for 16 color (4bit) devices

"Igor V. Melichev" <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Message-ID <[email protected]>
Dan,

> From: "Igor V. Melichev" <[email protected]>
> To: <[email protected]>; "Gs-Code-Review" <[email protected]>
> Sent: Tuesday, April 06, 2004 11:23 AM
> Subject: Re: [gs-code-review] Fix for 687403 Poor halftoning for 16 color (4bit) devices xefitra


> 1. k = max (min(r,g), min(g,b), min(r,b));
> 2. ucr = (000 ? 111/3 : 111 ? 11*2/3 : [max(0,r-k),max(0,g-k),max(0,b-k)])

This formula appears wrong, but there exists a better one.
Actually a better space for this is RGBL, where L is a lightness (l == 1-k).

Igor.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.