Thread View: comp.lang.postscript
5 messages
5 total messages
Started by Jon Everett
Sun, 01 Nov 1992 21:22
halftoning spot function
Author: Jon Everett
Date: Sun, 01 Nov 1992 21:22
Date: Sun, 01 Nov 1992 21:22
21 lines
1224 bytes
1224 bytes
Question: Can anyone provide a decent explanation of how the 'spot function' works in halftoning? From what I have read in the Adobe Books, the function is supposed to take x,y coordinates of a pixel in the halftone cellbox as arguments. To me this is counter-intuitive. I would expect it to take a gray value as input and return the bitmap of the cellbox. Can anyone provide, or point me to, a fuller explanation of the spot function's operation and its palce in the larger context of halftoning? I would like to be able to explicitly define the order in which the pixels in a cellbox of a given size are turned on. -- ============================================== Jon Everett Univ. of Maine fishboy@gandalf.umcs.maine.edu
Re: halftoning spot function
Author: Koos Cazander
Date: Mon, 02 Nov 1992 10:34
Date: Mon, 02 Nov 1992 10:34
17 lines
1333 bytes
1333 bytes
Jon Everett (fishboy@gandalf.UMCS.Maine.EDU) wrote: : Question: : Can anyone provide a decent explanation of how : the 'spot function' works in halftoning? From what I have : ... See BYTE July 1990, pages 293,294,296,298,300,302 "PostScript Insider Secrets" by Don Lancaster ---------------------------------------------------------------------- -- If you want to send EMAIL, include a subject line in the header: -- -- 'Subject: <cazander:pasichva>' (without the quotes :-) -- -- and send it to 'serigate@phcoms.seri.philips.nl'. -- ---------------------------------------------------------------------- -- J. Cazander, Philips Electronic Design & Tools, The Netherlands. -- ----------------------------------------------------------------------
Re: halftoning spot function
Author: Rob Bradlee
Date: Mon, 02 Nov 1992 12:59
Date: Mon, 02 Nov 1992 12:59
42 lines
1901 bytes
1901 bytes
In article <1992Nov1.212253.16619@gandalf.UMCS.Maine.EDU> fishboy@gandalf.UMCS.Maine.EDU (Jon Everett) writes:
>
>Question:
>
>Can anyone provide a decent explanation of how
>the 'spot function' works in halftoning? From what I have
>read in the Adobe Books, the function is supposed to take
>x,y coordinates of a pixel in the halftone cellbox as arguments.
>To me this is counter-intuitive. I would expect it to take a
>gray value as input and return the bitmap of the cellbox.
>Can anyone provide, or point me to, a fuller explanation of
>the spot function's operation and its palce in the larger
>context of halftoning? I would like to be able to explicitly
>define the order in which the pixels in a cellbox of a given
>size are turned on.
You can have your wish. Read pg. 85-86 of the old red book again. Your spot
function describes how the spots in each cell should be turned on. For each
x,y coordinate within the cell the spot function returns a value between -1.0
and 1.0 which the screening engine uses to determine your desired order of
blackening (or whitening depending on how you look at it). There's
more detail in the green book, but you can look that up yourself. :)
Rob
--
Rob Bradlee w:(508)-658-5600 X5153
Agfa Corporation. ...!{decvax}!cg-atla!bradlee
200 Ballardvale St. bradlee@cg-atla.agfa.com
Wilmington, Mass. 01887
Re: halftoning spot function
Author: Dick Dunn
Date: Tue, 03 Nov 1992 00:52
Date: Tue, 03 Nov 1992 00:52
41 lines
2718 bytes
2718 bytes
fishboy@gandalf.UMCS.Maine.EDU (Jon Everett) asks about the spot function: >...the function is supposed to take >x,y coordinates of a pixel in the halftone cellbox as arguments. >To me this is counter-intuitive. I would expect it to take a >gray value as input and return the bitmap of the cellbox. That would turn out to be a lot more work than the way it's done now, since it would involve re-evaluating the spot function for each gray value that occurs (and it would be more difficult to cache the result). After you do a setscreen, the interpreter makes a bunch of calls to the spot function, one call for each pixel position in the new halftone cell. (The evaluation is lazy...it doesn't actually do this until the first time it needs a halftone dot with the new spot function.) Based on the screen frequency and angle, the interpreter figures out the size of the halftone "cell" (the pixels which will make up the halftone dot), and it calls the spot function once for each pixel. The spot function returns a value which indicates where that pixel falls in the overall sequence of "turning on" pixels as you go from white to black. In effect, the interpreter builds an array of pixel coordinates paired with spot-function values; then it sorts the array by spot-function value. This one array gives it the information to build a halftone dot of any gray level. Given a gray level which requires, say, k pixels turned on out of n pixels in a halftone cell, the interpreter takes the first k pixel locations out of its array of n and turns them on. >...I would like to be able to explicitly >define the order in which the pixels in a cellbox of a given >size are turned on. You can do this. You've got a brief dance to get from the spot-function arguments (which are in (-1,1)) to pixel locations in whatever counting system you want to use...but after that, you can just return values which correspond to the pixel's position in the sequence. For example, if the halftone cell has n pixels and the spot function wants to indicate that a particular pixel should be at position i in the sequence, it should return i/n (that is, "i n div"). -- Dick Dunn rcd@raven.eklektix.com -or- raven!rcd Boulder, Colorado ...Simpler is better.
Re: halftoning spot function
Author: Kok Chen
Date: Tue, 03 Nov 1992 02:39
Date: Tue, 03 Nov 1992 02:39
42 lines
1345 bytes
1345 bytes
bradlee@cg-atla.UUCP (Rob Bradlee) writes:
>In article <1992Nov1.212253.16619@gandalf.UMCS.Maine.EDU> fishboy@gandalf.UMCS.Maine.EDU (Jon Everett) writes:
>>
>>Question:
>>
>>Can anyone provide a decent explanation of how
>>the 'spot function' works in halftoning?
>
>You can have your wish. Read pg. 85-86 of the old red book again.
Run, don't walk, to the bookstore and ask for:
Peter Fink, "PostScript Screening: Adobe Accurate Screens,"
Adobe Press, September 1992, ISBN 0-672-48544-3.
Chapter 5 of the book is titled: "Halftone Dot Shape and Spot
Functions."
Kok Chen, AA6TY kchen@apple.com
Apple Computer, Inc.
> Rob
>--
>Rob Bradlee w:(508)-658-5600 X5153
>Agfa Corporation. ...!{decvax}!cg-atla!bradlee
>200 Ballardvale St. bradlee@cg-atla.agfa.com
>Wilmington, Mass. 01887
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads