A New Quality Approach For Analyzing The Quality Of Deblocked Images

DOI : 10.17577/IJERTV2IS4275

Download Full-Text PDF Cite this Publication

Text Only Version

A New Quality Approach For Analyzing The Quality Of Deblocked Images

A NEW QUALITY APPROACH FOR ANALYZING THE QUALITY OF DEBLOCKED IMAGES

S. FOWZIA SULTHANA , ASSISTANT PROF IN RAVINDRA ENGINEERING COLLEGE FOR WOMEN,KURNOOL,JNTUA

Y. CHAKRAPANI, PROF IN ACE ENGINEERING COLLEGE,HYDERABAD,JNTUH

Abstract : JPEG compression is the lossy compression which is most prevalent technique for image codecs. But it suffers from blocking artifacts which are very serious at low bit rates, where network bandwidths are limited. In this paper deblocking filters are used to reduce blocking artifacts. The efficiency of deblocking algorithms were studied. Similarly a comparison of the perceptual quality of deblocked images based on various quality assessment metric is done. A proposed PSNR including blocking effect factor (PSNR-B) was used instead of perceptually questionable PSNR. Another quality assessment metric SSIM was used which produces results largely in accordance with PSNR B. We show the simulation results, which prove PSNR-B produces objective judgments and results in better performance than well known blockiness specific index and PSNR.

Keywords—Deblocked images, blocking artifacts, distortion, quality assessment, quantization

  1. Digital images are subject to a wide variety of distortions during acquisition, processing, compression, storage, transmission and reproduction, any of which may result in a degradation of visual quality. Many practical and commercial systems use digital image compression when it is required to transmit or store the image over network bandwidth limited resources. JPEG compression is the most popular image compression standard among all the members of lossy compression standards family. JPEG image coding is based on block based discrete cosine transform. BDCT coding has been successfully used in image and video compression applications due to its energy compacting property and relative ease of implementation. Blocking effects are common in block-based image and video compression systems. Blocking artifacts are more serious at low bit rates, where network

    bandwidths are limited. Significant research has been done on blocking artifact reduction [7][13]. After segmenting an image in to blocks of size N×N, the blocks are independently DCT transformed, quantized, coded and transmitted. One of the most noticeable degradation of the block transform coding is the blocking artifact. These artifacts appear as a regular pattern of visible block boundaries. In order to achieve high compression rates using BTC (Block Transform Coding) with visually acceptable results, a procedure known as deblocking is done in order to eliminate blocking artifacts. A deblocking filter can improve image quality in some aspects, but can reduce image quality in other regards.

    In this paper a research has done on quality assessment of deblocked images by estimating various quality metrics and the effect of quantization step of the measured quality of deblocked image is studied. Simulations are done using quality metrics such as peak signal-to-noise ratio (PSNR), structural similarity index (SSIM) and PSNR-

    B. PSNR-B is a new quality metric which includes PSNR and a blocking effect factor. By going through simulation results, it is shown that PSNR-B correlates well with the SSIM index and subjective quality and its performance is much better than the PSNR.

    Section II reviews the deblocking algorithms we consider. In section III we propose a method in order to analyze the deblocking filters. Section IV presents the estimation of quality metrics. Section V introduces the relationship between quantization step size and image quality. Section VI presents simulation results and discussions. Concluding remarks are presented in section VII.

  2. EXISTING METHODS

    (a)Deblocking:

    To remove blocking effect, several deblocking techniques have been proposed in the literature as post process mechanisms after JPEG compression. If deblocking is viewed as

    an estimation problem, the simplest solution is probably just to low pass the blocky JPEG compressed image. The advantage of low pass filtering technique is that no additional information is needed and as a result, the bit rate is not increased. However, it results in blurred images.More sophisticated methods involve iterative methods such as projection on convex sets [3, 4] and constrained least squares [4, 5].

    images and report their quality without human involvement. Such methods could eliminate the need for expensive subjective studies. Objective image quality metrics can be classified according to the availability of an original (distortion-free) image, with which the distorted image is to be compared. Most existing approaches are known as Full reference, no reference, reduced reference. The work in this thesis is based on the design of full-reference image quality measure. Different quality metrics such as MSE, PSNR, SSIM have been proposed in the literature for image quality measurement.

    In this paper we use deblocking algorithms including low pass filtering and projection on to convex sets. The efficiency of these algorithms and performance of new quality approach can be analyzed by introducing a proposed method in the following sections.

  3. PROPOSED METHOD

    Deblocking operation is performed in order to reduce blocking artifacts. Deblocking operation can be achieved by using various deblocking algorithms, employing deblocking filters. The effects of deblocking filters can be

    Objective measurement and Subjective measurement are basically two approaches that have been proposed in the literature for image Quality measurement [20]. Subjective evaluation is usually too inconvenient, time-consuming and expensive. Objective measurements are automatic algorithms for quality assessment that could analyze

    Let X be the reference image and Y be the test image (decoded image) distorted by quantization errors and Y be the deblocked image as shown in figure1. Let f represent the deblocking operation and is given by Y=f(Y). Let the quality metric between X and Y be M(X,Y). For the given image Y, the main aim of deblocking operation f is to maximize M(X, f(Y)). Let i represent the amount of decease in distortion in the decrease in distortion region (DDR) and is given by

    i = d(xi, yi) d(xi, y i ) (1) Where d(xi, yi) the distortion between ith pixels of X and Y and is expressed as squared

    Euclidian distance

    d(xi, yi) = xi yi 2 (2) Where d(xi, )the distortion between ith pixels of X and Y and is expressed as squared Euclidian distance

    Next, we define the distortion decrease region (DDR) to be composed of those pixels where the distortion is decreased by the deblocking operation

    iA, if d(xi,y i)<d(xi,yi) (3) The amount of distortion decrease for the ith pixel in the DDRA is

    i = d(xi, yi) d(xi, y i ) (4) We define the mean distortion decrease

    (MDD)

    analyzed by introducing a change in distortion

    = 1 (d(x , y ) – d(x , y ))

    (5)

    concept. The deblocking operation results in the enhancement of image quality in some areas, while degrading in other areas.

    Channel

    Encoder

    Encoder

    Decoder

    Decoder

    Deblocking Filter (LPF

    / POCS)

    Deblocking Filter (LPF

    / POCS)

    X Y

    Y

    Fig1: Block diagram showing JPEG compression

    X Original Image Y Compressed/

    N iA i i i i

    The distortion may also increase at other pixels by application of the deblocking filter. We similarly define the istortion increase region (DIR)B

    iB, if d(xi,)<d(xi,y i) (6)

    The amount of distortion increase for the ith pixel in the DIRB is

    i=d xi,y i -d(xi,yi) (7) Where N is the number of pixels in the image.

    Similarly the mean distortion increase (MDI) is

    Decoded Image

    Y- Deblocked Image

    = 1 (d(x , y ) – d(x , y ))

    (8)

    N iB i i i i

    The difference between MDD and MDI can be represented as Mean distortion change (MDC) and is given by

    = (9)

    From this it can be stated that the deblocking operation is likely successful if > 0.This is because the mean distortion decrease is larger than the mean distortion increase. Nevertheless, the level of perceptual improvement or loss does not meet these conditions. Based on these conditions, the effect of deblocking filters can be analyzed.

    1. Low pass filter: A simple L×L lowpass deblocking filter can be represented as

