POV-Ray : Newsgroups : povray.text.scene-files : Automated RGB histogram / color map WIP (scene file) Server Time
31 Oct 2024 10:23:57 EDT (-0400)
  Automated RGB histogram / color map WIP (scene file) (Message 1 to 1 of 1)  
From: Bald Eagle
Subject: Automated RGB histogram / color map WIP (scene file)
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
subdivision.

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


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

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