allows to effectively perform further operations on its 
processing. For the samples to be visually interpreted 
even  with  a  small  number  of  counts,  the  resulting 
image was restored with some degree of accuracy to 
the original one by smoothing methods. The sample 
size,  of  course,  has  a  significant  impact  on  the 
formation time of the smoothed image, as well as on 
the degree of its smoothness. This method of image 
restoration  allows  not  only  to  process  images  with 
poor  visual  perception  more  accurately,  but  also 
simplifies  the  task  of  improving  the  perceptual 
characteristics  of  images  with  low  quality  and 
brightness parameters. Thus, we note that the average 
brightness level of the image has increased, which is 
mainly  due  to  the  elimination  of  dark  areas  in  the 
image that remained between the recorded counts.  
The time parameter spent on the implementation 
of the algorithm for smoothing samples of different 
sizes was also analyzed. Similarly, with the formation 
of the samples themselves, the smoothing algorithm 
showed  the  best  results  when  working  with  small 
samples.  With  the  number  of  counts 𝑘 =  100,000, 
500,000  and 1,000,000, the time  was t =  0.52, 1.57 
and 2.88 seconds, respectively. For large samples 𝑘 = 
2.000.000 and 5.000.000 it took on average t = 5.46 
and  13.24  seconds.  When  working  with  small 
samples, there was an improvement in image quality 
and the ability to interpret images on it. This indicates 
the  possibility  of  using  small  samples of counts for 
image  processing  in  the  future,  regardless  of  the 
visual perception of the operator. 
All  the  processes  outlined  above,  aimed  at 
forming  an  ideal  image,  open  a  whole  range  of 
possibilities  in  the  development,  improvement,  and 
use  of  various  kinds  of  imaging  devices,  such  as 
single-photon avalanche diodes (SPAD) operating in 
the mode of single photons counting. 
ACKNOWLEDGEMENTS 
The authors express their gratitude to the Ministry of 
Science  and  Higher  Education  of  Russia  for  the 
possibility  of  using  the  Unique  Science  Unit 
“Cryointegral”  (USU  #352529)  designed  for 
simulation modelling, developed in Project No. 075-
15-2021-667. 
REFERENCES 
Antsiperov, V. (2019) Machine Learning Approach to the 
Synthesis  of  Identification  Procedures  for  Modern 
Photon-Counting Sensors. Proc. of the 8th International 
Conference  on  Pattern  Recognition  Applications  and 
Methods  V.  1:  ICPRAM,  P.  814–821.  DOI: 
10.5220/0007579208140821 
Antsiperov,  V.  (2021)  Maximum  Similarity  Method  for 
Image Mining. Proceedings of the Pattern Recognition 
ICPR International Workshops and Challenges, Part V. 
Lecture Notes in Computer Science. V. 12665? P. 301–
313. DOI: 10.1007/978-3-030-68821-9_28. 
Aull, B. F., Schuette, D. R., Young, D. J., et al. (2015) A 
study of crosstalk in a 256x256 photon counting imager 
based on silicon Geiger–mode avalanche photodiodes. 
IEEE Sens. J., V. 15(4), P. 2123-2132.  
Barber,  D.  (2012)  Bayesian  Reasoning  and  Machine 
Learning. Cambridge Univ. Press. Cambridge.  
Bertero,  M.,  Boccacci  P.,  et  al.  (2009)  Image  deblurring 
with  Poisson  data:  from  cells  to  galaxies.  Inverse 
Problems, V. 25(12), IOP Publishing, P. 123006. DOI: 
10.1088/0266-5611/25/12/123006. 
Dutton, N. A. W., Gyongy, I., Parmesan, L., et al. (2016). 
A SPAD–based QVGA image sensor for single–photon 
counting  and  quanta  imaging.  IEEE  Trans.  Electron 
Devices V. 63(1), P. 189-196. 
Fossum, E. R., Teranishi, N., et al. (2017) Photon-Counting 
Image  Sensors.  MDPI.  DOI:  10.3390/books978-3-
03842-375-1. 
Fox, M. (2006) Quantum Optics: An Introduction. U. Press, 
New York. DOI: 10.1063/1.2784691. 
Gabriel,  C.  G.,  Perrinet,  L.,  et  al.  (2015)  Biologically 
Inspired  Computer  Vision:  Fundamentals  and 
Applications. Wiley-VCH, Weinheim. 
Gallager,  R.  (2013)  Stochastic  Processes:  Theory  for 
Applications. Cambridge University Press, Cambridge. 
DOI: 10.1017/CBO9781139626514. 
Gonzalez,  R.  C.,  Woods,  R.  E.  (2007)  Digital  Image 
Processing 3
d
 edition. Prentice Hall, Inc. 
Goodman, J. W. (2015) Statistical Optics 2
nd
 edition. Wiley, 
New York. 
Holst,  G.C.  (2011)  CMOS/CCD  sensors  and  camera 
systems.  SPIE  Press.  Bellingham.  DOI:  
10.1117/3.2524677 
Koch, K., McLean, J., et al. (2006) How much the eye tells 
the brain? Current biology: CB, V.16(14): 1428–1434. 
DOI: 10.1016/j.cub.2006.05.056.  
Morimoto, K., Ardelean, A., et al. (2020) Megapixel time-
gated  SPAD  image  sensor  for  2D  and  3D  imaging 
applications.  Optica  V.  7,  P.  346-354.  DOI: 
10.1364/OPTICA.386574.  
Pal,  N.R.,  Pal,  S.K.  (1991)  Image  model,  poisson 
distribution and object extraction. International Journal 
of  Pattern  Recognition  and  Artificial  Intelligence,  V. 
5(3), P. 459–483. DOI: 10.1142/S0218001491000260. 
Robbins, M. (2011) Electron-Multiplying Charge Coupled 
Devices-EMCCDs. In Single-Photon Imaging, Seitz, P. 
and  Theuwissen,  A.  J.  P.  (eds.).  Springer,  Berlin,  P. 
103-121.  
Robert,  C.P.,  Casella  G.  (2004)  Monte  Carlo  Statistical 
Methods  (2-nd  edition).  New  York:  Springer-Verlag. 
DOI: 10.1007/978-1-4757-4145-2 
Rodieck,  R.  W.  (1998)  The  First  Steps  in  Seeing. 
Sunderland, MA. Sinauer.