提交 f0c0f9ed 编写于 作者: M Matt Pharr

imgtool whitebalance: use Spectra::D() for illuminant

上级 b32d4221
......@@ -2014,8 +2014,8 @@ int whitebalance(std::vector<std::string> args) {
} else if (temperature > 0) {
// Sensor::Create uses Spectra::D() rather than BlackbodySpectrum
// here---make consistent?
BlackbodySpectrum bb(temperature);
srcWhite = SpectrumToXYZ(&bb).xy();
DenselySampledSpectrum illum = Spectra::D(temperature, Allocator());
srcWhite = SpectrumToXYZ(&illum).xy();
} else
srcWhite = Point2f(xy[0], xy[1]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册