EECS 209A Rendering Techniques for Biomedical Imaging. ( x)

Similar documents
Wavelet Transform (WT) & JPEG-2000

A NEW ROBUST IMAGE WATERMARKING SCHEME BASED ON DWT WITH SVD

CORRELATION BASED CAR NUMBER PLATE EXTRACTION SYSTEM

CHAPTER 3 WAVELET DECOMPOSITION USING HAAR WAVELET

A combined fractal and wavelet image compression approach

IMAGE DE-NOISING IN WAVELET DOMAIN

QR Code Watermarking Algorithm based on Wavelet Transform

Compression of RADARSAT Data with Block Adaptive Wavelets Abstract: 1. Introduction

Analysis of Image and Video Using Color, Texture and Shape Features for Object Identification

Lecture 6: Edge Detection

Query by Fax for Content-Based Image Retrieval

Review and Implementation of DWT based Scalable Video Coding with Scalable Motion Coding.

Computer Vision 2. SS 18 Dr. Benjamin Guthier Professur für Bildverarbeitung. Computer Vision 2 Dr. Benjamin Guthier

5. Feature Extraction from Images

A COMPARISON OF WAVELET-BASED AND RIDGELET- BASED TEXTURE CLASSIFICATION OF TISSUES IN COMPUTED TOMOGRAPHY

Image Enhancement Techniques for Fingerprint Identification

COMPARISONS OF DCT-BASED AND DWT-BASED WATERMARKING TECHNIQUES

Locating 1-D Bar Codes in DCT-Domain

PET AND MRI BRAIN IMAGE FUSION USING REDUNDANT WAVELET TRANSFORM

CHAPTER 3 DIFFERENT DOMAINS OF WATERMARKING. domain. In spatial domain the watermark bits directly added to the pixels of the cover

Texture Analysis of Painted Strokes 1) Martin Lettner, Paul Kammerer, Robert Sablatnig

Image Classification Using Wavelet Coefficients in Low-pass Bands

Digital filters. Remote Sensing (GRS-20306)

International Journal of Wavelets, Multiresolution and Information Processing c World Scientific Publishing Company

Denoising and Edge Detection Using Sobelmethod

Wavelet Transform in Face Recognition

Comparison of Digital Image Watermarking Algorithms. Xu Zhou Colorado School of Mines December 1, 2014

Image Transformation Techniques Dr. Rajeev Srivastava Dept. of Computer Engineering, ITBHU, Varanasi

Robust Image Watermarking based on Discrete Wavelet Transform, Discrete Cosine Transform & Singular Value Decomposition

APPLICATION OF CONTOURLET TRANSFORM AND MAXIMUM ENTROPY ON DIGITAL IMAGE WATERMARKING

COMPARATIVE STUDY OF IMAGE FUSION TECHNIQUES IN SPATIAL AND TRANSFORM DOMAIN

TERM PAPER ON The Compressive Sensing Based on Biorthogonal Wavelet Basis

An Intuitive Explanation of Fourier Theory

Structured Light II. Guido Gerig CS 6320, Spring (thanks: slides Prof. S. Narasimhan, CMU, Marc Pollefeys, UNC)

Spatial Enhancement Definition

Segmentation algorithm for monochrome images generally are based on one of two basic properties of gray level values: discontinuity and similarity.

Digital Image Steganography Techniques: Case Study. Karnataka, India.

FAST AND EFFICIENT SPATIAL SCALABLE IMAGE COMPRESSION USING WAVELET LOWER TREES

Stripe Noise Removal from Remote Sensing Images Based on Stationary Wavelet Transform

CHAPTER 6. 6 Huffman Coding Based Image Compression Using Complex Wavelet Transform. 6.3 Wavelet Transform based compression technique 106

Palmprint Recognition Using Transform Domain and Spatial Domain Techniques

Image Compression Techniques

Lecture 7: Most Common Edge Detectors

Fuzzy Logic Based Hybrid Image Compression Technology

Image Fusion Using Double Density Discrete Wavelet Transform

CHAPTER 6 DETECTION OF MASS USING NOVEL SEGMENTATION, GLCM AND NEURAL NETWORKS

Digital Image Processing. Chapter 7: Wavelets and Multiresolution Processing ( )