To Measure the quality degradation of an available distorted image with reference to the original image, a class of quality assessment metrics called full reference (FR) are considered. Full reference metrics perform distortion measures having full access to the original image. The quality assessment metrics are estimated as follows

  1. PSNR : Peak Signal-to-Noise Ratio (PSNR) and mean Square error are most widely used full reference (FR) QA metrics [2], [13].As before X is the reference image and Y is the test image. The error signal between X and Y

    = 2 .

    is assumed as e. Then

    =1

    (10)

    ,

    , = 1 2 = 1

    Where N(xi) represent Neighborhood of pixel

    2 (11)

    =1

    =1

    xi

    , = 10

    2552

    g represents deblocking operation function

    hkrepresents Kernel for the L×L filter

    (12)

    10 (,)

    xi,k represents the kth pixel in the L×L neighbourhood

    of pixel

    While lowpass filter is used as deblocking filter to reduce blocking artifacts, the distortion will decrease for some pixels defined by (DDR-A)and the distortion will likely increase for some pixels defined by (DIR-B)and it is possible that < 0 could result. The image will be degraded due to blurring as critical high frequency is lost.

    1. POCS: Deblocking algorithms based upon projection into convex sets (POCS) have demonstrated good performance for reducing blocking artifacts and have proved popular [9]-[13]. In POCS Projection operation is done in the DCT domain and lowpass filtering operation is done in the spatial domain. Forward DCT and inverse DCT operations are required because the lowpass filtering and the

    Where N represent Number of pixels in an image. However, The PSNR does not correlate well with perceived visual Quality[14],[15]- [18].

  2. SSIM: The Structural similarity (SSIM) metric aims to measure quality by capturing the similarity of images [2]. Three aspects of similarity: Luminance, contrast and structure is determined and their product is measured. Luminance comparison function l(X,Y) for reference image X and test image Y is defined as below

    2 2

    2 2

    , = 2 +1

    + +1

    (13)

    Where µx and µy are the mean values of X and Y respectively and C1 is the stabilization constant.

    Similarly the contrast comparison function

    c(X, Y) is defined as

    projection operations are performed in various

    , = 2 +2

    2 2

    2 2

    + +2

    (14)

    domains. Convergence require Multiple iterations and the lowpass filtering, DCT, Projection, IDCT operations require one iteration. POCS filtered images converge to an image that does not exhibit blocking artifacts

    under certain conditions [9], [12], [13]. But

    Where the standard deviation of X and Y are represented as x and y and C2 is the stabilization constant.

    The structure comparison function s(X, Y) is defined as

    computational complexity is more as it requires more iterations.

    , = +3

    +3

    (15)

    Where xy represents correlation between X and Y and C3 is a constant that provides stability.

    By combining the three comparison functions, The SSIM index is obtained as below

    , =

    Let and be the horizontal and vertical dimensions of the image I. Let be the set of horizontal neighboring pixel pairs in

    I. Let be the set of horizontal neighboring pixel pairs that lie across a block

    boundary. Let be the set of horizontal

    [ , ] . [( , ] . [( , ] (16)

    neighboring pixel

    rs, not lying across a

    and the parameters are set as = = = 1 and C3=C2/2 From the above parameters the SSIM index can be defined as

    2 2 2 2

    2 2 2 2

    , = 2 +1 (2 +2)

    ( + +1)( + +2)

    pai

    block boundary, i.e. = , . Similarly, let be the set of vertical neighboring pixel pairs, and be the set of vertical neighboring pixel pairs lying across block boundaries. Let be the set of vertical neighboring pixel pairs not lying across block boundaries i.e. = .

    (17)

    Symmetric Gaussian weighting functions are used to estimate local SSIM statics. The mean SSIM index pools the spatial SSIM values to evaluate overall image quality [2].

    , = 1 =1 ( )

    Where , , , be the number of

    (18)

    pixel pairs in , ,

    respectively

    and

    Where and are image patches covered by the jth window and the number of local windows over the image are represented by M.

  3. PSNR-B: A new quality metric called PSNR-B which includes ordinary PSNR by

and B is the block size.

Fig. 2 shows a simple example for illustration of pixel blocks with = 8, = 8 , and B=4 . The thick lines represent the block boundaries. In this example = 8 ,

= 48 , = 8 , and = 48 . The

set of pixel pairs in this example re

s a

blocking effect factor is considered. PSNR-B

correlates well with subjective quality when compared to PSNR. Consider an image that contains integer number of blocks such that

= {(y25, y33), (y26,y34),..(y32,y40)}

= {y1, y9),(y9,y17),

the horizontal and vertical dimensions of the

(y ,y

),..(y ,y )}

image are divisible by block dimension and

17 25

56 64

the blocking artifacts occur along the horizontal and vertical dimensions.

Y1

Y9

Y17

Y25

Y33

Y41

Y49

Y57

Y2

Y10

Y18

Y26

Y34

Y42

Y50

Y58

Y3

Y11

Y19

Y27

Y35

Y43

Y51

Y59

Y4

Y12

Y20

Y28

Y36

Y44

Y52

Y60

Y5

Y13

Y21

Y29

Y37

Y45

Y53

Y61

Y6

Y14

Y22

Y30

Y38

Y46

Y54

Y62

Y7

Y15

Y23

Y31

Y39

Y47

Y55

Y63

Y8

Y16

Y24

Y32

Y48

Y56

Y64

Fig2: Example for illustration of pixel blocks

={(y4,y5),(y12,y13),..(y60,y61)}

=(y1,y2),(y2,y3),(y3,y4),(y5,y6),.(y63,y64)

}

