POV-Ray : Newsgroups : povray.newusers : reading gray levels Server Time
5 Nov 2024 03:16:04 EST (-0500)
  reading gray levels (Message 1 to 3 of 3)  
From: Dennis Borree
Subject: reading gray levels
Date: 27 May 2002 12:28:16
Message: <3cf25ea0$1@news.povray.org>
Is there an easier way to read the gray levels of the pixels in a gray level
bit mapped image other than using the eyedropper in in an imaging software
program? I am trying to use the gray level data to manipulate my images in
POV.
Is there a reader that will give me the levels or change them to another
format that I can manipulate?
Thanks for any help in advance,
Dennis Borree


Post a reply to this message

From: Christoph Hormann
Subject: Re: reading gray levels
Date: 27 May 2002 12:38:29
Message: <3CF26105.A4D2C312@gmx.de>
Dennis Borree wrote:
> 
> Is there an easier way to read the gray levels of the pixels in a gray level
> bit mapped image other than using the eyedropper in in an imaging software
> program? I am trying to use the gray level data to manipulate my images in
> POV.
> Is there a reader that will give me the levels or change them to another
> format that I can manipulate?

I'm not sure what you want to do, but you can find out the color of a
pigment (including image_maps) in POV-Ray using the eval_pigment() macro
from functions.inc.  If you want to write image data from inside a
POV-Script you can use an ASCII based file format like PGM/PBM and the
#write function.

If this is not what you meant please clarify your question.

Christoph

-- 
POV-Ray tutorials, IsoWood include,                 
TransSkin and more: http://www.tu-bs.de/~y0013390/  
Last updated 05 May. 2002 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Dennis Borree
Subject: Re: reading gray levels
Date: 27 May 2002 13:25:25
Message: <3cf26c05$1@news.povray.org>
"Christoph Hormann" <chr### [at] gmxde> wrote in message
news:3CF26105.A4D2C312@gmx.de...
>
>
> Dennis Borree wrote:
> >
> > Is there an easier way to read the gray levels of the pixels in a gray
level
> > bit mapped image other than using the eyedropper in in an imaging
software
> > program? I am trying to use the gray level data to manipulate my images
in
> > POV.
> > Is there a reader that will give me the levels or change them to another
> > format that I can manipulate?
>
> I'm not sure what you want to do, but you can find out the color of a
> pigment (including image_maps) in POV-Ray using the eval_pigment() macro
> from functions.inc.  If you want to write image data from inside a
> POV-Script you can use an ASCII based file format like PGM/PBM and the
> #write function.
>
> If this is not what you meant please clarify your question.
>
> Christoph
>
> --
> POV-Ray tutorials, IsoWood include,
> TransSkin and more: http://www.tu-bs.de/~y0013390/
> Last updated 05 May. 2002 _____./\/^>_*_<^\/\.______

Thank you , Christoph !
That is what I am looking for.
Many thanks,
Dennis Borree


Post a reply to this message

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