Adaptive Digital Scan Variable Pixels - arXiv

8 downloads 2986 Views 882KB Size Report
Member, IEEE. Enview. R&D Labs, India. Email: [email protected]. Reshma Scaria. Student ... variable shaped pixel layout was able to generate better visual.
Adaptive Digital Scan Variable Pixels Sherin Sugathan

Reshma Scaria

Alex Pappachen James

Member, IEEE. Enview R&D Labs, India. Email: [email protected]

Student Intern Enview R&D Labs, India. Email: [email protected]

Senior Member, IEEE. Nazarbayev University, Kazakhstan. Email: [email protected]

Abstract—The square and rectangular shape of the pixels in the digital images for sensing and display purposes introduces several inaccuracies in the representation of digital images. The major disadvantage of square pixel shapes is the inability to accurately capture and display the details in the objects having variable orientations to edges, shapes and regions. This effect can be observed by the inaccurate representation of diagonal edges in low resolution square pixel images. This paper explores a less investigated idea of using variable shaped pixels for improving visual quality of image scans without increasing the square pixel resolution. The proposed adaptive filtering technique reports an improvement in image PSNR. Index Terms—Pixels, Digital Scans, Variable Pixels, Square Pixels, Digital Images, Spatial Sampling.

I. I NT RODUCTIO N Computer based digital image processing typically assumes the capture of an image, its representation and processing dealing with square shaped picture elements. Matrices are widely used in almost every image processing systems [1]– [4] where each element in the matrix is considered a square shaped pixel. The visual quality of an image tends to degrade as we try to construct a high resolution version of the same image from a low resolution image or a set of low resolution images. This problem is generally solved by super-resolution reconstruction [5] of an image where interpolation techniques are mainly used for reconstruction. It can be observed that the super-resolution reconstruction techniques do treats the nature of resulting pixels or pixel blocks as square shaped. The rest of the paper is organized as Section II discusses all the related work that explores the idea of using variable pixels. Section III illustrates the proposed method for improving methods based on variable pixels. Section IV reports the results obtained followed by a conclusion in Section IV.

aperiodic penrose tiling had no translational symmetry which means a particular pixel unit is not repeating exactly [7]. In [8], the penrose pixels were applied in color images. Unlike the square pixel layout, a spiral architecture was proposed in [9], where every pixel had only six neighboring pixels and the approach reported several advantages over the square pixel layout. In [10], some of the drawbacks in the spiral architecture was solved using a virtual hexagonal structure. In [10], the virtual hexagonal structure was used to uniformly separate an image into sub-images. Another hexagonal lattice method is illustrated in [11], which was inspired from the anatomical consideration of the primate’s vision system. Most of the imaging hardware available today are based on square type pixel layouts. The use of square pixels at the hardware level act as a problem to the method illustrated in [10]. That was the reason for using a virtual hexagonal structure only at the algorithm level. For achieving superresolution, attempts were also made at the sensor level, but most of those methods suffered from problems like shot noise because the main idea was to reduce the sensor size. When we try to reduce the sensor pixel size (naturally increases the number of pixels per unit area), the amount of light falling at a particular pixel also reduces [12] which is the main reason for causing shot noise.

II. R ELATED W OR K The idea proposed in [6], [7], discusses about having an variable pixel layout in sensor hardware. This pixel layout was termed as Penrose Pixel and the algorithms based on this approach proved to perform better than those algorithms which uses a regular square pixel layout. This method of using variable shaped pixel layout was able to generate better visual image quality when compared with the regular pixel layout. A rhombus was used as the primitive shape for creating the Penrose tiles. They used two rhombi structures and each of those structures had five different orientations for creating the pixel layout. Unlike a regular pixel layout, the layout in

(a)

(b)

Fig. 1. An image represented using (a) square pixel layout and (b) variable pixel layout.

