[Radiance-general] Raw images from radiance package?

Vera Liu lizzielyh at gmail.com
Thu Mar 20 15:12:47 PDT 2014


That's really helpful! Thank you very much!
On Mar 20, 2014 3:05 PM, "Greg Ward" <gregoryjward at gmail.com> wrote:

> Matlab does have a module for reading HDR images.  See:
>
>
> http://www.mathworks.com/help/images/working-with-high-dynamic-range-images.html
>
> You can also convert to other formats as I said using pvalue, or go
> directly to floats using rtrace.  For example:
>
> vwrays -vf myview.vf -x 100 -y 100 | rtrace -h scene.oct > myresults.txt
>
> would create an ASCII list of RGB values, one per pixel for the given view.
>
> Best,
> -Greg
>
> *From: *Vera Liu <lizzielyh at gmail.com>
>
> *Subject: *Re: [Radiance-general] Raw images from radiance package?
>
> *Date: *March 20, 2014 12:11:00 PM PDT
>
>
>  Hi Greg,
> Thank you so much for the prompt reply! I want to generate some simulation
> images for my project, but Matlab can't read in the .oct file or .pic file
> generated by oconv and rpict. So I was wondering what I should use to
> output raw images with linear light coordinates and then extract the pixel
> values. As you mentioned  the gile generated by using rpict should be the
> raw format? Or I could use rtrace option to get the pixel values?
>
> Best,
> Vera
>
>
> On Thu, Mar 20, 2014 at 10:40 AM, Greg Ward <gregoryjward at gmail.com>wrote:
>
>> Of course.  Radiance pictures as output from rpict, etc. are linear
>> floating-point in RGBE format.  You can change these to ASCII or binary
>> floats using the pvalue program.  If you don't like the 1% precision this
>> gives you, there is the option of outputting to 4-byte IEEE float or ASCII
>> from rtrace.  You can couple this with vwrays if you want to generate
>> specific views.
>>
>> What is your purpose?
>>
>> -Greg
>>
>> *From: *Vera Liu <lizzielyh at gmail.com>
>>
>> *Subject: *[Radiance-general] Raw images from radiance package?
>>
>> *Date: *March 19, 2014 10:45:42 PM PDT
>>
>>
>>  Hi,
>> I know there are functions like ra_bmp to transfer radiance files to bmp
>> files or other formats. I'm wondering if there's a way to generate raw
>> images from the .rad files so that the output is in linear light
>> coordinates?
>> Best,
>> Vera
>>
>>
>> _______________________________________________
>> Radiance-general mailing list
>> Radiance-general at radiance-online.org
>> http://www.radiance-online.org/mailman/listinfo/radiance-general
>>
>>
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general
>
>
> _______________________________________________
> Radiance-general mailing list
> Radiance-general at radiance-online.org
> http://www.radiance-online.org/mailman/listinfo/radiance-general
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.radiance-online.org/pipermail/radiance-general/attachments/20140320/6de9a112/attachment-0001.html>


More information about the Radiance-general mailing list