Lectures Remote Sensing

DETECTION OF SMOOTH TEXTURE IN FACIAL IMAGES FOR THE EVALUATION OF UNNATURAL CONTRAST ENHANCEMENT

International Journal of Advanced Research in Computer Science and Software Engineering

IMAGE DIGITIZATION BY WAVELET COEFFICIENT WITH HISTOGRAM SHAPING AND SPECIFICATION

Presentation and analysis of multidimensional data sets

Image denoising in the wavelet domain using Improved Neigh-shrink

Wavelet Based Image Retrieval Method

Handwritten Script Recognition at Block Level

A New Approach to Compressed Image Steganography Using Wavelet Transform

ISSN (ONLINE): , VOLUME-3, ISSUE-1,

Fuzzy Inference System based Edge Detection in Images

Range Imaging Through Triangulation. Range Imaging Through Triangulation. Range Imaging Through Triangulation. Range Imaging Through Triangulation

Image Compression using Haar Wavelet Transform and Huffman Coding

Image Compression & Decompression using DWT & IDWT Algorithm in Verilog HDL

Comparative Analysis of Image Compression Using Wavelet and Ridgelet Transform

Chapter 3 Set Redundancy in Magnetic Resonance Brain Images

DYADIC WAVELETS AND DCT BASED BLIND COPY-MOVE IMAGE FORGERY DETECTION

TEXT DETECTION AND RECOGNITION IN CAMERA BASED IMAGES

DWT Based Text Localization

A New Algorithm for QR Code Watermarking Technique For Digital Images Using Wavelet Transformation Alikani Vijaya Durga, S Srividya

A Robust Color Image Watermarking Using Maximum Wavelet-Tree Difference Scheme

Extraction of Color and Texture Features of an Image

A Image Comparative Study using DCT, Fast Fourier, Wavelet Transforms and Huffman Algorithm

Feature Based Watermarking Algorithm by Adopting Arnold Transform

OCR For Handwritten Marathi Script

Image Segmentation. 1Jyoti Hazrati, 2Kavita Rawat, 3Khush Batra. Dronacharya College Of Engineering, Farrukhnagar, Haryana, India

Noise Model. Important Noise Probability Density Functions (Cont.) Important Noise Probability Density Functions

Part 3: Image Processing

Edge detection. Goal: Identify sudden. an image. Ideal: artist s line drawing. object-level knowledge)

Adaptive Quantization for Video Compression in Frequency Domain

Defect Inspection of Liquid-Crystal-Display (LCD) Panels in Repetitive Pattern Images Using 2D Fourier Image Reconstruction

Image processing of coarse and fine aggregate images

Nonlinear Approximation of Spatiotemporal Data Using Diffusion Wavelets

Reversible Wavelets for Embedded Image Compression. Sri Rama Prasanna Pavani Electrical and Computer Engineering, CU Boulder

Image Compression. -The idea is to remove redundant data from the image (i.e., data which do not affect image quality significantly)

Document Text Extraction from Document Images Using Haar Discrete Wavelet Transform

Vivekananda. Collegee of Engineering & Technology. Question and Answers on 10CS762 /10IS762 UNIT- 5 : IMAGE ENHANCEMENT.

3D Computer Vision. Structured Light II. Prof. Didier Stricker. Kaiserlautern University.

C E N T E R A T H O U S T O N S C H O O L of H E A L T H I N F O R M A T I O N S C I E N C E S. Image Operations II

ACCELERATION OF IMAGE RESTORATION ALGORITHMS FOR DYNAMIC MEASUREMENTS IN COORDINATE METROLOGY BY USING OPENCV GPU FRAMEWORK

Time Stamp Detection and Recognition in Video Frames

IMAGE COMPRESSION USING HYBRID TRANSFORM TECHNIQUE

Performance Analysis of SPIHT algorithm in Image Compression

Design of direction oriented filters using McClellan Transform for edge detection

DCT-BASED IMAGE COMPRESSION USING WAVELET-BASED ALGORITHM WITH EFFICIENT DEBLOCKING FILTER

Using Shift Number Coding with Wavelet Transform for Image Compression

Computer Science Faculty, Bandar Lampung University, Bandar Lampung, Indonesia

