2D-DST scheme for image mirroring and rotation

Similar documents
Sequence Mirroring Properties of Orthogonal Transforms Having Even and Odd Symmetric Vectors. K. R. Rao

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

Complexity Reduction Tools for MPEG-2 to H.264 Video Transcoding

MANY image and video compression standards such as

PERFORMANCE ANALYSIS OF INTEGER DCT OF DIFFERENT BLOCK SIZES USED IN H.264, AVS CHINA AND WMV9.

Implementation and analysis of Directional DCT in H.264

Efficient Halving and Doubling 4 4 DCT Resizing Algorithm

MPEG-4: Simple Profile (SP)

EE 5359 MULTIMEDIA PROCESSING SPRING Final Report IMPLEMENTATION AND ANALYSIS OF DIRECTIONAL DISCRETE COSINE TRANSFORM IN H.

Performance analysis of Integer DCT of different block sizes.

A Fast Scheme for Downsampling and Upsampling in the DCT

SOME CONCEPTS IN DISCRETE COSINE TRANSFORMS ~ Jennie G. Abraham Fall 2009, EE5355

Digital Signal Processing Lecture Notes 22 November 2010

EUSIPCO A SPACE-VARIANT CUBIC-SPLINE INTERPOLATION

A deblocking filter with two separate modes in block-based video coding

CS 335 Graphics and Multimedia. Geometric Warping

Ognyan Ivanov Zhelezov. Dep. of Development, Firm Data Consulting, Sofia, Bulgaria

AN EFFICIENT VLSI IMPLEMENTATION OF IMAGE ENCRYPTION WITH MINIMAL OPERATION

Outline Introduction MPEG-2 MPEG-4. Video Compression. Introduction to MPEG. Prof. Pratikgiri Goswami

Contrast Prediction for Fractal Image Compression

Jacobian: Velocities and Static Forces 1/4

INVERSE TRIGONOMETRIC FUNCTIONS

FPGA Implementation of Low Complexity Video Encoder using Optimized 3D-DCT

Introduction ti to JPEG

4. Two Dimensional Transformations

Aliasing. Can t draw smooth lines on discrete raster device get staircased lines ( jaggies ):

Lecture 12: Algorithmic Strength 2 Reduction in Filters and Transforms Saeid Nooshabadi

TRANSFORMATIONS AND CONGRUENCE

EE 5359 Low Complexity H.264 encoder for mobile applications. Thejaswini Purushotham Student I.D.: Date: February 18,2010

STUDY AND IMPLEMENTATION OF VIDEO COMPRESSION STANDARDS (H.264/AVC, DIRAC)

Week 14. Video Compression. Ref: Fundamentals of Multimedia

COMPRESSED DOMAIN SPATIAL SCALING OF MPEG VIDEO BIT- STREAMS WITH COMPARATIVE EVALUATION

JPEG Copy Paste Forgery Detection Using BAG Optimized for Complex Images

Image Compression for Mobile Devices using Prediction and Direct Coding Approach

Image Compression Algorithm and JPEG Standard

Multiframe Blocking-Artifact Reduction for Transform-Coded Video

HYBRID TRANSFORMATION TECHNIQUE FOR IMAGE COMPRESSION

Automatic Video Caption Detection and Extraction in the DCT Compressed Domain

Module 7 VIDEO CODING AND MOTION ESTIMATION

AN ANALYTICAL STUDY OF LOSSY COMPRESSION TECHINIQUES ON CONTINUOUS TONE GRAPHICAL IMAGES

A NEW ENTROPY ENCODING ALGORITHM FOR IMAGE COMPRESSION USING DCT

Overview. Videos are everywhere. But can take up large amounts of resources. Exploit redundancy to reduce file size

Compression Artifact Reduction with Adaptive Bilateral Filtering

Efficient Block Matching Algorithm for Motion Estimation

Introduction to Wavelets

