home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9137 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.1 KB

  1. Xref: sparky comp.os.msdos.programmer:9137 alt.graphics.pixutils:2116
  2. Path: sparky!uunet!sun-barr!olivea!mintaka.lcs.mit.edu!ai-lab!hal.gnu.ai.mit.edu!rwed
  3. From: rwed@hal.gnu.ai.mit.edu (N7YVM)
  4. Newsgroups: comp.os.msdos.programmer,alt.graphics.pixutils
  5. Subject: indexed 256 color palette selection
  6. Message-ID: <27589@life.ai.mit.edu>
  7. Date: 7 Sep 92 21:54:43 GMT
  8. Sender: news@ai.mit.edu
  9. Followup-To: comp.os.msdos.programmer
  10. Lines: 18
  11.  
  12.  
  13.  Hello!
  14.  
  15.  
  16.   Ive got a bunch of raw images, i.e. image that are stored as memory as
  17.   separate r g and b images, each byte being between 0 thru 255 and
  18.   indicating intensity...
  19.  
  20.   What I need is an algorithm that selects the best indexed 256 color
  21.   palette for a particular image.
  22.  
  23.   In other words I got some jpegs I need to convert to GIFS :)
  24.  
  25.   Does anyone know of ANY algorithms that select such palettes? I think
  26.   the optimum palette would have each palette entry used an equal number
  27.   of times? I have developed an algorithm that does this for greyscales,
  28.   but cant seem to find one that handles rgb palettes..  Thanks if you
  29.   have any advice to offer me !!
  30.