Texture Segmentation by using Haar Wavelets and K-means Algorithm

Image Segmentation Based on Watershed and Edge Detection Techniques

CHAPTER 3 SURFACE ROUGHNESS

TEXTURE ANALYSIS USING GABOR FILTERS

IMAGE ENHANCEMENT in SPATIAL DOMAIN by Intensity Transformations

Structured Light II. Thanks to Ronen Gvili, Szymon Rusinkiewicz and Maks Ovsjanikov

Transcription:

EECS 209A Rendering Techniques for Biomedical Imaging Final Project Wavelet-based fabric texture characterization. Introduction Wavelet decomposition techniques are procedures used to divide a given function into different frequency components and study each component with a resolution that matches its scale. Similar to a Fourier transform that represents a given signal based on its frequential components, a wavelet transform is the representation of a function by wavelets. When working with Fourier transform-based techniques, a function is divided into its multiple frequential components, which are calculated as follows: π f ( x) = a Coefficients 2π ( a cos( kx) + b sin( kx ) 0 + k k ) k= 2π a 0 = π f ( x) dx 2 a k = f ( x) cos( kx) dx b k = 0 π 0 2π 0 f ( x) sin( kx) dx On the other hand, the wavelets are scaled and translated copies of a finite-length or fast-decaying oscillating waveform. Wavelet transforms have advantages over traditional Fourier transforms for representing functions that have discontinuities and sharp peaks, such as square pulse shaped signals, which are commonly used to represent image signals, being each pixel represented by its value multiplied by a square pulse. Representing such kinds of functions (e.g. images) by a Fourier decomposition would require an infinite number of coefficients. Therefore, wavelet decomposition-based techniques are appropriate for different kinds of image processing because they use this already mentioned different set of basis functions, the wavelets. These basis functions are orthogonal, have finite support and are box shaped (Figure ). W 0 - Figure : Example of a Wavelet Another advantage of wavelet decomposition with respect of Fourier analysis is that the spatial information is preserved. The main difference is that wavelets are localized in

both time and frequency whereas the standard Fourier transform is only localized in frequency. The Short-time Fourier transform (STFT) is also time and frequency localized but there are issues with the frequency time resolution and wavelets often give a better signal representation using multiresolution analysis... Related work As described in [], wavelet transforms are now being adopted for a vast number of applications, often replacing the conventional Fourier transform. Many areas of physics have seen this paradigm shift, including molecular dynamics, ab initio calculations, astrophysics, density-matrix localisation, seismic geophysics, optics, turbulence and quantum mechanics. Dealing with image processing, many wavelet-based works and applications are found among the literature. One use of wavelets is in data compression. Like some other transforms, wavelet transforms can be used to transform data, then encode the transformed data, resulting in effective compression. As an example, JPEG 2000 is an image compression technique based on wavelet decomposition. Other applications such as signal filtering are possible. Adaptive image filtering techniques are used to distinguish image features from noise and eliminate it as desired considering the characteristics of the noise. For example, usually high-frequency noise is more distracting than low-frequency noise, therefore a frequency specific solution is needed. Wavelet-based techniques are a good solution for band-pass filtering. In [2], an image processing algorithm is presented that gathers these two already mentioned applications. The authors present a system that, by means of wavelet decomposition, allows image de-noising and compression. 2. Wavelet-based fabric texture characterization This project s aim is to develop an algorithm that is able to analyse and distinguish different geometric patterns and textures for fabric. Basically, the different textures that will be analysed are the ones shown in Figure 2, which are vertical stripes, horizontal stripes and check board patterns. Vertical stripes Horizontal stripes Checkboard pattern Figure 2: Texture patterns analyzed by the algorithm The algorithm analyses the frequency components of the fabric pattern as well as the kind of pattern the fabric presents. Both results are acquired by a wavelet decomposition-based procedure.

