Added functions to export raw image data to PNG for debugging purposes.

Renamed PNGRead.cpp/hpp to PNGReadWrite.cpp,hpp
EdgeGrid: Resurrected debugging output to PNG.
This commit is contained in:
Vojtech Bubnik 2020-11-26 09:01:27 +01:00
parent 7da1622e76
commit aa6ddfec85
8 changed files with 273 additions and 163 deletions

View file

@ -309,10 +309,8 @@ protected:
std::vector<float> m_signed_distance_field;
};
#if 0
// Debugging utility. Save the signed distance field.
extern void save_png(const Grid &grid, const BoundingBox &bbox, coord_t resolution, const char *path);
#endif /* SLIC3R_GUI */
extern void save_png(const Grid &grid, const BoundingBox &bbox, coord_t resolution, const char *path, size_t scale = 1);
} // namespace EdgeGrid