Inspired from an ancient idea of using mosaic fragments for creating images [13] by the people of Ravenna, Russel [14] proposed the concept of using variable shaped pixels. The main problem Russell cited was the use of square shaped pixels. For improving the viewing accuracy of a digital image,

the use of square pixels would demand an increase in the resolution of the image which in turn increases the space requirements along with. However, by using the variable shaped pixel blocks, an image can be represented more accurately than the square type representation.

Fig. 2. The two masks (triangular and rectangular) proposed by Russel in [14]. Each of the two masks had two regions indicated as gray and white pixels.

An example showing the difference between the square pixel block representation and an variable pixel block representation is shown in Fig. 1. In [14], Russell proposed the use of two pixel masks, triangular and rectangular as shown in Fig. 2. The size of the masks was chosen as 6 × 6 pixels. The triangular mask consists of two triangles in which one triangle is having 15 pixels and the other is having 21 pixels in it. Similarly for the rectangular mask, there are two rectangle partitions with 15 and 21 pixels. Each of the two masks (triangular and rectangular) were rotated four times by 90 degrees generating a total of eight masks as shown in Fig. 3. Russell replaced all the 6 × 6 pixel block of an image with one of the eight masks for creating an variable pixel image. For every 6 × 6 pixel block in an input image, an appropriate mask is selected by calculating the mean difference between the pixels falling in two regions of the mask.

An FPGA based real-time super resolution using an adaptive sensor array is proposed in [16]. They created variable shaped pixels by combining several pixels together as in Russell’s method and acknowledges the importance of having variable shaped pixels at the sensor level especially for solving motion blur. The idea proposed by Russell was explored for more types of masks in [17]. In this paper, we aims to bring out few improvements on Russell’s idea on variable pixel imaging. III. P ROPOSED M ETHOD The block diagram for the proposed method is shown in Fig. 5. The method shown in Fig. 5 advocates the use of parallel variable blocks to scan the image data. We have used the eight possible orientations (Fig. 3) of the masks inside the scan array. The scan array will generate eight images, where each image corresponds to one of the eight mask orientations. The generated variable images would contain variable blocks generated from the input image data. The formation of an variable block has been depicted in Fig. 4. Each of the parallel scan has a unique distribution of pixel blocks. The pixel blocks used are the same as proposed by Russell in [14]. However, the computation of optimum pixel mask for each image block is not done at the sensor level. This is because it is a difficult and complex approach to have a dynamically changing sensor array, however, it is feasible as a scanning operators on existing pixel arrays.

Fig. 4. The formation of an variable pixel block

Fig. 3. The eight masks generated by all possible 90 degree rotations of the triangular and rectangular masks.

After computing the difference values for all the eight masks, the 6 × 6 pixel block of the original image is replaced by the mask for which the difference is minimum. This process is repeated for the entire image for generating an variable Fig. 5. The proposed variable image scanning system pixel image. The resulting image can be considered as a combination of triangular and rectangular pixel blocks with In Fig. 5, we use only same type of masks in an array instead different orientations. of computing the optimum mask for every image block. The In [15], an variable image sampling algorithm is proposed, real image data is captured by eight parallel sensors having where the variability is introduced at the sampling stage. the two types of masks, each with four possible rotations.

Algorithm 1 Variable Adaptive Filtering

Fig. 6. Two example kernel (5 × 5 pixels) positions over the variable pixel image. The pixels marked as ”×” indicates those pixels that together form a new window shape applicable at the center anchor point in that kernel.