ANALYSIS OF DIFFERENT DOMAIN WATERMARKING TECHNIQUES

10.2 Video Compression with Motion Compensation 10.4 H H.263

Objective: Introduction: To: Dr. K. R. Rao. From: Kaustubh V. Dhonsale (UTA id: ) Date: 04/24/2012

Aiyar, Mani Laxman. Keywords: MPEG4, H.264, HEVC, HDTV, DVB, FIR.

0.1 Unfolding. (b) (a) (c) N 1 y(2n+1) v(2n+2) (d)

Jacobian: Velocities and Static Forces 1/4

A Nonoblivious Image Watermarking System Based on Singular Value Decomposition and Texture Segmentation

MULTIDIMENSIONAL SIGNAL, IMAGE, AND VIDEO PROCESSING AND CODING

Adaptive Up-Sampling Method Using DCT for Spatial Scalability of Scalable Video Coding IlHong Shin and Hyun Wook Park, Senior Member, IEEE

VLSI Computational Architectures for the Arithmetic Cosine Transform

Last Lecture. Edge Detection. Filtering Pyramid

CMPT 365 Multimedia Systems. Media Compression - Video

Image Gap Interpolation for Color Images Using Discrete Cosine Transform

Multimedia Communications. Transform Coding

M.N.MURTY Department of Physics, National Institute of Science and Technology, Palur Hills, Berhampur , Odisha (INDIA).

DIGITAL TELEVISION 1. DIGITAL VIDEO FUNDAMENTALS

Implementation of Lifting-Based Two Dimensional Discrete Wavelet Transform on FPGA Using Pipeline Architecture

Adaptive Recovery of Image Blocks Using Spline Approach

CSE328 Fundamentals of Computer Graphics: Theory, Algorithms, and Applications

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

Module 9 AUDIO CODING. Version 2 ECE IIT, Kharagpur

Reversible Data Hiding VIA Optimal Code for Image

10. Cartesian Trajectory Planning for Robot Manipulators

SECTION 6-8 Graphing More General Tangent, Cotangent, Secant, and Cosecant Functions

4. Image Retrieval using Transformed Image Content

Secondary Math 3- Honors. 7-4 Inverse Trigonometric Functions

THE TRANSFORM AND DATA COMPRESSION HANDBOOK

Image Warping CSE399b, Spring 07 Computer Vision

Welcome Back to Fundamentals of Multimedia (MR412) Fall, 2012 Chapter 10 ZHU Yongxin, Winson

CHAPTER 9 INPAINTING USING SPARSE REPRESENTATION AND INVERSE DCT

IMPROVED RHOMBUS INTERPOLATION FOR REVERSIBLE WATERMARKING BY DIFFERENCE EXPANSION. Catalin Dragoi, Dinu Coltuc

Design of 2-D DWT VLSI Architecture for Image Processing

System Modeling and Implementation of MPEG-4. Encoder under Fine-Granular-Scalability Framework

Adaptive Quantization for Video Compression in Frequency Domain

Spatial Transform Technique

Evolution of the Discrete Cosine Transform Using Genetic Programming

Robust Image Watermarking based on DCT-DWT- SVD Method

Index. 1. Motivation 2. Background 3. JPEG Compression The Discrete Cosine Transformation Quantization Coding 4. MPEG 5.

AUDIOVISUAL COMMUNICATION

New boundary effect free algorithm for fast and accurate image arbitrary scaling and rotation

Using Shift Number Coding with Wavelet Transform for Image Compression

cosα -sinα sinα cosα 1 sinα cosα 1 sinα cosα 1 sinα cosα 1 sinα sinα sinα X 2 Y 2 cosα (a) (b) (c)

RGB Digital Image Forgery Detection Using Singular Value Decomposition and One Dimensional Cellular Automata

Three Dimensional Motion Vectorless Compression

Use of Local Minimization for Lossless Gray Image Compression

