Dump intermediate results to PNG images.
This commit is contained in:
28
src/PNGDumper.hpp
Normal file
28
src/PNGDumper.hpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
|
||||
#include "LayerData.hpp"
|
||||
#include "utils.hpp"
|
||||
|
||||
namespace fmri
|
||||
{
|
||||
using std::string;
|
||||
using std::string_view;
|
||||
|
||||
class PNGDumper
|
||||
{
|
||||
public:
|
||||
PNGDumper(string_view baseDir);
|
||||
|
||||
void dump(const LayerData& layerData);
|
||||
|
||||
private:
|
||||
const string baseDir_;
|
||||
|
||||
void dumpImageSeries(const LayerData &data);
|
||||
|
||||
string getFilename(const string &basic_string, int i, int j);
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user