2.. Algorithm s theoretical basis In order to detect the fabric s pattern and determine its frequency, the algorithm proceeds on a multiple level wavelet decomposition of the image (Figure 3). This decomposition is realised many times, and each time one frequency component is eliminated. Figure 3: Two level Wavelet decomposition When dealing with vertical and horizontal stripes, or a check board pattern, the behaviour of the wavelet decomposition is as follows. As already mentioned, on each level of the decomposition, one frequency component is eliminated. If the image does not contain this specific frequency component, the resulting HL, LH and HH regions of the decomposition have a value close to zero. On the contrary, if the image does contain this specific frequency, the value of one of this regions will be high, which indicates that the image contains that frequency. Whether the high value is located in the HL, LH, or HH region, determines the axis in which the frequency component is located. As the decomposition is done in multiple levels, every possible frequency (from higher to lower frequencies) is scanned. This procedure allows the frequency decomposition of a given image. As an example, Figures 4 to 9 depict this analysis for both a vertical line pattern and checkboard pattern for different frequencies. 0 2 0 0 0 2 0 0 6 4 0 0 Initial image Freq_x= Freq_x=2 Freq_x=3 Figure 4: Multilevel wavelet decomposition of a vertical stripes pattern (freq_x=3)

0 2 0 2 0 2 0 2 0 2 0 2 0 2 0 2 6 6 4 4 6 6 4 4 Initial image Freq_x= Freq_x=2 Figure 5: Multiple level wavelet decomposition of a vertical stripes pattern (freq_x=2) Initial image 6 6 6 6 4 4 4 4 6 6 6 6 4 4 4 4 6 6 6 6 4 4 4 4 6 6 6 6 4 4 4 4 Freq_x= Figure 6: Multiple level wavelet decomposition of a vertical stripes pattern (freq_x=) 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 0 0 2 2 0 0 0 2 0 0 2 0 0 0 6 0 0 4 Initial image Freq_xy= Freq_xy=2 Freq_xy=3 Figure 7: Multiple level wavelet decomposition of a check board pattern (freq_xy=3) 2 2 0 0 2 2 0 0 2 2 0 0 2 2 0 0 2 2 0 0 2 2 0 0 2 2 0 0 2 2 0 0 0 2 0 2 2 0 2 0 0 2 0 2 2 0 2 0 6 6 0 0 6 6 0 0 0 0 4 4 0 0 4 4 Initial image Freq_x= Freq_x=2 Figure 8: Multiple level wavelet decomposition of a check board pattern (freq_xy=2)

2 0 2 0 2 0 2 0 2 0 2 0 2 0 2 0 2 0 2 0 2 0 2 0 2 0 2 0 2 0 2 0 Initial image 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 Freq_x= Figure 9: Multiple level wavelet decomposition of a check board pattern (freq_xy=) Therefore, by means of a multilevel wavelet decomposition, the frequency of a fabric pattern can be determined. Furthermore, the kind of pattern can be determined depending on where the frequency component is located. For example, as shown above, the algorithm determines a check board pattern when a frequency component is located on the HH region of the wavelet decomposition. 2.2. Algorithmic structure The algorith structure is defined as follows. First of all the user selected image is loaded into a temporal buffer. Input images must be Portable Gray Map (.pgm) formatted, square and with each size being equal of a power of two. Then, by means of determining the image size, a maximum number of iterations is determined as follows: Maximum number of iterations= log 2 (size_x)=log 2 (size_y) For example, for a 52x52 pixels image, the maximum number of iterations is 9. Then, the algorithm proceeds to a multilevel wavelet decomposition of the image. The image is analysed and, if no frequencial component is detected, the next level of decomposition computes the wavelet decomposition of the last LL area. Following this procedure, the image that is analysed is 4 times smaller (2 times smaller in each dimension) at every iteration. When the wavelet-based analyses has been done for every possible iteration, the results are shown according to the frequencies and patterns detected. This detection is simply done by averaging the values of each HH, LH, HL regions and comparing these averaged values with a predefined threshold that sets the sensitivity of the algorthm s detection. This whole procedure is depicted by Figure 0 and the core of the algorithm s core code is shown in Figure.