EE Low Complexity H.264 encoder for mobile applications

Compressive Single Pixel Imaging Andrew Thompson University of Edinburgh. 2 nd IMA Conference on Mathematics in Defence

Haar Wavelet Image Compression

Multimedia Systems Image III (Image Compression, JPEG) Mahdi Amiri April 2011 Sharif University of Technology

Linear Algebra and Image Processing: Additional Theory regarding Computer Graphics and Image Processing not covered by David C.

Multiview Image Compression: Future Challenges and Today s Solutions

Frequency Band Coding Mode Selection for Key Frames of Wyner-Ziv Video Coding

Media - Video Coding: Standards

Motion Estimation Using Low-Band-Shift Method for Wavelet-Based Moving-Picture Coding

Directionally Selective Fractional Wavelet Transform Using a 2-D Non-Separable Unbalanced Lifting Structure

Transcription:

2D-D scheme for image mirroring and rotation Do yeon Kim and K. R. Rao Department of Electrical Engineering he University of eas at Arlington 46 Yates treet, 769, UA E-mail: cooldnk@yahoo.com, rao@uta.edu Abstract. Mirroring an image (horizontally or vertically) and rotation by 9, 8 and 27 in the spatial domain has been implemented by changing the signs of the 2D-DC coefficients of the original image appropriately. his approach leads to an efficient compressed domain-based image mirroring and rotation. his technique is now etended to 2D-D, i.e., 2D-D has properties similar to 2D- DC and can be applied to image mirroring (horizontally or vertically) and also rotation by 9, 8 and 27. We illustrate these methods in video editing application. Introduction Image or video coding standards like JPEG, MPEG-,2,4 and latest H.264 utilize DC or integer DC to compress image or video data. We can compress images to save storage space or transmit and then edit in the compressed-domain. Compressed-domain image manipulation has been introduced by mith and Rowe 2. By using the linearity of the DC, video dissolve and caption insert were processed in the compressed domain. Chang and Messerschmitt 3 introduced a method to reconstruct DC block using neighboring

four DC blocks in the compressed domain based on the fact that the DC is distributive to matri multiplication. Merhav and Bhaskaran 4 introduced fast DC-domain bilinear interpolation and motion compensation. hen, ethi and Bhaskaran 5 introduced logotype insertion in the compressed video. hey showed that DC-domain convolution which corresponds to multiplication in the spatial domain is more efficient because of the orthogonality of the DC. As an etension of these studies, a discrete cosine transform (DC)-domain image flipping scheme has been introduced. 6 We present a similar discrete sine transform (D)-domain 7,8 image mirroring and rotation scheme in this paper. 2 Proposed Algorithm By changing the signs of the D (discrete sine transform) coefficients, we can change the order of input sequence elements into the reverse order in the time domain. In other words, let { (), ( 2),, ( )} be the D coefficients of a sequence, { ( ), ( 2),, ( )}. Change the signs of the D coefficients as follows, { (), ( 2), (), 3, ( )}. he inverse D of the latter is { y ( n) } { ( ), ( 4), ( 2),, ( 2), ()} which has elements in reverse order. his can be proved as follows. For a sequence, (n) for n, 2,,, the D ype I and its inverse 7 are defined as follows: n ( m) ( n) 2 mnπ ( n)sin n 2 mnπ ( m)sin m m, 2,, () n, 2,,. (2) 2