Image noise [18]–[20] can be considered as an unwanted signal that affects the quality of an image. In order to address this effect, we have added image noises such as gaussian noise, speckle noise and salt & pepper noise for simulating the impact of sensor noise. We have made improvements in the filtering stage that comes after the addition of noise. The filtering stage introduced in [17] was not considering the variable pixel nature in the image generated from each of the parallel sensors. In [17], they used a square shaped kernel for smoothing an variable pixel image. Here we have used a shape adaptive filter in the filtering stage. Instead of using a regular 5 × 5 pixel smoothing window, the candidate pixels for the smoothing operation is selected in such a way that only the pixels falling in the variable pixel block region where the anchor pixel lies are selected. As you can see in Fig. 6, the pixels marked as ×” are the candidate pixels for computing the smoothed value and they collectively indicate the new shape of the kernel window. For computing the smoothed or filtered value for a particular pixel, only the pixel values marked as ×” will be taken in account for computing the smoothed pixel value. An algorithm for the proposed variable adaptive filtering has been given in Algorithm. 1. IV. R ESULTS AND D ISCUSSIO N The proposed parallel variable pixel array system for generating images gives an improved visual quality for the images studied. We have taken a set of 10 standard images (shown in Fig. 7) for the experiments. The images considered are of size 512 × 512 pixels and they are applied to the square shaped and variable shaped parallel sensor arrays. The quality of the generated images is measured by computing the PSNR of the image. The results obtained for various noises like salt & pepper, Gaussian and Speckle noise have been shown in Table. I, II and III. It is obvious that the variable pixel approach has a superiority over the square pixel representation in terms of visual image quality. In the proposed method, we employed an adaptive variable pixel based filtering for improving image quality. It should be noted that for smaller kernel sizes, the results generated by the adaptive filtering method would stay more similar to that generated by the non-adaptive filtering method. This happens because in a smaller kernel of size, say 3 × 3 pixels, the

1: procedure VARIABLE F ILTER (I, M, k, f ) 2: Read variable input image, I. 3: Read variable binary mask image, M . 4: Read kernel size, k. 5: Read the boolean value, f indicating the type of filtering (mean or median). 6: Ip ← Padded image created from matrix I. 7: Mp ← Padded image created from matrix M . 8: w ← width of Ip . 9: h ← height of Ip . 10: for i ← 1 to w − bk/2c in steps of 1 do 11: for j ← 1 to h − bk/2c in steps of 1 do 12: Isub ← k × k neighborhood at Ip (i + (k − 1), j + (k − 1)) 13: Msub ← k × k neighborhood at Mp (i + (k − 1), j + (k − 1)) 14: anchor ← Mp (i + bk/2c, j + bk/2c) 15: v ← {Isub (x, y) : (x, y) ∈ {(p, q) : Msub (p, q) = anchor}} 16: if (f == true) then 17:

Iout (i, j) =

1 |v|

|v| P

vm

m=1

18: else 19: Iout (i, j) = M ed(v) 20: end if 21: end for 22: end for 23: return Iout 24: end procedure

PSNR C OMPARISON Image Taken Cameram an House Jetplane La ke Le na Livingroo mMandril Pepper Pirate Walkbridg e

TABLE I S ALT & P EPPER N OISE ADDED

WHEN

Square Pixel Mea Medi n an 23.41 23.08 92 19 26.69 25.73 61 38 22.54 21.87 85 63 22.09 21.62 29 45 24.79 24.20 76 42 22.57 22.13 20 29 19.99 19.85 01 71 24.74 24.00 05 38 23.90 23.52 35 64 21.30 21.06 89 88

Variable Mea n 24.66 99 28.37 66 23.88 31 23.15 44 25.95 95 23.55 19 20.41 19 25.99 73 24.84 43 22.05 56

Medi an 25.30 79 28.68 52 24.06 65 23.54 11 26.32 92 23.80 74 20.58 23 26.31 27 25.25 60 22.43 68

Variable Adaptive Media Mea n n 25.15 25.438 51 8 28.51 28.805 57 2 24.21 24.363 85 123.721 23.54 60 0 26.25 26.392 86 3 23.97 24.103 33 820.811 20.70 53 6 26.22 26.336 00 1 25.18 25.344 27 322.638 22.48 74 2

adaptive method would be eliminating very few non-candidate pixels. In the case of a larger kernel, say 5 × 5 or 7 × 7 pixels, the probability of inclusion of non-candidate pixels is high and thus their removal. We use larger kernel sizes to achieve a higher suppression of noises. In a normal box filtering technique the increase in kernel size would introduce a blurring effect.

