|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi,
I want to read an existing image. image_map is no use; I need individual pixel
values for my calculations. Can't seem to find it in the docs.
Can it be done?
TIA
Steven
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
stevenvh wrote:
> Hi,
> I want to read an existing image. image_map is no use; I need individual pixel
> values for my calculations. Can't seem to find it in the docs.
> Can it be done?
> TIA
> Steven
>
>
By using an image map pigment (Pigm) and 'eval_pigment(Pigm, Vect)'
With the right 'Vect' value will give you a pixel value.
The image map is in the range of 0 to 1 for both directions.
So if an image is 200 by 300 then any pixel can be found by the vector
<x/200,y/300,0>.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Leroy Whetstone napsal(a):
>
> stevenvh wrote:
>> Hi,
>> I want to read an existing image. image_map is no use; I need
>> individual pixel
>> values for my calculations. Can't seem to find it in the docs.
>> Can it be done?
>> TIA
>> Steven
>>
>>
> By using an image map pigment (Pigm) and 'eval_pigment(Pigm, Vect)'
> With the right 'Vect' value will give you a pixel value.
> The image map is in the range of 0 to 1 for both directions.
> So if an image is 200 by 300 then any pixel can be found by the vector
> <x/200,y/300,0>.
>
this gives you the upper left corner of the pixels. You want their
centers. you should use <(x+0.5)/200,(y+0.5)/300>
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Thanks Jan and Leroy.
Can I also find the dimensions of the image as read, i.e. before normalization?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
stevenvh wrote:
> Thanks Jan and Leroy.
> Can I also find the dimensions of the image as read, i.e. before normalization?
>
>
Sorry Pov doesn't have that function. I use one of my several Graphic
programs to get
that information.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Leroy Whetstone <lrw### [at] joplincom> wrote:
> stevenvh wrote:
> > Thanks Jan and Leroy.
> > Can I also find the dimensions of the image as read, i.e. before normalization?
> >
> >
> Sorry Pov doesn't have that function.
POV-Ray 3.7 does.
--
- Warp
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Warp wrote: POV-Ray 3.7 does.
Good! I'm going to have to Load it.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |