gdesk.panels.imgview.blueprint module

gdesk.panels.imgview.blueprint.get_blue_print(array, xkern=8, ykern=8, hfg=8, bayer=False)
gdesk.panels.imgview.blueprint.make_blueprint(array, xkern=8, ykern=8, hfg=8, bayer=False)

Make a so called blueprint thumbnail. The 16-bitgrey image is converted to a downscaled color version. The downscale kernel is tyical 8x8. So the statiscs of 64 pixels is used to derive 3 8-bit numbers. So the RGB values are based on the average, the minimum and the maximum. Green for the average of the kernel. Blue for the difference of the minumum to average. Red for the difference of maximum to average. The min-max differences are typical gained up. The final result is an image of 1/100 of the original data. It blows-up high frequency artifacts, making them much more visible.

Parameters
  • array (np.ndarray or PyBix) – A 2d Image

  • xkern (int) – width of the kernel

  • ykern (int) – height of the kernel

  • hfg (float) – high frequency gain

  • bayer (bool) – Does it contains a bayer pattern (color sensor?)

gdesk.panels.imgview.blueprint.make_thumbnail(array, max_long_side=240, hfg=8, bayer=False)