# Computing spherical harmonic coefficients for HDR images

This topic is 2065 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

Hi there again!

I am dealing with spherical harmonics once again. The new problem is the following:
I would like to compute the SH coefficients of HDR images and construct a sphere map of it.[/quote]

I've started my looking at the official project page, which contains the function [font=courier new,courier,monospace]prefilter.c.[/font]
The code structure is the following:
 input(filename, width) ; prefilter(width) ; tomatrix() ; 

Unfortunately though, when I tried running the c-file on HDR images, I got an error (incompatible format). The accepted format is .float. I would like to change the input(filename, width) function to accept the HDR format as well.
The next idea I came up with was to use a library to read HDR images, namely, the following.
Unfortunately though, this one is written in C++. Thus, I am asking myself how to combine the two.

Any ideas on how to get started would be greatly appreciated.

1. 1
Rutin
19
2. 2
3. 3
JoeJ
16
4. 4
5. 5

• 27
• 20
• 13
• 13
• 17
• ### Forum Statistics

• Total Topics
631700
• Total Posts
3001790
×