Fig. 7. Set of standard images used for experiments.

If we use a non-adaptive filtering technique, the effect of

PSNR C OMPARISON Image Taken Cameram an House Jetplane La ke Le na Livingroo mMandril Pepper Pirate Walkbridg e

Square Pixel Mea Medi n an 23.55 23.29 63 52 27.14 26.17 30 41 22.79 22.05 12 88 22.30 21.99 79 96 25.05 24.43 13 86 22.67 22.22 63 19 20.03 19.84 77 21 24.97 24.32 75 58 24.11 23.66 60 97 21.42 21.24 86 48

PSNR C OMPARISON Image Taken Cameram an House Jetplane La ke Le na Livingroo mMandril Pepper Pirate Walkbridg e

TABLE II G AUSSIAN N OISE ADDED

WHEN

variable Mea n 24.87 09 29.05 14 24.26 96 23.49 30 26.31 33 23.71 31 20.47 72 26.34 51 25.11 60 22.21 81

Medi an 24.97 51 28.26 36 23.79 80 23.38 67 25.93 78 23.44 06 20.35 53 25.96 72 24.84 82 22.16 55

variable Adaptive Media Mea n n 25.42 25.49 34 37 29.26 28.92 00 08 24.63 24.44 62 76 23.92 23.82 20 89 26.62 26.43 39 79 24.15 24.08 92 42 20.78 20.75 59 97 26.60 26.48 90 78 25.48 25.37 06 44 22.66 22.65 73 31

TABLE III WHEN S PECKLE N OISE ADDED

Square Pixel Mea Medi n an 23.65 23.11 89 26 26.88 25.83 56 06 22.64 21.80 92 79 22.26 21.85 50 43 24.99 24.31 60 76 22.67 22.13 42 57 20.03 19.81 14 70 25.04 24.16 66 54 24.11 23.61 00 53 21.37 21.22 70 89

variable Mea n 25.02 03 28.64 47 24.06 98 23.41 57 26.26 42 23.72 33 20.48 11 26.45 12 25.11 83 22.14 29

Medi an 24.73 26 27.56 22 23.30 11 23.16 45 25.69 76 23.29 29 20.30 93 25.72 26 24.71 95 22.08 31

variable Adaptive Mea Medi n an 25.55 25.19 92 24 28.83 28.28 33 84 24.41 23.98 79 31 23.85 23.60 34 67 26.56 26.15 84 95 24.17 23.91 90 95 20.78 20.68 73 50 26.69 26.19 33 29 25.48 25.21 22 65 22.59 22.56 72 23

non-candidate pixels will be high and thus the blurring effect. For an adaptive method, the smoothing is performed in such a manner that the region boundaries or edges represented by variable tiles are preserved. Thus for large kernel sizes, the superiority of adaptive filtering over non-adaptive filtering becomes obvious. The results reported in Table. I, II and III are based on a kernel size of 5 × 5 pixels. The contrast between normal method and the adaptive method would increase for larger kernel sizes. An example output obtained for a square pixel based and variable pixel based image formation system in shown in Fig. 8.

(a) Image generated using square (b) Image generated for the proposed pixel based representation variable pixel approach Fig. 8. An example output obtained for (a) square pixel based representation and an (b) variable pixel(adaptive) based representation.

V. C ONCLUSION In this study, an improved version of an variable pixel based image formation system is presented. It was demonstrated that the filtering techniques can also be adapted according to the

