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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user