


































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



































The basic purpose of this project is to develop a Matlab based reversible watermarking system for the security medical images. We will implement the paper presented by Xuan et al. [1]. The proposed approach would be able not only to authenticate images, but also to annotate the medical images for subsequent diagnosis and analysis. To make our approach efficient as regards increasing imperceptibility for a fixed payload, we will employ intelligent approaches such as Genetic programming, etc, for selecting suitable thresholds for watermark embedding.
We are living in a digital world, where thousands of ways are available for information sharing through digital media. Among these internet is the most convenient and widespread. When talking about the digital media, the security of digital content arises. Advancement in multimedia systems has created problems to protection of intellectual property rights. Many digital devices can copy the digital content with little or no distortion such as digital recording devices. So security of digital content has got great importance to researchers and they are waiting for some for some technology that could provide security to digital contents, such as security to copyright issue and authentication issues.
There are several technologies for protecting the digital contents, some of which are discussed below.
Cryptography is exclusively encryption. In cryptography, the digital content is converted to some unreadable form and a decryption key is provided to only right owner to convert it back into readable form. This process is shown in figure 1.
Figure 1 : Simplified model for cryptography [2]
The piracy issues that could not be handled with the above techniques are handled with watermarking technique. It not only protect the data but protect the copyright a- swell, as the watermark is inside the digital content, so if the digital content is copied the watermark is copied in it as-well.
Digital watermarking is the process of embedding information into a digital signal. The signal may be audio, video, or picture. If the signal is copied, the information inside it is also copied [4]. A watermark is a pattern of bit inserted in digital content. The content may be image, audio or video file. This pattern identifies the file’s copyright information (author, rights, etc.) These bits must be scattered in the digital content in such a way that they cannot be identified and manipulated. Thus digital watermarking works by hiding information within the digital data in such a way that it cannot be detected without special algorithm or process. It insures the concealed information is present in all copies that are made illegally [5].
The watermarks used for copyright verification is called robust watermark [6]. Robust watermarking should be robust against attacks, these attacks involves removing of the watermark or making it unpredictable on the detection side.
The watermarks that are used for integrity verification are called fragile watermarks [6]. Fragile watermarking should be fragile to modifications so as to detect and localize the modifications.
There are two types of watermarking:-
In this type of watermarking, the embedded watermark can be seen by naked eye. The embedded information may be a text or a logo that identifies the true owner of the media. As shown in following figures 3 and figure 4.
Figure 5 : Invisible watermarked image [7]
In following figure 6, the upper pattern is the watermark detection from the upper right image; the lower pattern is the watermark detected from the lower left un-watermarked image.
Figure 6 : Detection of watermark [7]
Watermarking is distinguished from other techniques in three important ways.
Following are the properties of the watermarking system [8].
It depends on the properties of the human visual system. A transparent watermark causes no or less quality loss.
Robustness refers to the ability to detect the watermark after common media operations. Robustness doesn’t include attacks on the embedding scheme or on the availability of the detector function but robustness means resistance to blind or common media operation.
Security of a watermark is its ability to resist attack. That is to make sure that the watermark cannot be removed by detecting attacks. These attacks involves
Digital watermarking, as defined previously, refers to the process of embedding some labels or signatures into digital media without introducing perceptible artifacts. However during watermarking it may little of fully distort the original image. So when the hidden information is retrieved, it is desired to restore the original image due to highly-precise requirements of the application, such as medical and military systems [10]. Based on these phenomena the watermarking scheme is divided in two parts.
In conventional watermarking after embedding watermark when on extraction side the watermark is extracted then it destroy the image. That is no image recovery is possible. This scheme is shown in the following figure 7.
Figure 7 : Detection of watermark [7]
Some conventional watermarking schemes require the help of an original image to retrieve the embedded watermark.
The steps of reversible water marking are similar to conventional watermarking, but in it, on the extraction side, along with watermark code, the original image as well is extracted, as shown in figure 8. Therefore, the reversible watermarking is especially suitable for the applications that require high quality images such as medical and military images.
Figure 8 : Reversible Watermarking scheme [9]
In sub-band coding, an image is decomposed into a set of band-limited components; called sub-bands. These sub-bands can be reassembled to reconstruct the original image without error. A four band split of M × N size of a portion of the image is shown in the Figure
Figure 9 : A four band split of an MXN portion of the image [10].
This transform is used for reversible watermarking purpose, as the conventional wavelet is not applicable for reversibility. This could be explained with a simple example. Suppose that an image in represented in integer form i.e. the value of its pixel are integer valued. Now it let suppose it is transformed into wavelet domain using floating- point wavelet transform. Now if the values of the wavelet coefficients are changed during the watermark embedding process, the corresponding watermarked image block will no longer be guaranteed to have integer values. Any truncation of the floating-point values may result in the loss of information and may ultimately lead to the failure of the reversible watermarking systems, that is, the original image cannot be reconstructed from the watermarked image.
The conventional wavelet transform is implemented as a floating-point transform followed by a truncation or rounding. Since the coefficients cannot be represented in fully accuracy so the information can be lost. This problem can be solved by using invertible integer-to-integer wavelet transform which do integer to integer mapping [12].
This is the process that we will implement in this project [1]. The flow diagram of the implementation is shown in figure 10. This process is divided in two main stages.
In this section watermark is embedded in the image by a step by step procedure. These steps are discussed below.
An image is first converted into grayscale and then input to the system.
When the image is transformed to wavelet domain, it also contains high coefficients. So when data is added to these coefficients the magnitude of the coefficients might increases. Now when inverse integer wavelet transformed is applied, there are chances that the pixel values might exceed the upper bound or the lower (lower bound=0 and upper bound=255 for 8 bit grayscale image). Here, to avoid this overflow and underflow problem histogram modification is applied. When histogram modification is applied it narrows the histogram from both sides.
contains pixel value 1 at the same location (x,y), a 0 is stored in the scan sequence. In this way, a scan sequence is generated whose length is equal to the number of 2’s in the histogram modified image. Similarly, the scan sequence for grayscale 253 is generated. Next the bookkeeping data is generated using this scan sequence. The bookkeeping data store (say S) will actually consist of the following information. S = [the total bookkeeping bit length + compressed number of grayscales + first histogram from left hand side grayscale + record length + scan sequence + the first histogram from right hand side grayscale + record length + scan sequence [14]. From the above discussion, the compressed number of grayscales is 2, which may be stored in 4 or 8 bits. First histogram from left hand side grayscale is 1, which can also be stored in 4 or 8 bits. Record length is the length of the scan sequence. The required number of bits to be stored in record length may exceed up to 16 or appropriate number of bits can be used to store the record length. First histogram from right hand side gray scale is 6 and this is also stored in appropriate number of bits. All these bits sum up to constitute total number of bookkeeping bits. This bookkeeping data is stored as overhead in the image and is used at the receiving side to restore the image to its original state. When histogram modification is applied, some overhead data is generated which must be embedded in the image in order to restore the histogram on the extraction side. This overhead is called bookkeeping data as shown in figure 10.
Integer Wavelet Transform is applied on the histogram modified image. Integer Wavelet Transform is used to recover the image lossless. It maps integer to integer and recovers the image to its original form without any distortion. That is why integer wavelet transform is applied. The wavelet family CDF (2, 2) is used here due to its higher embedding capacity and better visual quality of marked images [1].
Data is embedded using companding technique which is discussed above. Now the problem is the selection of companding function. This is discussed below.
Compression is carried out for two purposes [1]:
, ( ) ( ).( 2 ),
x x T C x (^) x T sign x T x T
Where, T is a pre-defined threshold. In dealing with digital signal, however, the above two conditions are difficult to be exactly met owing to the nature of digitization. This is because the quantized companding functions C (^) Q and E (^) Q have to be utilized instead, where
If y ' = x , the modification of the signal is small and can hardly be perceived. We select a critical value T .When the value of a coefficient is greater than or equal to T, the value of the coefficient is compressed using and then the watermark bit is embedded in it. But if the value of the coefficient is smaller than T, then no compression is done and a linear compression function F ( x ) = x is used and watermark bit is embedded. When T is small, the coefficients alterations are small and good visual quality of marked image is achieved. But corresponding compression error will be larger which will reduce the payload. When T is large, a larger payload can be achieved. But coefficient alteration will be larger and visual quality of the image will not be that good. In the actual embedding, the T value is selected according to the payload [1].
After embedding data in the high frequency wavelet coefficients, we have the marked image in the wavelet domain. This marked image is transformed into the spatial domain using Inverse Integer Wavelet Transform. This marked image is now ready for storage or ready for transmission over some network.
As watermark is embedded in the image so it will have some distortion in it. The distortion is measured in term of PSNR termed as Peak Source to Noise Ratio. This PSNR is the function of amount of data embedded in the image. The amount of data embedded is represented in terms of Payload (bpp termed as Bits per Pixel). The higher the Payload the lower will be the PSNR and vice versa.
In this stage the watermark and the original image are retrieved. On the extraction side, the same procedure is applied as on the embedding side. In the following section, extraction procedure is described step by step.
Marked image is received on the embedding side.
Integer Wavelet Transform is applied on the marked image to transform it in the wavelet domain.
In the hidden data extraction stage, the LSB bit of signal y is extracted, which means b = LSB ( y ′) (4) And the signal y = y ′/ 2 (4.1) is recovered. After obtaining the signal y , the original signal can be recovered by expansion, i.e. x = E ( y ). The original signal is restored using the threshold value information [1]. The following threshold expressions are used. 2 , 0 (2 ) 1, 0 T T^ y T y
The LSB bits extracted contain the original watermark, the error overhead and the bookkeeping data. Error overhead is used at the expansion stage and the bookkeeping data is used for the histogram restoration [1].
After extracting the data and restoring the coefficients to their original state, Inverse Integer Wavelet Transform is applied to transform the image in the spatial domain.
The bookkeeping data is extracted to restore the histogram. And now image is in its original state.