Figure 0: Multilevel wavelet decomposition printf("starting detection...\n"); i=0; while(size_x/pow(2,i)>){ printf("iteration number %d, starting wavelet decomposition...\n",i); wavelet_decomposition(i); printf("wavelet decomposition for iteration %d done, checking for texture...\n",i); if(!x_y_done){ if(check_hh(i)==){ x_y_done=; f_x_y=i; break; if(!x_done){ if(check_hl(i)==){ x_done=; f_x=i+; break; if(!y_done){ if(check_lh(i)==){ y_done=; f_y=i+; break; i++;

if(f_x==0 && f_y==0 && f_x_y==0){ printf("constant image.\n"); printf("frequency x: %d; Frequency y:%d.\n",f_x,f_y); else if(f_y==0 && f_x_y==0){ printf("vertical lines pattern.\n"); printf("frequency x: %d.\n",f_x); else if(f_x==0 && f_x_y==0){ printf("horizontal lines pattern.\n"); printf("frequency y: %d.\n",f_y); else if(f_x_y!=0){ printf("checkboard pattern.\n"); printf("frequency : %d.\n",f_x_y); 3. Results Figure : Algorithms core code The results are obtained in two different stages. First of all, a set of testing images is generated. After testing the algorithm with these testing images, the detection technique is applied to actual fabric pattern images. 3.. Testing images By means of an image generating custom algorithm, a set of test images is generated. Basically, these images are vertical stripes, horizontal stripes and check board patterns of different frequencies. This kind of images allow us to test the algorithm in the multiple wavelet decomposition stage step by step. For example, Figure 2 shows two of these test images. In this case, they are a vertical stripes and horizontal stripes pattern, both with the highest frequency possible, which is with a change on the pixel value every single pixel. Applying this images to the algorithm core will allow a test for the first iteration of the multilevel wavelet-based analysis. Figure 2: Test images with frequency By using these test images, the algorithm is tested and ready to be applied to actual fabric patterns. For these next analysis, the threshold for detection will need to be

adjusted in order to detect smoother variations, since the test images contain just two levels of intensity (0:black, 255:white). 3.2. Fabric texture detection Finally, actual sample images from fabric are obtained from the Internet. These images are transformed to grey scale and resized to be square and with size equal to a power of two. After this process, the algorithm is tested using these images. In this case, the results achieved by the algorithm are less optimal and they tend to present incorrect detections or even lack of detection in some cases. This is mainly because of the characteristics of this kind of images. For example, the vertical lines image on Figure 2 presents a clear vertical stripes pattern. However, the colours of each line don't present abrupt changes of intensity from one stripe to the other one, and this smoothness of the transitions is increased when the image is transformed to grey scale. This can be observed in Figure 3. Figure 3: Vertical stripes pattern transformed to gray scale Also, the algorithm has trouble to analyse fabric patterns whose stripes have not the same width. 4. Conclusions A wavelet-based algorithm to analyse and detect patterns in fabric samples have been presented. By means of a multi level wavelet decomposition, three different patterns (vertical stripes, horizontal stripes and check board pattern) are detected and through the same analysis, the frequency of each pattern is calculated. Using a custom image generator algorithm, a set of testing images is created. These test images are used to test the algorithm in a sequential way, by selecting the number of iterations desired, which are related to the width of the stripes/squares of each pattern. By using these images, the algorithm performs good results and detects the three possible patterns. Furthermore, it is able to calculate the frequency of each pattern. However, when applying the algorithm to actual fabric samples, the results are not that good. After transforming the fabric colour images to grey scale, in some cases the transitions between the stripes/squares are not strong enough to detect the pattern. Furthermore, a typical trend in fabric samples are stripes with different width, which leads to multiple frequency component, which the algorithm can t detect.

5. References [] WikiPedia (http://en.wikipedia.org/wiki/wavelet) [2] S. GRACE CHANG, BIN YU, MARTIN VETTERLI. Adaptive Wavelet Thresholding for Image Denoising and Compression. IEEE Transactions on Image Processing, vol. 9, no. 9, September 2000 [3] MALLET, Y.[YVETTE], COOMANS, D., KAUTSKY, J., DE VEL, O., Classification Using Adaptive Wavelets for Feature-Extraction, IEEE Transactions on Pattern Analysis and Machine Intelligence, Volume: 9 Issue: 0, October 997 [4] MAGLI, E.; OLMO, G., "Integrated compression and linear feature detection in the wavelet domain", Proceedings International Conference on Image Processing, 2000.Volume 3, Issue, 2000 Page(s):889-892 vol.3 [5] Images from Google Images