POV-Ray : Newsgroups : povray.general : Image Palette Register : Re: Image Palette Register Server Time
30 Apr 2024 22:18:43 EDT (-0400)
  Re: Image Palette Register  
From: Woody
Date: 30 Aug 2012 12:10:01
Message: <web.503f8fed79a677c4d9fdb3af0@news.povray.org>
>
> You could just use irfanview to crop the image down to the single pixel that you
> are interested in and then extract the color register. How do you get the
> register information from Irfanview anyway? I didn't find the fuction. Are you
> using Irfanview from the command line? ... Gimp is definately a good suggestion.
> But if you need to script this you could also have a look at "Imagemagick".

Perhaps register was the wrong word (I used it since that was the description in
the 'image_map' definition.

It's more of an index that points to individual colors in the image, with each
color having a distinct index. Starting at 0 or 1 (I forget which) then
increasing by 1 until each color has index.

The only problem is that shrinking it down to a single pixel, one of two things
could happen:

a) due to the reduced image, only 1 color remains and that color now has an
index of 1. the problem with this being you can't find the index of that color
with respect to the original picture

or

b) the image retains all the colors of the original image, even though only a
single color in a single pixel is being displayed. The palette thereby keeps the
same color index scheme, and you are back where you started (trying to find the
correct index for a color that has similar colors that are so close the human
eye can't distinguish between them.)

-Jeff


Post a reply to this message

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