home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sources.wanted:5141 comp.graphics:12251
- Newsgroups: comp.sources.wanted,comp.graphics
- Path: sparky!uunet!cs.utexas.edu!zaphod.mps.ohio-state.edu!caen!batcomputer!munnari.oz.au!uniwa!cujo!martin
- From: martin@cs.curtin.edu.au (Martin Dougiamas)
- Subject: Re: Postscript optimization
- Message-ID: <martin.722547915@marsh>
- Keywords: postscript,bitmap,compression
- Sender: news@cujo.curtin.edu.au (News Manager)
- Organization: Curtin University of Technology
- References: <166@denali.UUCP> <1992Nov23.111926.3473@ericsson.se>
- Date: Mon, 23 Nov 1992 19:45:15 GMT
- Lines: 28
-
- etxmesa@eos.ericsson.se (Michael Salmon) writes:
-
- >In article <166@denali.UUCP>, steve@denali (steve) writes:
- >|> I'd like to optimize the [PostScript bitmap], perhaps by finding areas
- >|> of nearly the same color or intensity and polygonalizing them.
-
- >I've been thinking of something similar, the idea is quite old but to
- >my knowledge it hasn't been used for PostScript. We increase the number
- >of pixels to a power of 2 and equal in each direction i.e. 1152x900
- >becomes 2048x2048, unused pixels are defined as white. For each group
- >of 4 pixels we create a higher order pixel that has the most common
- >colour or white if there is no common colour. We repeat this process
- >until we have a single super pixel. The page can then be drawn using a
- >series of rectangles that are filled, I think that white can be ignored
- >at all but the lowest level.
-
- In other words, a quadtree. Sounds like a good way to deal with the
- original PostScript bitmap problem, IMHO, as long as there ARE decent
- regions of similarity in the image. Otherwise, this would probably
- make the file even larger, since at least 4 integers are required to draw
- each rectangle.
- --
- ,--------------------------------------------------------------. _ .
- | All the deserts I could irrigate Martin Dougiamas. | _r| Ll\
- | All the poor I could emancipate martin@cs.curtin.edu.au | | | \
- | But that's not what interests me Curtin University | \ |_ /
- | I'm interested in apathy Perth, Western Australia -+-> x~ `-'
- `=== This Is Serious, Mum =====================================' V
-