def save_plots(self, folder):
import pylab as pl
pl.gcf().set_size_inches(15, 15)
pl.clf()
self.homography.plot_original()
pl.savefig(join(folder, 'homography-original.jpg'))
pl.clf()
self.homography.plot_rectified()
pl.savefig(join(folder, 'homography-rectified.jpg'))
pl.clf()
self.driving_layers.plot(overlay_alpha=0.7)
pl.savefig(join(folder, 'segnet-driving.jpg'))
pl.clf()
self.facade_layers.plot(overlay_alpha=0.7)
pl.savefig(join(folder, 'segnet-i12-facade.jpg'))
pl.clf()
self.plot_grids()
pl.savefig(join(folder, 'grid.jpg'))
pl.clf()
self.plot_regions()
pl.savefig(join(folder, 'regions.jpg'))
pl.clf()
pl.gcf().set_size_inches(6, 4)
self.plot_facade_cuts()
pl.savefig(join(folder, 'facade-cuts.jpg'), dpi=300)
pl.savefig(join(folder, 'facade-cuts.svg'))
imsave(join(folder, 'walls.png'), self.wall_colors)
评论列表
文章目录