astri_to_2d_array¶
-
ctapipe.image.
astri_to_2d_array
(input_img, img_map=array([[- 1, - 1, - 1, ..., - 1, - 1, - 1], [- 1, - 1, - 1, ..., - 1, - 1, - 1], [- 1, - 1, - 1, ..., - 1, - 1, - 1], ..., [- 1, - 1, - 1, ..., - 1, - 1, - 1], [- 1, - 1, - 1, ..., - 1, - 1, - 1], [- 1, - 1, - 1, ..., - 1, - 1, - 1]]))¶ Convert images comming form “ASTRI” telescopes in order to get regular 2D “rectangular” images directly usable with most image processing tools.
- Parameters
- input_imgnumpy.array
The image to convert
- Returns
- A numpy.array containing the cropped image.