variable pixels for improving viewing accuracy. In hardware, variable pixels can be employed to reduce cost, while in software it helps in image compression, which is not studied in this paper. The use of variable pixels for image creation and processing is a promising idea for the future imaging technologies. A CKN OWLEDGMENT The discussions with Russell A. Kirsch, the inventor of first digital scan, with National Institute of Technology is acknowledged. The authors would like to thank the support of research grant from Enview Research and Development Labs, Trivandrum, India. R EFERENCES [1] A. S. Glassner, Principles of digital image synthesis: Vol. 1. Elsevier, 1995, vol. 1. [2] J. K. Florence and J. K. Yan, “Modular digital image generator,” Feb. 11 1986, uS Patent 4,570,233. [3] A. R. Weeks, Fundamentals of electronic image processing. SPIE Optical Engineering Press Bellingham, 1996. [4] R. C. Gonzalez, Digital image processing. Pearson Education India, 2009. [5] S. C. Park, M. K. Park, and M. G. Kang, “Super-resolution image reconstruction: a technical overview,” Signal Processing Magazine, IEEE, vol. 20, no. 3, pp. 21–36, 2003. [6] M. Ben-Ezra, Z. Lin, B. Wilburn, and W. Zhang, “Penrose pixels for super-resolution,” Pattern Analysis and Machine Intelligence, IEEE Transactions on, vol. 33, no. 7, pp. 1370–1383, 2011. [7] M. Ben-Ezra, Z. Lin, and B. Wilburn, “Penrose pixels super-resolution in the detector layout domain,” in Computer Vision, 2007. ICCV 2007. IEEE 11th International Conference on. IEEE, 2007, pp. 1–8. [8] C. Bai, J. Li, Z. Lin, J. Yu, and Y.-W. Chen, “Penrose demosaicking,” IEEE Transactions on Image Processing. [9] B. k. Barun kumar, P. G. Pooja Gupta, and K. P. Kuldip Pahwa, “Square pixels to hexagonal pixel structure representation technique,” International Journal of Signal Processing, Image Processing and Pattern Recognition, vol. 7, no. 4, pp. 137–144, 2014. [10] X. He, H. Wang, N. Hur, W. Jia, Q. Wu, J. Kim, and T. Hintz, “Uniformly partitioning images on virtual hexagonal structure,” in Control, Automation, Robotics and Vision, 2006. ICARCV’06. 9th International Conference on. IEEE, 2006, pp. 1–6. [11] P. Sheridan, T. Hintz, and D. Alexander, “Pseudo-invariant image transformations on a hexagonal lattice,” Image and Vision Computing, vol. 18, no. 11, pp. 907–917, 2000. [12] S. C. Park, M. K. Park, and M. G. Kang, “Super-resolution image reconstruction: a technical overview,” Signal Processing Magazine, IEEE, vol. 20, no. 3, pp. 21–36, 2003. [13] A. M. Cetto, The Ravenna Mosaics. Hallwag; Stanford!, 1960. [14] R. A. Kirsch, “Precision and accuracy in scientific imaging,” Journal of Research of the National Institute of Standards and Technology, vol. 115, no. 3, 2010. [15] G. Ramponi and S. Carrato, “An adaptive irregular sampling algorithm and its application to image coding,” Image and Vision Computing, vol. 19, no. 7, pp. 451–460, 2001. [16] M. E. Angelopoulou, C.-S. Bouganis, P. Y. Cheung, and G. A. Constantinides, “Fpga-based real-time super-resolution on an adaptive image sensor,” in Reconfigurable Computing: Architectures, Tools and Applications. Springer, 2008, pp. 125–136. [17] S. Sugathan and A. P. James, “Irregular pixel imaging,” in Advances in Computing, Communications and Informatics (ICACCI, 2014 International Conference on. IEEE, 2014, pp. 2459–2463. [18] G. A. Mastin, “Adaptive filters for digital image noise smoothing: An evaluation,” Computer Vision, Graphics, and Image Processing, vol. 31, no. 1, pp. 103–121, 1985. [19] C. Boncelet, “Image noise models,” Handbook of image and video processing, pp. 325–335, 2000. [20] V. S. Petrovic´ and C. S. Xydeas, “Sensor noise effects on signal-level image fusion performance,” Information Fusion, vol. 4, no. 3, pp. 167– 183, 2003.

Suggest Documents