def add_image(self, image):
"""
This function ...
:param image:
:return:
"""
# Create an animation to show the result of the source extraction step
if self.max_frame_value is None: self.max_frame_value = np.nanmax(image)
# Make a plot of the image
buf = io.BytesIO()
plotting.plot_box(image, path=buf, format="png", vmin=0.0, vmax=0.5*self.max_frame_value)
buf.seek(0)
im = imageio.imread(buf)
buf.close()
self.add_frame(im)
# -----------------------------------------------------------------
评论列表
文章目录