def _plot_background(self, bgimage):
import pylab as pl
# Show the portion of the image behind this facade
left, right = self.facade_left, self.facade_right
top, bottom = 0, self.mega_facade.rectified.shape[0]
if bgimage is not None:
pl.imshow(bgimage[top:bottom, left:right], extent=(left, right, bottom, top))
else:
# Fit the facade in the plot
y0, y1 = pl.ylim()
x0, x1 = pl.xlim()
x0 = min(x0, left)
x1 = max(x1, right)
y0 = min(y0, top)
y1 = max(y1, bottom)
pl.xlim(x0, x1)
pl.ylim(y1, y0)
评论列表
文章目录