POV-Ray : Newsgroups : povray.advanced-users : Does PoV-Ray have a readable (by humans) info output? Server Time
25 Nov 2024 09:41:24 EST (-0500)
  Does PoV-Ray have a readable (by humans) info output? (Message 1 to 6 of 6)  
From: Shay
Subject: Does PoV-Ray have a readable (by humans) info output?
Date: 9 Jan 2003 17:28:19
Message: <3e1df783@news.povray.org>
Will PoV-Ray output pixel information into a comma-delimited or similar
format? Is there a converter somewhere to change a PNG into a readable text
format?

I'm looking for rgb values of each pixel in an image, preferable at 16 bits.

 -Shay


Post a reply to this message

From: Warp
Subject: Re: Does PoV-Ray have a readable (by humans) info output?
Date: 9 Jan 2003 17:43:18
Message: <3e1dfb06@news.povray.org>
Shay <sah### [at] simcopartscom> wrote:
> Will PoV-Ray output pixel information into a comma-delimited or similar
> format? Is there a converter somewhere to change a PNG into a readable text
> format?

  I think that the PPM format is ascii, IIRC.

-- 
#macro M(A,N,D,L)plane{-z,-9pigment{mandel L*9translate N color_map{[0rgb x]
[1rgb 9]}scale<D,D*3D>*1e3}rotate y*A*8}#end M(-3<1.206434.28623>70,7)M(
-1<.7438.1795>1,20)M(1<.77595.13699>30,20)M(3<.75923.07145>80,99)// - Warp -


Post a reply to this message

From: Christopher James Huff
Subject: Re: Does PoV-Ray have a readable (by humans) info output?
Date: 9 Jan 2003 18:13:10
Message: <cjameshuff-5F1AC5.18032609012003@netplex.aussie.org>
In article <3e1df783@news.povray.org>, "Shay" <sah### [at] simcopartscom> 
wrote:

> Will PoV-Ray output pixel information into a comma-delimited or similar
> format? Is there a converter somewhere to change a PNG into a readable text
> format?
> 
> I'm looking for rgb values of each pixel in an image, preferable at 16 bits.

You seem to be a bit confused here..."16 bits" is meaningless for text 
output. What you get is a string in decimal format, for 16 bits binary 
data it would range from 0 to 65535, expressed as "0" and "65535".

Anyway, as someone else mentioned, the PPM format has an ASCII type. I 
don't know if POV supports it, or if it supports that color resolution.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

From: Artis Rozentals
Subject: Re: Does PoV-Ray have a readable (by humans) info output?
Date: 9 Jan 2003 20:47:47
Message: <m2d6n5ixmk.fsf@localhost.localdomain>
"Shay" <sah### [at] simcopartscom> writes:

> Is there a converter somewhere to change a PNG into a readable text
> format?

http://www.tuxedo.org/~esr/sng/

-- 
email  : art### [at] aaaapollolv
jabber : aro### [at] jabberorg
ICQ    : 158902222


Post a reply to this message

From: Mark Weyer
Subject: Re: Does PoV-Ray have a readable (by humans) info output?
Date: 10 Jan 2003 04:36:08
Message: <3E1E96A8.6B87FC31@frege.mathematik.uni-freiburg.de>
>   I think that the PPM format is ascii, IIRC.

PPM comes in two variants: Originally it used to be just ascii,
so that pictures could be sent via email in the ancient days (or
something like that). Then people started to get annoyed by file
sizes of 12 bytes per pixel (for 8 bit depth) and the ,,packed''
variant was added. There only the header is pure ascii.

To my knowledge Povray outputs only packed ppm. So you would
have to convert that into unpacked.

If using Linux you should do
  man ppm
  man pnmtoplainpnm
  apropos ppm
  apropos pnm
for further information.

  Mark


Post a reply to this message

From: Shay
Subject: Re: Does PoV-Ray have a readable (by humans) info output?
Date: 10 Jan 2003 09:39:15
Message: <3e1edb13$1@news.povray.org>
"Shay" <sah### [at] simcopartscom> wrote in message
news:3e1df783@news.povray.org...

Thank you all for the replies. The PPM output from PoV-Ray is not the ASCII
type, but I *think* that I can convert it with this:

http://www.math.iastate.edu/burkardt/g_src/ppmb_2_ppma/ppmb_2_ppma.html

I'll have to explore that more later.

 -Shay


Post a reply to this message

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