| 27 | #include "stb_image_write.h" |
| 28 | |
| 29 | void WriteOutPdfMinMaxFile(const std::string& baseOutputFileName, const Dimensions3D& dims, float pdfMin, float pdfMax, float isAvg, float lumMax) |
| 30 | { |
| 31 | std::stringstream ss; |
| 32 | ss << baseOutputFileName << "_" << dims.x << "x" << dims.y << "x" << dims.z; |
| 33 | std::string fileName = ss.str(); |
| 34 | |
| 35 | std::ofstream file; |
| 36 | file.open(fileName); |
| 37 | file << pdfMin << std::endl; |
| 38 | file << pdfMax << std::endl; |
| 39 | file << isAvg << std::endl; |
| 40 | file << lumMax << std::endl; |
| 41 | file.close(); |
| 42 | } |
| 43 | |
| 44 | void WriteOutUVAndDirsFile(const ImportanceSamplingData& isData, const std::string baseOutputFileName, const Dimensions3D& dims) |
| 45 | { |
nothing calls this directly
no outgoing calls
no test coverage detected