My question goes as follows. The same way any integrable function $f(x)$ can be somewhat expressed as a superposition of plane waves as $\int_{-\infty}^{+\infty} F(\lambda)e^{2\pi i x\lambda}d\lambda$, where we know that $F(\lambda)$ can be obtained from $f$ as $\int_{-\infty}^{+\infty} f(x) e^{-2\pi i x\lambda} dx$, if we have the intensity spectrum of any object (say, an astronomical one) as a function of wavelength (or frecuency if you prefer), $I(\lambda)$, can we find a generalised function of the temperature, $A(T)$, such that $I(\lambda) \cong \int_{0}^{+\infty} A(T) B(\lambda; T) dT$, where $B(\lambda; T) = \frac{2hc}{\lambda^5}\frac{1}{e^{\frac{hc}{\lambda K_B T}}-1}$ is the spectrum of a blackbody at temperature T?
Physically speaking, we would be somehow looking at the object as a bunch of blackbodies at diferent temperatures somehow coexisting.
We know $I(\lambda)$ is an integrable function going from $(0,\infty)$ to $(0, \infty)$ (and so is $B(\lambda;T)\forall T$, of course), and $I(\lambda\to0)=I(\lambda\to\infty)=0$ (the latter one also being a consequence of $I$ being in $L^1$). An example would be $I(\lambda)=B(\lambda;T_0)$, so $A(T)=\delta(T-T_0)$.
If we can find such an $A$, how do we express it in terms of $I$? If we generally can't, are there some aditional properties $I$ has to have so that $A$ can be obtained?