POV-Ray : Newsgroups : povray.text.scene-files : Automated RGB histogram / color map WIP (scene file) : Automated RGB histogram / color map WIP (scene file) Server Time
27 Feb 2024 16:26:32 EST (-0500)
  Automated RGB histogram / color map WIP (scene file)  
From: Bald Eagle
Date: 20 Mar 2017 10:15:00
Message: <web.58cfe3aa1e744967c437ac910@news.povray.org>
Here's my code for the histogram.

Hopefully this will generate some new ideas and approaches.
 I currently have the debug stream spit out a list of color vectors with a
ranking based on occurrence.

Search for the Discrete variable - that controls the coarseness of the RGB gamut

Color placement is accomplished by vector multiplication and comparison of
vcross results (see code)

Occurrence is tabulated with an accumulator array, the size of which is
determined by the RGB coarseness.

Questions comments suggestions and lessons on coding myself out of wet paper bag
.... welcome as always  :)

Post a reply to this message

Download 'hexagonalcolorhistogram.pov.txt' (14 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.