From Eq. (2) we can recover the sequence { ( n) } as follows: 2 π 2π 3π ) () sin + (2) sin + (3) sin + ( (3) 2 2π 4π 6π 2) () sin + (2) sin + (3) sin + ( (4) n 2 ( ) () sin π + (2) sin 2π + (3) sin 3π + (4) sin 4π + 2 π 2π 3π () sin (2) sin + (3) sin 4π (4) sin +. (5) (6) Let Y(m) for m, 2,, be the D coefficients of y(n) for n, 2,,, and be related to (m) for m, 2,, as follows: Y ( 2k ) (2k ) (7) Y( 2k) (2k) (8) for k, 2,, ( ) 2 sequence of { ( n) }, i.e., n. he sequence y(n) for n, 2,, is the mirror 2 π 2π 3π y() () sin (2) sin + (3) sin 4π (4) sin + ( ) (9) 3

2 2 2 y( 2) () sin (2) sin 2 π π 2 2 + (3) sin 3π (4) sin 4π + (2) () 2 y( ) () sin (2) sin 2 π π + (3) sin 3π (4) sin 4π + (). () { y ( n)} { ( ), ( 2), n, ( 2), ( )} is { ( n) } in reverse order. n 3 Etension to the wo-d Case Mirroring and rotation of an image is illustrated using a (4 4) block. Given [] 2 3 4 2 22 32 42 3 23 33 43 4 24 34 44 Horizontally mirrored sequence of [ ] is 4 3 2 24 23 22 2. h 34 33 32 3 44 43 42 4 [ ] Vertically mirrored sequence of [ ] is 4 42 43 44 3 32 33 34 [ v ]. 2 22 23 24 2 3 4 4

[] rotated by 9 o is 4 3 2 42 32 22 2 9 O. 43 33 23 3 44 34 24 4 [ ] [] rotated by 8 o is 44 43 42 4 34 33 32 3 [ ]. 8 O 24 23 22 2 4 3 2 [] rotated by 27 o is [ O ] 27 4 3 2 hen [ O ] by 24 23 22 2 { } 34 33 32 3 44 43 42 4. 9 h [], where h {} denotes horizontal flipping an input matri and is defined [ h ] h{ [ ] } [][] J (2) where [ J ] O O is the opposite diagonal unit matri. Here the superscript represents transpose. Image can be represented as nonoverlapping blocks of size ( ) ( ) eample 8 (for ). Each block can be represented as a matri [ ] 8 D is defined in matri form as [ ] 8 where { s( m, n )} m, n { ( n, n2)} n, n2. he 5

s m, n ) 2 9 sin( n m 9). (3) ( π hen we can compute the two-dimensional D coefficients matri [ ] of an input image block or matri, [ ] as follows: [ ] [ ][ ][ ]. (4) Let the 2D-D of horizontally mirrored sequence [ h ] be [ H ] and the 2D-D of vertically mirrored sequence [ v ] be [ ]. hen we can compute [ H ] and [ ] follows: [ ] [ ][ M ] V as H (5) V [ V ] [ M ][ ] (6) where the matri [ M ] is defined as [ M ]. (7) hus we can select a group of consecutive 2D-D blocks of an image and flip horizontally according to the following steps:. Apply the (8 8) 2D-D to the nonoverlapping blocks of size (8 8) of the image. 2. et the size of a rectangular block to be horizontally flipped. Horizontal and vertical sizes should be multiples of eight according to the D size. 3. Compute D-domain image flipping for each 2D-D block by using Eq. (5). 6

7 4. Rotate horizontally D blocks within the rectangular block. he most left D block goes to the most right, and vice versa. In general this is applicable to ( ) ( ) [ ] 2D-D where 5, 9, 7, We can also rotate an image block by 9 in the 2D-D domain by using the proposed scheme. Let us denote the 2D-D of the 9, 8 and 27 rotated blocks in the spatial domain [ ] o 9, [ ] o 8 and [ ] o 27 as [ ] o 9, [ ] o 8 and [ ] o 27 respectively. hen we can compute 2D-D of rotated blocks in the spatial domain as follows: [ ] [ ][ ] [ ][ ] [ ][ ] [ ][ ] M J o 9 [ ] [ ] [ ] V M. (8) Let the symbol represent element-by-element multiplication. [ ] [ ][ ][ ] [ ] [ ] W M M o 8 (9) where the matri [ ] W is defined as [ ] W. (2) imilarly, [ ] [ ][ ][ ] [ ] [ ][ ][ ] [ ] M J o 27 [ ][ ] [ ] H M. (2)

We can also show Eqs. (9) and (2) by using [ ] [ ] indicates forward and inverse 2D-D pair., where the symbol 4 imulations Using Eqs. (5)-(2), the 2D-D domain manipulation is utilized to obtain image mirroring and rotation by 9, 8, and 27 in spatial domain. ote that image mirroring and rotation by 9, 8, and 27 in spatial domain is accomplished by changing the signs of the 2D-D coefficients of the original image appropriately. ee Eqs. (5)-(2). hese operations are implemented on images Lena (Fig. ) and Boat (Fig. 2). 5 Compleity Comparison Image or video coding standards like JPEG, MPEG-,2,4 and H.264 utilize DC and integer DC to compress image or video data. We can compress images to save storage space or transmit and then edit in the compressed-domain. In that case, the DC-domain image mirroring scheme 6 is very efficient compared to the eisting method, which does the IDC and flipping operation and then the DC. he technique developed 6 does not need any multiplications and only needs to change signs of the DC coefficients. imilarly by changing the signs of the 2D-D coefficients, mirroring and rotation of the images are accomplished. 8

6 Conclusions Image or video coding systems can utilize D to compress image or video data. By using the proposed scheme, we can flip images horizontally and/or vertically in the spatial domain by appropriately changing the signs of the 2D-D coefficients. he proposed scheme is very efficient compared to the eisting method, which does the 2D- ID, flipping operation in the spatial domain and then the 2D-D, since the D/ID need multiplications. We also showed efficient compressed-domain scheme for rotation of images by 9, 8, and 27 in the spatial domain. Acknowledgments Do yeon Kim acknowledges the support by the Korea Ministry of Information and Communication. References.-K. Kwon, A. amhankar, and K. R. Rao, "Overview of H.264/MPEG-4 Part ", J. Vis. Commun. and Image Representation, 7, 86-26, April (26). 2 B. C. mith and L. A. Rowe, Algorithms for manipulating compressed images, IEEE Computer Graphics & Applications, 3(5), 34-42 (993). 3.-F. Chang and D. G. Messerschmitt, Manipulation and compositing of MC-DC compressed video, IEEE J. elect. Areas Commun. 3(), - (995). 9

4. Merhav and V. Bhaskaran, Fast algorithms for DC-domain image down sampling and for inverse motion compensation, IEEE rans. Circuits yst. Video echnol. 7(3), 468-476 (997). 5 B. hen, I. K. ethi, and V. Bhaskaran, DC convolution and its application in compressed domain, IEEE rans. Circuits yst. Video echnol. 8(8), 947-952 (998). 6 B. hen and I. K. ethi, Inner-block operations on compressed images, in the hird ACM International Conference on Multimedia, Proc., an Francisco, CA, 489-498, (995). 7 P. Yip and K. R. Rao, A fast computational algorithm for the discrete sine transform, IEEE rans. Commun. 28(2), 34-37 (98). 8 V. Britanak, P. Yip, and K. R. Rao, Discrete Cosine and ine ransforms, Academic Press (Elsevier), Orlando, FL (27).

(a) (c) (d) (b) (e) Fig. Mirroring or rotation of portion of Lena image in the spatial domain by manipulating the 2D-D coefficients of the original block: (a) horizontal mirroring, (b) vertical mirroring, (c) rotation by 9, (d) rotation by 8, and (e) rotation by 27.

(a) (c) (b) (d) (e) (g) (f) Fig. 2 Mirroring or rotation of portion of Boat image in the spatial domain by manipulating the 2D-D coefficients of the original block: (a) translation, (b) horizontal mirroring of (a), (c) vertical mirroring of (a), (d) translation, (e) rotation of (d) by 9, (f) rotation of (d) by 8, and (g) rotation of (d) by 27. 2