Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 3.27 KB

File metadata and controls

36 lines (25 loc) · 3.27 KB

Description of the experiment

The original texture, the texture after smoothing (Gaussian) and the Laplacian were analyzed. The analysis implies obtaining statistical characteristics, as well as constructing a frequency distribution of pixels

The experiment was conducted with only one level of decomposition, that is, only one Gaussian texture and only one Laplacian are required to reconstruct the image

Results

Statistical characteristics

Statistical characteristics of textures include the analysis of each channel separately, as well as the analysis of the gray image

Type Image R channel G channel B channel Common stats
(in grayscale)
Origin image
(512x512)
Bricks085_512-PNG_Color Mean: 149.35
Variance: 495.53
std: 22.26
Range: 40 - 232
Mean: 116.94
Variance: 1252.56
std: 35.39
Range: 44 - 232
Mean: 99.15
Variance: 1169.55
std: 34.20
Range: 37 - 233
Mean: 124.60
Variance: 938.12
Blurred image
(256x256)
blurred_0 Mean: 149.34
Variance: 393.28
std: 19.83
Range: 62 - 201
Mean: 116.93
Variance: 1063.87
std: 32.62
Range: 60 - 194
Mean: 99.13
Variance: 998.51
std: 31.60
Range: 54 - 185
Mean: 124.59
Variance: 788.07
Laplacian image
(512x512)
laplacian Mean: 108.59
Variance: 14609.22
std: 120.87
Range: 0 - 255
Mean: 115.55
Variance: 14622.05
std: 120.92
Range: 0 - 255
Mean: 119.21
Variance: 14779.35
std: 121.57
Range: 0 - 255
Mean: 113.89
Variance: 12279.17

Histograms

Original image

orig_hist

Blurred image

blur0

Laplacian image

lap

Conclusions

The texture obtained after applying a Gaussian filter has a histogram similar to the original image. This texture concentrates the main information contained in the original, but its main advantage is that the resulting texture is half the size of the original for each dimension. Therefore, baking the resulting texture requires a hash grid that is four times smaller than the original.

Furthermore, statistical analysis of the Laplacian shows a large standard deviation and a wide range of values, but the histogram shows that a narrow band of pixel values ​​is required to preserve the Laplacian. Although the Laplacian size is identical to the original image, this narrow band allows for the use of much fewer bits (quantization) to store information without loss of precision.

In my opinion, we can get good compression with pre-processing of the image using the current algorithm.