Then we define the mean boundary pixel squared difference() and the mean nonboundary pixel squared difference

( )for image y to be

Blocking artifacts will become more visible as the quantization step size increases; mean boundary pixel squared difference will increase relative to mean non boundary pixel square difference. The blocking effect factor is given by

Where

(21)

A decoded image may contain multiple block sizes like 16×16 macro block sizes and 4×4 transform blocks, both contributing to blocking effects. Then the blocking effect factor for kth block is given by

(22)

For overall block sizes BEF is given by

(23)

The mean square error including blocking effects for reference image X and test image Y is defined as follows,

(

(

24)

Finally the proposed PSNR-b is given as,

(25)

The MSE term in (24) measures the distortion between the reference image and the test image , while the BEF term in (24) specifically measures the amount of blocking artifacts just using the test image . These no-reference quality indices claim to be efficient for measuring the amount of blockiness, but may not be efficient for measuring image quality relative to full-reference quality assessment. On the other hand, the MSE is not specific to blocking effects, which can substantially affect subjective quality. We argue that the combination of MSE and BEF is an effective measurement for quality assessment considering both the distortions from the original image and the blocking effects in the test image. The associated quality index

PSNR-B is obtained from the MSE-B by a logarithmic function, as is the PSNR from the MSE. The PSNR-B is attractive since it is specific for assessing image quality, specifically the severity of blocking artifacts.

  1. Quantization is a key element of lossy compression, but information is lost. The amount of compression and the quality can be controlled by the quantization step. As quantization step increases, the quality of the image degrades due to the increase in compression ratio. The trade off exists between compression ratio and deblocked images. The input image is divided into L×L blocks in block transform coding in which each block is transformed independently in to transform coefficients. Therefore an input image block b is transformed into a DCT coefficient block is given by

    = (26)

    Where T is the transform matrix and is the transpose matrix of T. The transform coefficients are then quantized using a scalar quantizer Q

    = = ( ) (27)

    The quantized coefficients are stored or transmitted to decoder. Therefore the output of the decoder is then given by

    = = ( ) (28) Quantization step is represented by . The SSIM index captures the similarity of reference and test images. As the quantization step size becomes larger, the structural differences between reference and test image will generally increase. Hence, the SSIM index and PSNR are monotonically decreasing functions of the quantization step size .

  2. Simulations are performed using Matlab software which possess excellent graphics and matrix handling capabilities . Matlab has a separate toolbox for image processing applications, which provided simpler solutions for many of the problems encountered in this research. In this paper image quality assessment is done by objective measurement in which evaluations are automatic and mathematical defined algorithms. A new image quality metric PSNR-B and well known objective evaluation algorithms for measuring image quality such

    as MSE, PSNR, Structural Similarity Index Metric(SSIM) have used.

    Following operations are applied on the original images.

    1. Compression

    2. Deblocking using LPF, Median filter and POCS

    3. Then the quality of compressed and deblocked images using LPF and POCS are measured and compared using image quality metrics.

Figure 3 PSNR comparisons of cameraman image

Figure 4 SSIM comparisons of cameraman image

Figure 5 PSNR-B comparisons of cameraman image.

Table : Comparison of MSE, PSNR, SSIM, PSNR-B for Cameraman Image

Compressed Image(No filter)

S.No

Quality Metric

Quality Value

1

MSE

0.1933

2

PSNR

27.6343

3

SSIM

0.0120

4

PSNR-B

51.2688

Deblocked Image (LPF)

S.No

Quality Metric

Quality Value

1

MSE

0.1933

2

PSNR

27.6346

3

SSIM

0.0120

4

PSNR-B

51.3122

Deblocked Image (Median Filter)

S.No

Quality Metric

Quality Value

1

MSE

2

PSNR

3

SSIM

4

PSNR-B

Deblocked Image (POCS)

S.No

Quality Metric

Quality Value

1

MSE

0.1930

2

PSNR

27.6380

3

SSIM

0.0131

4

PSNR-B

51.7034

Compressed Image(No filter)

S.No

Quality Metric

Quality Value

1

MSE

0.1933

2

PSNR

27.6343

3

SSIM

0.0120

4

PSNR-B

51.2688

Deblocked Image (LPF)

S.No

Quality Metric

Quality Value

1

MSE

0.1933

2

PSNR

27.6346

3

SSIM

0.0120

4

PSNR-B

51.3122

Deblocked Image (Median Filter)

S.No

Quality Metric

Quality Value

1

MSE

2

PSNR

3

SSIM

4

PSNR-B

Deblocked Image (POCS)

S.No

Quality Metric

Quality Value

1

MSE

0.1930

2

PSNR

27.6380

3

SSIM

0.0131

4

PSNR-B

51.7034

larger SSIM values. The 3×3 and 7×7 lowpass filters resulted in lower SSIM values than the low filter case when the quantization step size was small ( 30).

Consider a sample image cameraman as shown in the above figure. Simulations are perfored on these image and quality metrics are estimated. Quantization step sizes of 10, 20, 30 , 40 , 50 ,100 are used in the simulations to analyse the effects of quantization step size

A.PSNR Analysis:

Figure 3 shows that when the quantization step size was large ( 80), the 3×3 filter, 7×7filter and POCS methods resulted in higher PSNR than the no filter case on both the images. All the deblocking methods produced lower PSNR when the quantization step size was small ( 30).

B.SSIM Analysis :

Figure 4 shows that when the quantization step was large ( 80), on the two images, all the filtered methods resulted in

C.PSNR-B Analysis:

For large quantization steps, the PSNR-B values improved for the two images by employing lowpass filtering methods. The POCS resulted in improved PSNR-B values compared to the no filtered case, even at small quantization step size.

Image quality assessment plays an important role in various image processing applications. Experimental results indicate that MSE and PSNR are very simple, easy to implement and have low computational complexities. But these methods do not show good results. MSE and PSNR are acceptable for image similarity measure only when the images differ by simply increasing distortion of a certain type. But they fail to capture image quality when they are used to measure across distortion types. SSIM is widely used method for measurement of image quality. It works accurately can measure better across distortion types as compared to MSE and PSNR, but fails in case of highly blurred image. We have tested our algorithm on few natural images. Those sample images are shown in above figure. We have found that PSNR-B is the better quality metric for JPEG compression which shows better performance than the other well known quality metrics

.This Analysis will brings out a new trend in the quality metrics of the image and proves to be efficient than the conventional metrics.

For future work, quality studies of PSNR-B and perceptually proven index SSIM in conjunction are of considerable value, not only for studying deblocking operations, but also for other image improvement applications, such as restoration, denoising, enhancement, and so on.

References

  1. Y. Yang, N. P. Galatsanos, and A. K. Katsaggelos, Projection-based spatially adaptive reconstruction of block-transform compressed images, IEEE Trans. Image Process., vol. 4, no. 7, pp. 896908, Jul. 1995.

  2. Y. Yang, N. P. Galatsanos, and A. K. Katsaggelos, Regularized reconstruction to reduce blocking artifacts of block discrete cosine transform compressed images, IEEE Trans. Circuits Syst. Video Technol., vol. 3, no. 6, pp. 421432, Dec. 1993.

  3. H. Paek, R.-C. Kim, and S. U. Lee, On the POCS-based postprocessing technique to reduce the blocking artifacts in transform coded images, IEEE Trans. Circuits Syst. Video Technol., vol. 8, no. 3, pp. 358 367,1998.

  4. S. H. Park and D. S. Kim, Theory of projection onto narrow quantization constraint set and its applications, IEEE Trans. Image Process., vol. 8, no. 10, pp. 13611373, Oct. 1999.

  5. A. Zakhor, Iterative procedure for reduction of blocking effects in transform image coding, IEEE Trans. Circuits Syst. Video Technol., vol. 2, no. 1, pp. 9195, Mar. 1992.

  6. S. Liu and A. C. Bovik, Efficient DCT- domain blind measurement and reduction of blocking artifacts, IEEE Trans. Circuits Syst. Video

    Technol., vol. 12, no. 12, pp. 11391149, Dec.

    2002.

  7. Z.Wang and A. C. Bovik, Blind measurement of blocking artifacts in images, in Proc. IEEE Int. Conf. Image Process., Vancouver, Canada, Oct. 2000, pp. 981984.

  8. Y.Yang, N.P.Galatsanos, and A.K.Katsaggelos, Regularized reconstruction to reduce blocking artifacts of block discrete cosine transform compressed images, IEEE Trans. Circuits Syst. Video Technol., vol.3, no.6, pp.421-432, Dec.1993.

  9. Z.Wang, A.C.Bovik, and E.P.Simoncelli, Multi-scale structural similarity for image quality assessment, in Proc. IEEE Asilomar Conf.Signal

    Syst. Comput.,No v.2003.

  10. Y.Jeong, I.Kim, and H.Kang, Practical projection based postprocessing of block coded images with fast convergence rate, IEEE Trans. Circuits Syst. Video Technol., vol.10,no.4 , pp.617-623,Jun.2000.

  11. P. List, A. Joch, J. Laimena, J. Bjøntegaard, and M. Karczewicz, Adaptive deblocking filter, IEEE Trans. Circuits Syst. Video Technol., vol. 13, no. 7, pp. 614619, Jul. 2003.

  12. A. M. Eskicioglu and P. S. Fisher, Image quality measures and their

    performance, IEEE Trans. Communications, vol. 43, pp. 29592965, Dec. 1995.

  13. G. Zhai, W. Zhang, X. Yang, W. Lin, and

Y. Xu, No-reference noticeable blockiness estimation in images, Signal Process. Image Commun., vol. 23, pp. 417432, 2008.

Leave a Reply