COMPRESSION OF MEDICAL IMAGES USING LOCAL NEIGHBOR DIFFERENCE

Size: px
Start display at page:

Download "COMPRESSION OF MEDICAL IMAGES USING LOCAL NEIGHBOR DIFFERENCE"

Transcription

1 COMPRESSION OF MEDICAL IMAGES USING LOCAL NEIGHBOR DIFFERENCE Thesis Submitted to The School of Engineering of the UNIVERSITY OF DAYTON In Partial Fulfillment of the Requirements for The Degree of Master of Science in Electrical Engineering By Erin Leigh Patterson UNIVERSITY OF DAYTON Dayton, Ohio August, 2017

2 COMPRESSION OF MEDICAL IMAGES USING LOCAL NEIGHBOR DIFFERENCE Name: Patterson, Erin Leigh APPROVED BY: Eric J. Balster, Ph.D. Advisor Committee Chairman Associate Professor, Electrical and Computer Engineering John S Loomis, Ph.D. Committee Member Professor, Electrical and Computer Engineering Yakov Diskin, Ph.D. Committee Member Professor, Electrical and Computer Engineering Robert J. Wilkens, Ph.D., P.E. Associate Dean for Research & Innovation, Professor School of Engineering Eddy M. Rojas, Ph.D., M.A., P. E. Dean, School of Engineering ii

3 c Copyright by Erin Leigh Patterson All rights reserved 2017

4 ABSTRACT COMPRESSION OF MEDICAL IMAGES USING LOCAL NEIGHBOR DIFFERENCE Name: Patterson, Erin Leigh University of Dayton Advisor: Dr. Eric J. Balster Medical images are an essential part to any health professional s career when helping patients and diagnosing health concerns. Due to the need for large storage capacity and fast transferring speed, research in image compression has grown. Image compression uses the property of redundant information in the image to reduce the amount of data in the image to solve both problems of storage and transmission. For medical images, lossless compression algorithms are of interest to make sure that the reconstructed image provides the same details as the original image. This thesis presents a proposed algorithm called the Local Neighbor Difference (LND) which is a preprocessing technique to allow the redundancy in the medical image to be reduced before being sent into a commercial-off-the-shelf compressor (COTS), XZ. LND, when used in conjunction with XZ losslessly, compresses images, on average, by 6% more than XZ alone. The LND process, along with some future work, is proposed in this paper and results in a viable option for a pre-process to a compressor. iii

5 I want to dedicate my thesis to my parents, Randy and LeAnn. Thank you for always encouraging and supporting me in accomplishing my goals. iv

6 ACKNOWLEDGMENTS I would like to thank those who have supported and encouraged me as a graduate student at the University of Dayton. Without the support of the following people, my Master s thesis would not have been possible. It is with guidance and mentorship provided to me in this experience that allowed me to grow, not only as a person, but also as an engineer. Dr. Eric J. Balster: For being my advisor and providing me with great insight in the area of image compression. The Design Knowledge Company (TDKC): For providing me with a thesis platform and experience. Dr. John Loomis and Dr. Yakov Diskin: For being willing to be on my thesis defense and providing any help when necessary. Friends & Family: For always supporting me in my decisions and surrounding me with advice, love, and friendship. v

7 TABLE OF CONTENTS ABSTRACT iii DEDICATION iv ACKNOWLEDGMENTS LIST OF FIGURES v viii LIST OF TABLES xi I. INTRODUCTION Medical Images Image Compression Lossy versus Lossless Importance of Lossless Properties of Images Current Compressors ZIP BZIP XZ JPEG JPEG Compression Ratio Proposed LND II. LND PROCESS Subtraction of Surrounding Pixels Importance of Pixel Location Residual Compression Location Compression Final LND Process vi

8 III. TESTING & RESULTS Sample Size & Image Criteria Optimum Block Size Variations of LND Basic LND Close Mirror LND Close Mirror Diagonal LND Close Mirror Diagonal Mix LND Block Mean LND Col/Row Mean LND Edge Mean LND Middle Mean LND Row Mean Edge/Col Mean Edge LND Nearest Neighbor LND Clockwise Spiral Counter-Clockwise Spiral Variation Optimization Optimization Based on Chest Xray256a Optimization Based on Four Testing Images LND with Two Variations LND with Eight Variations Optimum Block Size Revisited Pre-processing Comparison Variation Prediction Large Image Testing IV. REVERSE PROCESS Importance Process V. CONCLUSION & FUTURE WORK BIBLIOGRAPHY vii

9 LIST OF FIGURES 1.1 Image Compression Process Forward Compression Processing Chain Local Neighbor Difference (LND) Process Pixel Neighbors Final Pixel Neighbors Pixel Neighbor Options Combination of Location Elements Final LND Process Left: Chest X-ray (1760x1760), Center: Hands X-ray (2577x2048), Right: Skull X-ray (2048x2577) Top Left to Right: Chest Xray256a, Chest Xray256, xr chest1, xr chest2 Bottom Left to Right: xr chest3, xr hands1, xr skull1, xr skull Chest Xray256a Left: 2x2 Block Grouping, Center: 3x3 Block Grouping, Right: 4x4 Block Grouping Block Positions Inner Block Pixel Positions Basic LND Result for Block X viii

10 3.8 Close Mirror Diagonal LND Result for Block X Close Mirror Diagonal Mix LND Result for Block X Clockwise Spiral LND Result for Block X Counter-Clockwise Spiral LND Result for Block X Variation Optimization Process Variations Used: Top: Stage 1, Bottom: Stage Variations Used: Top: Stage 3, Bottom: Stage Variations Used: Top: Stage 5, Bottom: Stage Variations Used: Stage Residual Size Dependent on Variations Top Left: Chest Xray256a, Top Right: xr chest1 Bottom Left: xr chest3, Bottom Right: xr skull Variations Used: Top: Stage 1, Bottom: Stage Variations Used: Top: Stage 3, Bottom: Stage Variations Used: Top: Stage 5, Bottom: Stage Variations Used: Stage Location of Edge and Middle Blocks Combination of 2 Variations into 8bit Value Process of Image Compression Pre-Process Comparison of 8 Images Pre-Process Comparison Average of 8 Images Prediction Comparison of 8 Images ix

11 3.29 Prediction Comparison Average Versions of LND Left to Right: Imdent-0100 (512x512), Chest X-ray (1760x1760), Hands X-ray (2577x2048), Skull X-ray (2048x2577) Prediction Comparison of Large Images Prediction Comparison Average of Large Images Final LND Process x

12 LIST OF TABLES 3.1 File Size of Different Block Sizes Variation Reduction Based on Chest Xray256a Variation Reduction Based on Four Training Images Top 2 Variations per Block Location File Sizes with 2 Variations File Sizes with 8 Variations Pre-Process Comparison of 8 Images Prediction Comparison of 8 Images Prediction Comparison of Large Images xi

13 CHAPTER I INTRODUCTION 1.1 Medical Images Medical imaging technology has allowed the medical field to grow and technologically improve on a massive scale. Medical images allow medical professionals to analyze anatomical and physiological structures of their patients. To accurately do this, very high resolution images are captured by current technology with spatial sampling pitches of a few micrometers for optical coherence tomography and of a fraction of a millimeter for current x-ray computed tomography (CT) and magnetic resonance imaging (MRI) [1]. The high spatial sampling resolutions translate into large image resolutions of at least 1024x1024 pixels per image and up to hundreds of slices of images in a video sequence. The pixel intensity is also finely quantized and require 12 or 16 bits-per-pixel (bpp) to represent the image. Due to the image resolution, the number of slices of images, and the pixel bit-depth, the image data set is rather voluminous. Other factors that effect the large amount of images that need to be archived for long periods of time are the widespread use of medical images, the longer life expectancy of patients, and legal imperatives [1]. These factors lead to high storage costs and creates issues with storing and transferring of the images to other necessary medical facilities. There are two different types of medical images including 2-D and 3-D. Examples of a 2-D medical image includes X-rays and ultrasounds. An X-ray is a type of radiation called electromagnetic 1

14 waves that penetrate the body to create a 2-D image of the inside of the body. Due to the different types of tissues in the body, they absorb different amounts of radiation resulting in the images being different shades of black and white. For example, the calcium in bones absorb the radiation the most so they appear white while fat or other soft tissues absorb less so they appear gray. Ultrasounds are frequently used by healthcare professionals since it is noninvasive in nature, low cost, and allows the forming of real time imaging. Instead of radiation, ultrasounds use high-frequency sound waves that bounce off of the tissues inside the body to create the images. Another type of medical image are 3-D. In this case, each examination produces multiple slices which is a graphical representation of a cross section of the human body. The collection of all of these slices creates a 3-D image. Just like the correlation between neighboring pixels in a 2-D image, the 3-D images show a strong correlation among consecutive slices which is inter-slice and a relationship in the spatial context called intra-slice [2]. Examples of 3-D medical images include computed tomography (CT), magnetic resonance imaging (MRI), and positron emission tomography (PET). A CT scan uses X-rays to produce images of all types of body structure including organs, bones, and blood vessels. CT are used by health professionals to help diagnose and manage many health conditions. MRI is a radiology test that uses magnetic fields and radio waves to produce 3-D images. These images can show details of the brain and spinal cord, bones and joints, the heart and blood vessels, breast tissue and other organs. PET is a nuclear imaging technique that allows professionals to see how the organs and tissues are functioning. Usually, a radiopharmaceutical or tracer is injected into a patient s vein to aid in making the detailed, computerized pictures of the body [3]. 2

15 1.2 Image Compression Due to the reasons expressed above, medical images not only require a large amount of storage capacity but also require a high speed network to transfer the images. The lack of a high speed network creates a bottleneck in places that have either bad connections or limited bandwidth. Therefore, the compression of medical images is an efficient solution for both problems of storage and transmission via a limited bandwidth [4][5]. Image and video compression are areas of research and development that started around the late 1980s and early 1990s when digital imaging, video, and Internet connectivity started to become mainstream. The original JPEG standard was finalized in 1992, and ever since, image and video compression have been active areas of research. Digital still and video cameras have completely replaced old film cameras and VHS video recorders. Compression technology has become commonplace in everyday life wherein most ways, the user is unaware that it is taking place automatically. Image compression is a procedure of decreasing, diminishing, and minimizing the quantity of bits needed to represent, store, and transmit data as fast as possible [6]. This can be performed by taking advantage of two different factors that are relevant in an image, whether the image is a medical image or not. These different factors are redundancies and irrelevancies in the image data allowing the storage size of the image to be truncated or scaled down [6]. Reduction of irrelevancy is the removal of data that will not be identified by the receiver. When working with medical images, irrelevancy is not of importance since the healthcare professionals want to make sure that all of the details are available in the image whether they can be seen or not. Reduction of redundancy is the removal of duplicate content from the data. Since neighboring pixels are likely to be correlated, redundant information may be present. This is one of the three types of redundancies known 3

16 as interpixel redundancy [4]. The other two types of redundancy are coding and psycho visual redundancy [4][6]. Image compression includes a forward process referred to as encoding and a reverse process referred to as decoding. Consider the encoder and decoder system as shown in Figure 1.1. Figure 1.1: Image Compression Process When the encoder receives the original image, the image is converted into a series of binary data called a bit-stream. The decoder then takes the encoded bit-stream and decodes it to create the decoded image. In general, the forward process of image and video compression can be broken down into three distinct processing blocks as shown in Figure 1.2. The three distinct processing blocks are: prediction and transformation, quantization, and encoding. Each processing block is needed and performs a distinct function in the compression process as discussed below. Figure 1.2: Forward Compression Processing Chain 4

17 Prediction and transformation is a processing step to reduce the entropy of the original data set. By using mathematical transformations, a sparse representation of the data can be obtained which is referred to as a coefficient set as opposed to pixels or data. Different portions of the data may be used to represent the current set of data or to predict the current data set. This predicted data is then subtracted from the original data set resulting in data that is referred to as residual data. Prediction techniques have traditionally evolved from video compression so prediction and transformation of data is typically seen in video compressors, whereas image compression techniques tend to rely merely on mathematical transforms for entropy reduction. In general, the transformation and prediction processes are reversible. This means that there is no data loss incurred when applying the inverse of the processes to the coefficient or residual data. However, some techniques use floating point processing techniques which are ultimately rounded prior to encoding. This rounding of fractional data make come transformation and prediction techniques irreversible. However, for most types of images, any data loss due to transformation and prediction is typically deemed negligible. Quantization is a process which limits the dynamic range of the coefficient and residual data that comes out of the transformation and prediction processing block. The more limited the dynamic range of the data (i.e. high quantization) the higher the compression gain and the greater the loss in image/video quality. Quantization is designated to be solely responsible for quality loss in the compression engine. Encoding is the process where actual data reduction takes place. In both the transformation and quantization techniques, typically there is no reduction in the data. They are processing steps to attempt to make the data more uniform and ready for compression. The true data compression happens in the encoder. 5

18 The decoding process is the reverse of the encoding process steps. If the total data quantity of the bit-stream is less than the total data quantity of the original image, then image compression has been performed [7]. This process can be performed on a vast array of types of images but the focus of this paper is on two-dimensional medical images like X-rays, ultrasounds, etc. To save both memory space and speed for transferring large amounts of data across the globe through compressed format, image compression plays a vital role [6]. 1.3 Lossy versus Lossless There are two classes of image compression, lossy and lossless, and are each used for different purposes depending on the image being compressed. In a lossy compression system, the reconstructed image from the condensed data is not the same as the reference or input image. The data can never be recovered precisely as it was before it was compressed [4]. Though the information recovered isn t a perfect replica of the original image, it is enough in many applications including images and sounds for human eyes and ears [8]. Since some of the information in an image can be lost during a lossy compression algorithm, it allows for a larger compression on the data and can reduce the image down to a very small size. In a lossless compression system, the reconstructed image from the condensed data is exactly the same as the reference or input image. Since they need to work perfectly, the compression ratios are only a modest 2:1 to 4:1, depending upon the redundancy of the information in the image [8]. Though lossless compression is not as extreme as a lossy compression system, this method is preferred for confidential documents, executable files, data base records, and biomedical images and signals where a single bad bit in the reconstructed image could lead to major problems [4, 6, 8]. 6

19 1.4 Importance of Lossless Despite the fact that lossy compression results in higher compression ratios, the therapeutic community and medical group are hesitant to receive and use lossy options due to legitimate risks and ineffectively, unpredictability and poorly reconstructed images [6]. This lossless criteria is important in the medical field, especially to doctors and other people who examine images including X-rays, CT scans, ultrasounds, etc. When medical images are being saved and transferred to other hospitals, it is required that no information in the image is lost. A medical image without details is of no use to the doctors and hospital staff and could result in serious issues for the patients. Data compression is essential and a lossless compression algorithm is required and indispensable since the acquired data are precious and, in many cases, obtained by unrepeatable medical exams [2]. Without the details from a lossy compression, doctors may have a harder time providing the patient with a correct diagnosis and, therefore, correct treatment for the issues they are experiencing. Therefore, the best way to ensure the best treatment for the patient and the fastest and easiest diagnosis by medical personnel is to compress the images in a lossless manner. Since all of the details of the image must be saved and accounted for, a lossless compression process provides a sense of certainty that all of the information in the image is conserved through transferring between hospitals and this is more important than a larger compression ratio. 1.5 Properties of Images Each pixel in an image has two vertical and two horizontal neighbors along with four other neighbors on the diagonals of the pixel. These eight points are together known as the eight neighbors of a particular pixel. If the pixel is on the border of an image, then some of the eight neighbors may fall outside of the image. Each image, except for images with a high level of noise, have certain properties between its pixels which can be used as an advantage when compressing an image. 7

20 Adjacency is when two pixels are connected if they are neighbors and their pixel values satisfy some specified criterion of similarity. This can happen with any of the eight neighbors surrounding a particular pixel. In images, pixels tend to have very similar values of its neighbors since there is not typically sudden changes in an image. Besides noise, two neighboring pixels will not have pixel values of the extremes in the image. For example, pixel A has a pixel value of 103 and pixel B, which is a horizontal neighbor to the right of pixel A, has a pixel value of 105. This small difference of 2 between pixel A and pixel B supports the idea that these two pixels are adjacently related and contain a certain level of redundant information. Because each pixel has eight neighbors, many mathematical and logical processes can be performed on the pixel. Some mathematical and logical operations include addition, subtraction, multiplication, division, Logic AND, OR, and compliment. Other tasks can be done due to neighborhood processing including smoothing and averaging, noise cancellation and filtering, edge detection, and contrast enhancement. All of these processes rely on the adjacency and correlation between neighboring pixels to help define an image. A main benefit of having high pixel correlation in neighboring pixels in an image is the possibility of using prediction and/or transform-based methods to reduce the redundancy and, therefore, reduce the number of bits needed to encode the image [4][1][8]. This allows for compression. 1.6 Current Compressors The following is a brief description of popular compression tools. Some are older compressors while others are currently performing the best and are being improved ZIP ZIP is a compression format that supports lossless data compression and allows the user to group one or more files called directories into one.zip file. This was initially released in 1989 and 8

21 is currently supported by many software utilities including Microsoft Windows and MAC operating systems. Since each file inside the.zip file is stored separately, this allows for different files to be compressed using different methods depending on the nature of the file. A few of the different compression methods include: Store (no compression), Shrink, Deflate, bzip2, WavPack, and LZMA. There are limits on the minimum and maximum size of a.zip file. The minimum size is 22 bytes. This is an empty ZIP file but still contains an End of Central Directory (EOCD) Record resulting in a little amount of information. Two enhancements of ZIP is the extra field facility within the file headers which allows for extra data to be stored and ZIP includes strong encryption specifications which was involved in a controversy in BZIP2 BZIP2 is a free and open-source file compressor that was released in 1996 but, unlike ZIP, it is not an archiver and can only compress one file at a time. It uses the Burrows-Wheeler algorithm to compress data in blocks of size between 100 and 900 kb. The Burrows-Wheeler algorithm converts frequently-recurring character sequences into strings of identical letters then applies Huffman coding. BZIP2 compresses most files more effectively than the ZIP compressor but compresses at a slower speed. A pro of BZIP2 is that it decompresses the file relatively faster than ZIP. BZIP2 compression is slower since it follows a nine step compression stack which occur in the following order: run-length encoding, Burrows-Wheeler transform, move-to-front transform, Huffman coding, selection of Huffman Tables, Unary base 1 encoding, Delta encoding, and finally, sparse bit array showing which symbols are used. 9

22 1.6.3 XZ XZ is a lossless data compressor that uses the LZMA/LZMA2 compression algorithms [9]. It was released in 2009 as an open format for users to download and use. Just like BZIP2, XZ is a file compressor that does not archive files and can only compress a single file at a time. The XZ file format provides a couple of advanced features but has been kept simple for it to be used in many embedded systems. Some of the advanced features include: stream-able, random-access reading, allows multiple filters, performs integrity checks, and allows concatenation of files JPEG The Joint Pictures Experts Group (JPEG) committee developed a compression standard for digital images in the late 1980s which was finalized in JPEG compression has long since been the most widely accepted standard in image compression, embedded in most modern digital imaging products. The JPEG image encoder operates on 8x8 blocks of image data so images being compressed by JPEG are segmented into independent processing blocks. JPEG compresses each block separately by first transforming the block by Discrete Cosine Transformation (DCT), quantizing the resultant coefficient values, run-length encoding, and finally coding with a variable length entropy coder [10]. The block-based encoder facilitates simplicity, computational speed, and a modest memory requirement. Typically, JPEG can compress images at 10:1 to 20:1 compression ratio and retain high quality reconstruction. 30:1 to 50:1 compression ratios can be obtained with only minor defects to the reconstructed image [11]. 10

23 1.6.5 JPEG2000 It has been shown throughout the research community for several years that the wavelet transform is superior to DCT methods in image compression. Thus, in March of 2000, JPEG published the JPEG2000 standard based on wavelet technology [12]. The compression method of JPEG2000 is similar to that of JEPG but uses the wavelet transform instead of the block-based DCT. This allows for the user to specify the size of the processing block, called tiles. The optimum tile size is determined by the user since small tile sizes reduce the memory requirement while large tile sizes improve compression gain and reconstructed image quality. After transformation, coefficients are quantized and encoded. In addition to higher compression gain as compared to JPEG, JPEG2000 offers a suite of features not found in the JPEG standard. These features include user-defined tile sizes, resolution scalability, SNR scalability, region of interest coding, quality-layer based encoding, and support for multi-spectral imagery. 1.7 Compression Ratio There are many different parameters that can be used to describe the performance of a compression technique or tool. A main parameter used is compression ratio. Compression ratio (CR) is a parameter that compares the size of the input image (Fs) to the size of the bit-stream once the original image is encoded (CFs) based on the following equation. CR = F s/cf s When comparing compression ratios, the higher compression ratio, the more effective the compression algorithm is performing on the image [8]. In this thesis, the results are described by stating 11

24 the percentage of the original image that is needed to reverse the compression process. For example, if the original image is of size 600 and the compressed image is of size 330, then the compression file is 55% of the original file size based on the equation below where CP is the compression percentage. When comparing these percentages, a lower percentage suggests that less of the original image is needed and is a more effective compression algorithm being performed. CP = CF s/f s 1.8 Proposed LND In this thesis, a new lossless compression algorithm is being proposed as a way to compress 2-D medical images. The Local Neighbor Difference (LND) uses the property that neighboring pixels are correlated and finds the smallest difference from a pixel s eight neighbors and sends the residuals into the commercial-of-the-shelf, XZ compressor. It is important to use commercial-ofthe-shelf compressors because they are usually not internally paired, or coupled, with a pre-process already. By using an unpaired compressor, as new and more efficient compressors are developed, they can be replaced allowing the system to always be up-to-date with the most efficient compressor. Through many tests, the basic model of the LND grew to not only use the neighbors of the pixel but also variations on how the pixels in one block relates to the pixels in the surrounding blocks. In Chapter 2, the initial and basic LND process is explained along with the few steps of processing done before the bit-stream is sent into the XZ compressor. Chapter 3 goes into detail of the many tests that are performed to enhance the LND process including scanning across an image in blocks instead of a pixel by pixel basis, different variations tested, and the possibility of prediction in the future. Chapter 4 describes the importance of medical images being reversed and the process to 12

25 accurately reverse the LND. And finally, Chapter 5 includes the final results and suggestions for future work. 13

26 CHAPTER II LND PROCESS Because of the correlation between pixels and the way image compressors work, some preprocessing can be performed on an image before being sent into a compressor to reduce the amount of redundancy in the image. For example, JPEG and JPEG2000 use a wavelet transform as a preprocessing tool. There are many ways pre-processing on an image can be performed where some are simple and others are more complex. A basic pre-process example is performed by taking the difference of two pixels, A and B, where pixel B is directly to the right of pixel A. A pre-process that is a little more complex will be described in this thesis and is called the Local Neighboring Difference (LND). The initial LND process, whose steps are shown in Figure 2.1, is performed and then sent into a commercial off-the-shelf compressor, XZ. Figure 2.1: Local Neighbor Difference (LND) Process 14

27 Since the LND process is performed on a pixel by pixel basis, it is important to discuss the various steps by focusing on a single pixel from the image. The pixel that will be described has the pixel coordinates of (i,j). Throughout this paper, this specific pixel, pixel(i,j), will be referred to as pixel Q. 2.1 Subtraction of Surrounding Pixels The first step in the LND process is the subtraction of the surrounding pixel values from the specific pixel, pixel Q. Besides special cases of corner and edge pixels, each pixel is surrounded by eight neighboring pixels as shown in Figure 2.2. Figure 2.2: Pixel Neighbors The difference between pixel Q and it s surrounding pixels is calculated and stored into a 1x8 element array. Then, from those differences, the minimum difference is determined and is called the residual value. Due to the correlation in neighboring pixels in an image, the desired residual value is zero between pixels which allows the information of pixel Q to be stored with better compression of zero bits. The value of pixel Q is replaced by the minimum difference. The element number in the array of where the minimum difference was located is saved into another file called the location file. This same process can also be expressed by the following equations where D(m,n) is the differences between pixel i,j in image I and it s neighboring pixels. (x,y) is the argument value in 15

28 the difference array, D, that is the absolute minimum difference. Pixel Q is then replaced with the absolute minimum difference. D(m, n) = I(i, j) I(i + m, j + n) m,n= 1,0,1 (x, y) = argmin{ D(m, n) } Q(i, j) = I(i, j) I(i + x, j + y) Since the pixel values are replaced as the process raster scans through each pixel in the image, only certain neighbors are predicted to provide the minimum residual value. For example, in Figure 2.2, neighboring pixels 1, 2, 3, and 8 have already been replaced by the minimum residual value due to the movement of a raster scan. Therefore, for pixel Q, the only neighboring pixels that can possibly result in the minimum residual value are pixels 4, 5, 6, and 7. These four neighboring options can then be stored by only using two bits and are referred to as locations 0, 1, 2, and 3 as shown in Figure 2.3. It is important to note that the neighbor to the right of pixel Q is referred to as location 0 since it is the location that most often provides the minimum residual value. Figure 2.3: Final Pixel Neighbors After the subtraction of the surrounding pixels is performed for each pixel, two files are created that contains the needed information about the image. The residual file contains the difference 16

29 between pixels and the location file contains information about which neighboring pixel provided the minimum residual value. Both of these files have the same number of pixels as in the original image at this point in the LND process. 2.2 Importance of Pixel Location Depending on pixel location, only certain neighboring options are available for calculating the difference between pixels. Figure 2.4 shows the neighboring options for each specific location of the pixels in an image. In the figure, TL represents the top left corner, TE is the top edge, etc. Figure 2.4: Pixel Neighbor Options By looking at the above diagram, it can be seen that if the desired pixel is in the top left corner of the image, there are only three pixels that are surrounding neighbors that can be used to determine the minimum difference between the pixel values. For the top right corner, there is only two surrounding pixels; and for the bottom left corner, there is only one surrounding pixel. For all of the pixels on the top edge excluding the top left and top right corners, there are four surrounding pixels 17

30 that can be used to determine the minimum difference. For the pixels on the left edge excluding the two corners, there are only three surrounding pixels; for the pixels on the right edge, there are only two surrounding pixels; and for the pixels on the bottom edge, there is only one surrounding pixel. The pixels in the middle of the image, have the same neighboring options as the top edge pixels which is a total of four surrounding pixels. It is important to note that the bottom right pixel is a special case. This pixel is called the reference pixel and is the only pixel in the entire image that has the value of the original image. This is needed and used in the reverse process, which is explained in further detail in Chapter IV, to fulfill a lossless process. 2.3 Residual Compression Once the residual array is created from the subtraction of the surrounding pixels, one more step is performed on that array before it is sent into the XZ compressor. At this stage in the LND process, there is a variable that contains the residual values for each pixel in the image. This is an array that has the same number of elements as pixels in the original image but the values now range from [-255,255]. Negative numbers have more bits that are the value of 1 than positive numbers which results in needing more bits to describe the number. For each of the negative values in the residual variable, sign magnitude is performed. This provides two advantages: 1. Doing sign magnitude reduces the need to have a sign bit to describe the negative numbers. For the range of [-255,255], a total of nine bits would be needed to account for the negative values. 2. Since positive binary numbers have more zeros than negative binary numbers, the compressors can condense the size of the residual value smaller. For example, if the residual value is -36, the binary 8bit negative number is [ ]. With sign magnitude, the most significant bit is declared as the sign bit and the rest of the value is the binary 8bit positive number. For -36, after sign magnitude, the binary 8bit number stored is [ ]. Therefore, there are more zeros present but it doesn t lose the negative information needed which is now stored in the most significant bit. It is important to note that this 18

31 step of sign magnitude relies on the image property of pixel correlation. Since neighboring pixels tend to have the same or close to the same pixel value, the difference between the two is going to be zero or small. Since the difference is smaller than the largest negative 8bit value of -255, the most significant bit can be used as the sign bit without losing any important information about the residual value. Once all of the negative residual values are changed with sign magnitude, the array is sent into the XZ compressor. This results in a created residual file that is the compressed information to describe the image pixels compared to their surrounding neighbors. 2.4 Location Compression Once the location array is created from the subtraction of the surrounding pixels, one more step is performed on the array before it is sent into the XZ compressor. At this stage in the LND process, there is a variable that contains the location values for each pixel in the image. This is an array that has the same number of elements as pixels in the original image but the values range from [0,3]. Since this range is only four different values, each location can be described by only 2bits. Location 0 would be described by 00, location 1 by 01, location 2 by 10, and location 3 by 11. Since the location array is being compressed by using 8bits, four location elements can be combined into one 8bit value. This is done by combining the four elements in blocks as shown in Figure 2.5. Combining the four elements allows the location array to be reduced to a quarter of the size of the original array and, with less elements that need to be compressed, the location file can be reduced in size when compressed with the XZ compressor. This results in a created location file that is the locations of which neighboring pixels provide the minimum residual value for each pixel in the image. 19

32 Figure 2.5: Combination of Location Elements 2.5 Final LND Process Based on the many tests that are conducted and explained along with their results in Chapter III, the final LND process is slightly different than the initial process described in Sections The main stages of subraction of surrounding pixels and the processes on the two files are the same and are not changed throughout testing, but there are other changes that are important to note. First, instead of raster scanning through the image pixel by pixel for the subtraction stage, the Optimum Block Size test results show that using 3x3 blocks allows there to be less location values to be saved to reverse the process losslessly. Another change for the final LND process is the location file. Instead of comparing the differences between a block and its surrounding blocks, four variations, or subtracting methods, are tested to determine the one that produces the minimum difference. The process of determining the top four variations that are offered to each block are determined by the Variation Optimization Test (VOT). This now turns the need of having a location file into the need to have a variation file. Since four variations are offered, it only takes two bits to record the best variation and those values can be combined just as the location values were combined. The final LND process is shown in Figure

33 Figure 2.6: Final LND Process 21

34 CHAPTER III TESTING & RESULTS 3.1 Sample Size & Image Criteria The following tests are performed on a certain set of images due to the desire to compress medical images specifically. These medical images consist of x-rays, ultrasound images, etc. The provided medical images are shown in Figure 3.1. Figure 3.1: Left: Chest X-ray (1760x1760), Center: Hands X-ray (2577x2048), Right: Skull X-ray (2048x2577) 22

35 The provided images are initially of large size (for example, 1760x1760) so to reduce the processing time, smaller images were made from the original images. The images that are created and used were of the size 256x256 which is an original file size of 66 KB. The images also had a bit depth of 8 bits and are shown in Figure 3.2. Most of the following tests are performed on one specific image, Chest Xray256a.bpm, which is shown in the top left image of Figure 3.2. These smaller images created the sample set used in the tests to determine the average outcome and results of the LND process. Various amounts of pixels containing detail and blank space was chosen to provide the tests with diverse images. Figure 3.2: Top Left to Right: Chest Xray256a, Chest Xray256, xr chest1, xr chest2 Bottom Left to Right: xr chest3, xr hands1, xr skull1, xr skull2 3.2 Optimum Block Size The initial LND process was performed on a pixel by pixel basis for the given image. To reduce the number of elements in the location file, the LND process could be performed on a block by block basis instead. The subtraction step in the LND process is performed the same but are now 23

36 done with groups of pixels. This test was conducted using only the Chest Xray256a image which is shown below for reference in Figure 3.3. Figure 3.3: Chest Xray256a The grouping of the pixels that are tested consisted of 2x2 blocks which is two pixels wide by two pixels tall for a group of 4 pixels, 3x3 blocks which is three pixels wide by three pixels tall for a group of 9 pixels, and 4x4 blocks which is four pixels wide by four pixels tall for a group of 16 pixels. The pixels were grouped into the blocks by combining the closest neighboring pixels due to the high correlation between adjacent pixel values. Then, the neighbors used to compute the minimum difference as in the LND process, are also blocks of the same size. This allows for only one location to be needed to describe each block of pixels which significantly reduces the number of elements in the location file that need to be compressed by XZ. Figure 3.4 shows the grouping of the 2x2 blocks, the 3x3 blocks, and the 4x4 blocks where the blue represents the current block and the green represents the neighboring blocks used for subtraction. 24

37 Figure 3.4: Left: 2x2 Block Grouping, Center: 3x3 Block Grouping, Right: 4x4 Block Grouping The test image, Chest Xray256a is compressed after being pre-processed by the LND process. First, the image was sent through LND on a pixel by pixel basis, or a 1x1 block. This resulted in a total file size of 33,236 bytes which consists of the residual file and the location file. The location variable first contained 256x256 elements and was then combined in the LND process into an 8bit number resulting in the location variable having 128x128 elements. The same image was then sent into the LND process but with the various block sizes. Table 3.1 shows the resulting total file size for each block size and the number of elements for the location file. Table 3.1: File Size of Different Block Sizes Block Size Total File Size Initial Size of Location Variable Final Size of Location Variable 1x x x128 2x x128 64x64 3x x85 43x43 4x x64 32x32 Based on the above data, the LND process on 3x3 blocks allows the image to be compressed more than the other block sizes. The value of the residual file is larger for the 3x3 block versus the 2x2 block since there is a larger minimum difference between neighboring blocks due to the greater 25

38 distance. The value of the location file is smaller for the 3x3 block than the 2x2 block since it has less amounts of elements that need to be compressed. Therefore, the optimum block size that results in the smallest file size for this image is the 3x3 block size in the LND process. 3.3 Variations of LND After the optimum block size is determined to be a 3x3 block, there are many ways that the difference can be calculated with the neighboring blocks. Many ways are created and tested to determine which variation provided the minimum file size of the images. Here, the many variations are explained in detail resulting in a total of twelve variations. There are many more variations that could be created but these were the main ones in the testing process. The four block positions available for subtraction are labeled A, B, C, and D. Figure 3.5 shows where each of those block positions correspond to the block that is being focused on, Block X. Some positions had more variations than others due to the frequency of use of that position and the adjacency of the position block to Block X. Figure 3.5: Block Positions Figure 3.6 shows the 3x3 blocks and their corresponding inner pixels that are referred to in the following subsections to explain the variations. 26

39 Figure 3.6: Inner Block Pixel Positions Basic LND The Basic LND variation is taking the difference between the two neighboring blocks in a straight forward manner. This is performed by the following equation for each pixel in Block X with respect to Block A where R represents the residual value. R i = X i A i, i = {1, 2,..., 9} This equation results in Block X as shown in Figure 3.7. This same equation and process is performed with Blocks B, C, and D. 27

40 Figure 3.7: Basic LND Result for Block X Close Mirror LND The Close Mirror variation is performed by taking the difference of each pixel with respect to the pixels in the neighboring blocks that are the closest to the shared edge. This is described by the following equations for each pixel in Block X with respect to Block A. R i = X i A 1, i = {1, 2, 3} R i = X i A 4, i = {4, 5, 6} R i = X i A 7, i = {7, 8, 9} These same equations are performed with Blocks B, C, and D but with Blocks B and D being diagonal from Block X, the subtraction is only with the diagonal pixel. For example, with respect to Block B, the equation would be as follows: R i = X i B 1, i = {1, 2,..., 9} 28

41 3.3.3 Close Mirror Diagonal LND The Close Mirror Diagonal LND is very similar to the Close Mirror variation but the equation changes for Blocks B and D since they are diagonal to Block X. The following equations results in Block X with respect to Block B. R i = X i A 4, i = {3} R i = X i A 7, i = {2, 6} R i = X i B 1, i = {1, 5, 9} R i = X i C 3, i = {4, 8} R i = X i C 2, i = {7} These equations result in Block X as shown in Figure 3.8. This same process is performed with Block D with the diagonal in the opposite direction. Figure 3.8: Close Mirror Diagonal LND Result for Block X 29

42 3.3.4 Close Mirror Diagonal Mix LND The Close Mirror Diagonal Mix variation is a combination of Close Mirror and Close Mirror Diagonal where Block X is determined by the following equations with respect to Block B. This variation only refers to Blocks B and D since they are diagonal to Block X. R i = X i A 1, i = {1, 2, 3} R i = X i C 1, i = {4} R i = X i B 1, i = {5} R i = X i A 4, i = {6} R i = X i D 3, i = {7} R i = X i C 2, i = {8} R i = X i B 1, i = {9} These equations result in Block X as shown in Figure 3.9. This same process is performed with Block D with the Block X pixel 5 subtracted from D 1 instead of B 1. Figure 3.9: Close Mirror Diagonal Mix LND Result for Block X 30

43 3.3.5 Block Mean LND The Block Mean LND variation first takes the mean of all nine pixels in the neighboring block and then subtracts that value from each pixel in Block X. Since the mean of the neighboring block can be a decimal, the value is rounded for the sake of keeping all values integers. This process is shown in the following equations which are with respect to Block A and is the same for Block C. µ A = i=1 A i R i = X i µ A, i = {1, 2,..., 9} For the two diagonal blocks of Block B and D, the subtraction is just based on the corner pixels of the block changing the equation for Block X with respect to Block B to R i = X i B 1 for i = {1, 2,..., 9} Col/Row Mean LND The Col/Row Mean variation takes the mean of each column or row of the neighboring block depending on the position the neighboring block is according to Block X. For Block A, it is the mean of the rows that is calculated and subtracted but for Block C, it is the mean of the columns since Block C is directly under Block X. The two diagonal blocks of Block B and D are performed as in the Block Mean variation and are just the subtraction of the corner pixels. The following equations are an example of how Block X is determined with respect to Block A. 31

44 row 1 = 1 3 row 2 = 1 3 row 3 = i=1 6 i=4 9 i=7 A i A i A i R i = X i row 1, i = {1, 2, 3} R i = X i row 2, i = {4, 5, 6} R i = X i row 3, i = {7, 8, 9} Edge Mean LND The Edge Mean variation determines the mean of the closest edge to Block X of the neighboring block. For Block A, the closest edge is a column and for Block C, the closest edge is a row. The following equations are an example of how Block X is determined with respect to Block A. µ edge = 1 3 (A 1 + A 4 + A 7 ) R i = X i µ edge, i = {1, 2,..., 9} Middle Mean LND The Middle Mean variation is one that has to be performed in a set of steps. First, the top row and bottom row of pixels in Block X are subtracted from the middle row of pixels in Block X. Then, the mean of the closest edge of the neighboring block is calculated as in the Edge Mean variation. Finally, to reduce the values of the middle row of Block X, the mean of the closest edge is subtracted from each pixel in the middle row of Block X. This same process is performed on a column basis 32

45 for when the neighboring Block C is used. The following equations are an example of how Block X is determined with respect to Block A. µ edge = 1 3 (A 1 + A 4 + A 7 ) R i = X i X i+3, i = {1, 2, 3} R i = X i µ edge, i = {4, 5, 6} R i = X i X i-3, i = {7, 8, 9} Row Mean Edge/Col Mean Edge LND The Row Mean Edge or Col Mean Edge variation is named two different names depending on which neighboring block is being used. For Block A, the Col Mean Edge is used and for Block C, the Row Mean Edge is used. Since the process is the same, the Col Mean Edge will be described here with respect to Block A. The first step in the process is to subtract the second column of Block X from the first column of Block X for the values of the first column. Then, the same is done for the second column of Block X. Then, the mean of the closest edge of the neighboring block is calculated as in the Edge Mean variation. Finally, the edge mean is subtracted from the third column of Block X for the values of the third column. This same process is performed on a row basis for when the neighboring Block C is used. The following equations are an example of how Block X is determined with respect to Block A. µ edge = 1 3 (A 1 + A 4 + A 7 ) 33

46 R i = X i X i+1, i = {1, 2, 4, 5, 7, 8} R i = X i µ edge, i = {3, 6, 9} Nearest Neighbor LND The Nearest Neighbor variation is partially based on the idea of the previous variation where each pixel in Block X is subtracted from the neighboring pixel. For Block A, this is to the right of the pixel and for Block C, this is under the pixel. The following equation is an example of how Block X is determined with respect to Block A. R i = X i X i+1, i = {1, 2, 4, 5, 7, 8} R i = X i A 1, i = 3 R i = X i A 4, i = 6 R i = X i A 7, else Clockwise Spiral The Clockwise Spiral variation does not follow any equation for all of the pixels in Block X but is created in a way that each pixel is related to the pixel neighboring it. For example, Figure 3.10 shows the subtraction step for each pixel in Block X in respect to Block A. 34

47 Figure 3.10: Clockwise Spiral LND Result for Block X Counter-Clockwise Spiral The Counter-Clockwise Spiral variation is just like the Clockwise Spiral variation but rotates around the pixels in Block X in the opposite direction. For example, Figure 3.11 shows the subtraction step for each pixel in Block X in respect to Block A. Figure 3.11: Counter-Clockwise Spiral LND Result for Block X 3.4 Variation Optimization Due to the many variations of the subtraction step in LND, some variations were the minimum difference for some blocks while other variations were the minimum for other blocks. It was also noted that some location options were not used as frequently as other options. Because of this, a variation optimization process was performed to reduce the many variations of the subtraction step 35

48 down to the top four frequently used variations. Reducing the options down to the top four would allow for blocks to use the variation that provides them with the minimal difference or residual value, but also would provide a simple way of tracking which variation was used for a particular block. Just as the location for each block was saved using only two bits, the variation used for each block can be saved using only two bits. This removes the need for having a location file and replaces that with the need of a variation file. The variation file contains the same number of elements as the location file but now describes which of the top four variations is the one that provides the minimum difference between blocks. To perform the variation optimization, code was created that contained a top level code and then many functions that were called from the top level. For each block, only certain variations were tested since the block may only have neighboring blocks on a few sides depending on if that particular block is on the edges or corners of the image. The overall optimization process is shown in Figure 3.12 where the top level code calls the functions for each block location available for that particular block and then those options call the functions created for each variation. A, B, C, and D are referred to as location functions and 1,2,3,...,etc are referred to as variation functions. Figure 3.12: Variation Optimization Process 36

49 For each level in the optimization process, certain data was sent and returned to all of the functions that were called. From the top level code, the block s pixel location was sent to the location functions, which then passed the pixel location onto the variation functions. Once the variation functions calculated the difference between the pixels, then it returned which of the variations provided the minimum difference and also the values of that difference on a pixel by pixel basis to the location functions. Then, in the location functions, it determined which of the four locations provided the minimum difference returning which location was the minimum, the variation of that location that provided the minimum, and the pixel values of the minimum to allow the block to be updated with the residual values. Performing the optimization in this fashion allows 35 different variations to be reduced down to the top four variations, one for each of the four locations surrounding the block. Then, the overall minimum difference is based from the top four variations that represent each of the four locations. The optimization process is performed two different times. First, the variations are optimized based on one image, Chest Xray256a as explained in Section Then, four images are chosen from the eight that were created to be the training images and the variations were optimized based on those four training images as discussed in Section Optimization Based on Chest Xray256a First, the variation optimization process was performed based on the image Chest Xray256a as shown above in Figure 3.3. The process of optimizing the variations is a slow process that needs to be completed in many steps. In each round of reduction, as some variations were removed, the blocks that are using the removed variations had to adjust and use other variations that are still being offered. This is why the process is done in stages to determine which variations were used the most frequently based on the variations that were being offered. Table 3.2 shows the reduction process of the variations for this image. 37

50 Table 3.2: Variation Reduction Based on Chest Xray256a Stage Variations Variations Size of Comments Used Tested Residual variations created; not all used in min difference removed position D for all blocks removed variations used for <200 blocks reduced position C to 1 variation removed variations used for <500 blocks removed variations used for <800 blocks removed variations used for <1000 blocks It is important to note, though there were a total of 35 variations tested, not all of them are used for any of the blocks. Some variations never provided a minimum difference and are not efficient enough for any of the blocks. This is why the number of variations used is less than the number of variations tested. Figure 3.13 through Figure 3.16 shows the graph of each of the variations used and by how many blocks. By looking at the graphs, it was determined which of the variations were to be removed until the final four were used for all of the blocks in the image. 38

51 Figure 3.13: Variations Used: Top: Stage 1, Bottom: Stage 2 39

52 Figure 3.14: Variations Used: Top: Stage 3, Bottom: Stage 4 40

53 Figure 3.15: Variations Used: Top: Stage 5, Bottom: Stage 6 41

54 Figure 3.16: Variations Used: Stage 7 Based on the last graph in the above image which represents the last stage of the optimization process, the top four variations based on Chest Xray256a are Close Mirror A, Block Mean A, Nearest Neighbor A, and Nearest Neighbor C. By only using these four variations, the residual file size is 26,664 bytes. The variation file that is needed to record which variation each block used is compressed into a file size of 1,648 bytes. For this image, the total compressed file size is 28,312 bytes. It is important to note that as more variations are offered, the size of the residual is smaller as shown in Figure But with more variations to create a smaller residual file, the more bits are needed to record which of the variations is used for each block in the variations file. This is where the balance of how many variations to offer and the size of the files becomes important and key on creating the smallest file size possible. 42

55 Variation Optimization Residual Sizes 2.65 Size of Residual (bytes) Number of Variations Used Figure 3.17: Residual Size Dependent on Variations Optimization Based on Four Testing Images Second, the variation optimization process was performed based on four of the eight created images as training images for the system. The four training images are shown below in Figure

56 Figure 3.18: Top Left: Chest Xray256a, Top Right: xr chest1 Bottom Left: xr chest3, Bottom Right: xr skull1 The process of optimizing the variations was a slow process that needed to be completed in many steps for the four training images as when the optimization was based only on Chest Xray256a. In each round of reduction, as some variations were removed, the blocks that were using the removed variations had to adjust and use other variations that were still being offered. This is why the process was done in stages to determine which variations were used the most frequently in the training images based on the variations that were being offered. Table 3.3 shows the reduction process of the variations for the four training images. As with the other optimization test, though there were a total of 35 variations tested, not all of them were used for any of the blocks. Some variations never provided a minimum difference and are not efficient enough for any of the blocks. This is why the number of variations used is less than 44

57 Table 3.3: Variation Reduction Based on Four Training Images Stage Variations Variations Comments Used Tested variations created; not all used in min difference removed position D for all blocks removed variations used for <1000 blocks reduced position C to 1 variation removed variations used for <2200 blocks removed variations used for <3500 blocks removed variations used for <5000 blocks the number of variations tested. Figure 3.19 through Figure 3.22 shows the graph of each of the variations used and by how many blocks throughout the four images. By looking at the graphs, it was determined which of the variations were to be removed until the final four were used for all of the blocks in the images. 45

58 Figure 3.19: Variations Used: Top: Stage 1, Bottom: Stage 2 46

59 Figure 3.20: Variations Used: Top: Stage 3, Bottom: Stage 4 47

60 Figure 3.21: Variations Used: Top: Stage 5, Bottom: Stage 6 48

61 Figure 3.22: Variations Used: Stage 7 Based on the last graph in the above image which represents the last stage of the optimization process, the top four variations based on the four training images were Close Mirror A, Block Mean A, Nearest Neighbor A, and Nearest Neighbor C. These top four variations are the same top four variations when the process was optimized by only using Chest Xray256a. Therefore, based on these created 256x256 images, the variations Close Mirror A, Block Mean A, Nearest Neighbor A, and Nearest Neighbor C are the ones that are used the most and provide the minimum residual value for multiple images. From this point, the LND process determines the minimum difference of the top four variations to create the variation file. The residual file along with the variation file are then used in the reverse process to reconstruct the image as explained in Chapter IV. 49

62 3.5 LND with Two Variations Now that LND is finalized with using the top four variations, it is important to prove that four variations is the optimum amount of options for each of the blocks. This test was performed using the image Chest Xray256a. The same LND process can be performed with only offering two variations for the blocks to use instead of four. Of course, the edge and corner blocks are special situations so those locations have different variations depending on their location in the image. By only offering two variations per block, determining the top two variations had to be done in a more location specific manner. To determine the top two variations, the blocks on each edge and middle were individually gauged to find which two variations were used the most depending on the location of the blocks. Figure 3.23 shows the different edges and middle blocks that were polled to determine which two variations were the top two used for that specific edge. Table 3.4 lists the top two variations for each edge and middle block locations based on the optimized top four variations. Figure 3.23: Location of Edge and Middle Blocks 50

63 Table 3.4: Top 2 Variations per Block Location Block Location Top Edge (TE) Right Edge (RE) Left Edge (LE) Bottom Edge (BE) Middle (M) Top 2 Variations Close Mirror A Nearest Neighbor C Nearest Neighbor C Close Mirror A Nearest Neighbor A Block Mean A Nearest Neighbor A Close Mirror A Nearest Neighbor A After the LND is performed with the top two variations, the residual file and the variations file are compressed using XZ as in the proposed process. The residual file size using the two variations is 28,028 bytes. To determine the best way to reduce the size of the variations file, three different methods were used. First, the variation file was compressed by XZ without any processing on the values before being sent into the compressor. This resulted in 1,080 bytes for the variation file. Second, since there are only two variations that are offered for each block, this information can be recorded by only using 1 bit. This method of compressing the variation file consists of first combining four variations into one 8 bit value. Then, it is sent into XZ compress resulting in a variation file of the size 984 bytes. The third method performed was combining eight variations into one 8 bit value before being compressed. This results in a variation file of the size 888 bytes. Table 3.5 shows the same information along with the total file size for the image once compressed. Table 3.5: File Sizes with 2 Variations Residual File Size Variation File Size Total File Size Comments no processing on variation file combining every 4 values into 8bit number combining every 8 values into 8bit number 51

64 Based on the above values, there are a few conclusions that can be made. First, by only using the top two variations, the variation file is drastically reduced especially when eight variation values can be combined into one 8 bit number. Second, reducing the variations down to the top two causes the residual file to grow since blocks are being limited to options that may or may not provide the minimum difference. Another variation may be the minimum for a particular block but since that is not the variation most used for that edge, it has to settle for one of the top options. Lastly, the minimum file size created by only offering two variations is 28,916 bytes which is larger than offering four variations on this image which is 28,314 bytes. Therefore, limiting the LND process to the top two variations is not beneficial to reducing the size of the compressed image. 3.6 LND with Eight Variations Since limiting the LND process to the top two variations was not effective, the same process must be tested but with offering the top eight varitions to the LND process. This test was also performed using the image Chest Xray256a. To determine the top eight variations in the image, the optimization stage that offered twelve methods for the Chest Xray256a image, Stage 4 from Table 3.2 was used and variation options that were used for <420 blocks were then eliminated. This results in the following top eight variations: Close Mirror A Block Mean A Col/Row Mean A Edge Mean A Nearest Neighbor A CCW Spiral A Close Mirror Diagonal B Nearest Neighbor C After the LND is performed with the top eight variations, the residual file and the variation file were compressed using XZ as in the proposed process. The residual file size using the eight 52

65 variations is 26,036 bytes. To determine the best way to reduce the size of the variation file, two different methods were used. First, the variation file was compressed by XZ without any processing on the values before being sent into the compressor. This resulted in 2,668 bytes for the variation file. Second, since there are eight variations that are offered for each block, this information can be recorded by using three bits. This method of compressing the variation file consists of first combining two variations into one 8 bit value. This is performed by placing the two variation values at the end of the 8 bit stream resulting in a value as shown in Figure 3.24 where the two most significant bits are always 0. Then, it is sent into XZ compress resulting in a variation file of the size 2,492 bytes. Table 3.6 shows the same information along with the total file size for the compressed image. Figure 3.24: Combination of 2 Variations into 8bit Value Table 3.6: File Sizes with 8 Variations Residual File Size Variation File Size Total File Size Comments no processing on variation file combining every 2 values into 8bit number Based on the above values, there are a few conclusions that can be made. First, by only using the top eight variations, the residual file is only slightly reduced compared to the residual file when using four variations. This reduction is about 600 bytes. Second, reducing the variations down to the top 53

66 eight causes the variation file to grow due to needing three bits to represent a single variation since there are eight options that need to be recorded. Lastly, the minimum file size created by offering eight variations is 28,528 bytes which is larger than offering four variations on this image which is 28,314 bytes. Therefore, limiting the LND process to the top eight variations is not beneficial to reducing the size of the compressed image. 3.7 Optimum Block Size Revisited Before, when the optimum block size was determined, the testing was performed using only the Basic LND variation. Now that it was proven that the four best variations to be used are Close Mirror, Block Mean, and Nearest Neighbor (A and C) and not Basic LND, it was important to revisit the optimum block size testing. By using the top four variations with 3x3 blocks, the average compression percentage of the original medical images resulted in 52.26%. When the block size was changed to 4x4 blocks with the same top four variations, the average compression percentage of the original images resulted in 51.87%. This compression percentage value is less than that of the 3x3 blocks since there are less variation values that need to be saved. Both of these compression percentages include the residual file and the variation file. Therefore, by using the four optimum LND variations, the optimum block size that should be used in the LND process is 4x4 blocks. 3.8 Pre-processing Comparison The final LND process that is being proposed uses 4x4 blocks on the image with four variations being offered to each block resulting in two files, which are both processed before being compressed by a commercial-off-the-shelf compressor, XZ. There are other currently used pre-processes that reduce the entropy in an image. To compare the pre-processes, images are being processed and then sent into the XZ compressor to determine the best pre-processor. Figure 3.25 shows the overall process of image compression. Having a pre-process that is separate and uncoupled from the 54

67 compressor allows flexibility to change the compressor as more efficient compressors are developed, allowing the overall system to be up-to-date. Figure 3.25: Process of Image Compression Three different pre-processes will be compared in this test. The first pre-process is a simple difference calculator that determines the difference between a pixel at the location (i,j) and a pixel at location (i,j+1). The second pre-process is the finalized LND process. To compare the effects of both block sizes, the test images will be processed using both 3x3 and 4x4 blocks and offering the top four variations for each block. The third pre-process is a wavelet transform 5-3 (WT 5-3) which is the pre-process that is used in JPEG2000. Since JPEG2000 can perform multiple levels of the wavelet transform on an image, different levels were created and tested on each image. A level 1, level 3, and level 5 wavelet transforms were created and reversed to confirm a lossless process but only level 5 is shown in the following results. This resulted in a total of four different pre-process that are being tested and compared before using the XZ compressor. Table 3.7 provides the total file sizes for each of the images and pre-processing options. 55

68 Table 3.7: Pre-Process Comparison of 8 Images Image (.bpm) Image Only XZ LND LND Simple WT 5-3 WT 5-3 WT 5-3 Size (3x3) (4x4) Difference (level 1) (level 3) (level 5) Chest Xray256a 256x Chest Xray x xr chest1 256x xr chest2 256x xr chest3 256x xr hands1 256x xr skull1 256x xr skull2 256x Total Percent of Original 100% 58.63% 52.26% 51.87% 52.61% 53.50% 49.95% 49.70% For easy comparison, Figure 3.26 shows a graph of the same values listed above for each image tested and Figure 3.27 is for an average of the images. Each image individually provides slightly different results due to the various amounts of information and data in the pixels Pre-Processing Results XZ LND(3x3) LND(4x4) Simple Difference Wavelet Transform 3.5 File Size (bytes) ChestXray256a ChestXray256 xrchest1 xrchest2 xrchest3 xrhands1 xrskull1 xrskull2 Figure 3.26: Pre-Process Comparison of 8 Images 56

69 100 Pre-Processing Results Percent of Original XZ LND(3x3) LND(4x4) Simple Difference Wavelet Transform Figure 3.27: Pre-Process Comparison Average of 8 Images Based on the results presented above, on average, the purposed LND (4x4) allows the image to be compressed to 51.87% of the original image size. This is smaller than sending the image into the XZ compressor without any pre-processing which compressed the image to 58.63% of the original image. The simple difference calculator does result in a higher compression ratio than not using a pre-process at all but is still a larger percent of the original image at 52.61% compared to the purposed LND. The wavelet transform 5-3 level 5 pre-process that is used in JPEG2000 reduces the image to be 49.70% of the original image when uncoupled and sent into a commercial-off-the-shelf compressor, XZ. Therefore, on average, the pre-process that results in the minimum file size and the maximum entropy reduction when using XZ compress is the wavelet transform from JPEG

70 3.9 Variation Prediction By looking at the above results, it can be seen that JPEG2000 is only performing slightly better than the proposed LND process. With the removal of the variation file in each tested image, the LND process would result in a smaller ratio of the original image to reverse the process, therefore, would perform better than JPEG2000. Table 3.8 shows the original LND values for both 3x3 and 4x4, the original JPEG2000 values, and the values of each image when the variation file is removed. Table 3.8: Prediction Comparison of 8 Images Image (.bpm) LND LND WT LND with Prediction LND with Prediction (3x3) (4x4) (level 5) (3x3) (4x4) Chest Xray256a Chest Xray xr chest xr chest xr chest xr hands xr skull xr skull Total Percent of Original 52.26% 51.87% 49.70% 49.43% 50.27% For easy comparison, Figure 3.28 shows a graph of the same values listed above for each image tested and Figure 3.29 is for an average of the images. Each image individually provides slightly different results due to the various amounts of information and data in those pixels. 58

71 Pre-Processing Results LND(3x3) LND(4x4) Wavelet Transform LND(3x3) with Pred LND(4x4) with Pred 3 File Size (bytes) ChestXray256a ChestXray256 xrchest1 xrchest2 xrchest3 xrhands1 xrskull1 xrskull2 Figure 3.28: Prediction Comparison of 8 Images 59

72 100 Pre-Processing Results Percent of Original LND(3x3) LND(4x4) Wavelet Transform LND(3x3) with Pred LND(4x4) with Pred Figure 3.29: Prediction Comparison Average The way to remove the variation file would be to use a series of prediction methods to accurately and consistently predict which of the four variations was being used for each block. This can be tested on the encoding process to allow any block that doesn t get predicted correctly to be marked. Then, in the decoding process, the same prediction methods would be used to accurately determine which variation was used for a specific block. Many prediction methods have already been tested including using neighboring block means, variance in the reconstructed block, minimum difference of the blocks edges with the surrounding blocks, etc. So far, there is not a single prediction method that accurately predicts the variation used over all, or most, blocks in the image. Currently, the 60

73 best prediction method is by using the edges of the surrounding blocks. By taking the minimum difference of the edges, the prediction method that creates the block that matches the neighboring blocks the most is chosen. When 3x3 blocks are used in LND, the average correct prediction is about 60% of the blocks. When 4x4 blocks are used, the average correct prediction is about 65% with this prediction method. A possible prediction method that could be tried would be to incorporate a machine learning system. This would allow a system to determine the best way to predict the variation used and could result in more consistent predictions over the images. With the inclusion of prediction into the LND process, the 3x3 LND process would result in better performance as shown in Figure These results can then be compared with JPEG2000 which is at 49.70%. This would be very beneficial to the LND process and the image compression field. Figure 3.30: Versions of LND The above image shows the current and potential results of the proposed LND process. If no prediction is used, the best LND is the 4x4 blocks. Though this does not prove better performance 61

74 than JPEG2000, with some future work and modifications, it has potential to be beneficial to image compression. The 4x4 LND does, however, perform better than the simple difference of pixels and better than not using any pre-process before using the xz compressor. Once prediction becomes more accurate, allowing the variation file to be removed, the 3x3 LND performs better than JPEG2000. The 4x4 LND with prediction does not reduce as much as 3x3 LND with prediction since there are bigger blocks, there are less amounts of variations that need to be saved for the system to be reversible. The variation file is a smaller percentage of the overall file size for 4x4 blocks as compared to 3x3 blocks. Therefore, the 3x3 LND with prediction provides the best results and, on average, has potential to perform better than JPEG Large Image Testing Once the LND process is finalized, the algorithm is tested using images larger than 256x256. The four images are shown in Figure 3.31 below and are the whole images from which the previous testing images were taken from. Figure 3.31: Left to Right: Imdent-0100 (512x512), Chest X-ray (1760x1760), Hands X-ray (2577x2048), Skull X-ray (2048x2577) 62

A SURVEY ON DICOM IMAGE COMPRESSION AND DECOMPRESSION TECHNIQUES

A SURVEY ON DICOM IMAGE COMPRESSION AND DECOMPRESSION TECHNIQUES A SURVEY ON DICOM IMAGE COMPRESSION AND DECOMPRESSION TECHNIQUES Shreya A 1, Ajay B.N 2 M.Tech Scholar Department of Computer Science and Engineering 2 Assitant Professor, Department of Computer Science

More information

[Srivastava* et al., 5(8): August, 2016] ISSN: IC Value: 3.00 Impact Factor: 4.116

[Srivastava* et al., 5(8): August, 2016] ISSN: IC Value: 3.00 Impact Factor: 4.116 IJESRT INTERNATIONAL JOURNAL OF ENGINEERING SCIENCES & RESEARCH TECHNOLOGY COMPRESSING BIOMEDICAL IMAGE BY USING INTEGER WAVELET TRANSFORM AND PREDICTIVE ENCODER Anushree Srivastava*, Narendra Kumar Chaurasia

More information

Chapter 9 Image Compression Standards

Chapter 9 Image Compression Standards Chapter 9 Image Compression Standards 9.1 The JPEG Standard 9.2 The JPEG2000 Standard 9.3 The JPEG-LS Standard 1IT342 Image Compression Standards The image standard specifies the codec, which defines how

More information

Module 6 STILL IMAGE COMPRESSION STANDARDS

Module 6 STILL IMAGE COMPRESSION STANDARDS Module 6 STILL IMAGE COMPRESSION STANDARDS Lesson 16 Still Image Compression Standards: JBIG and JPEG Instructional Objectives At the end of this lesson, the students should be able to: 1. Explain the

More information

Digital Image Fundamentals

Digital Image Fundamentals Digital Image Fundamentals Computer Science Department The University of Western Ontario Presenter: Mahmoud El-Sakka CS2124/CS2125: Introduction to Medical Computing Fall 2012 October 31, 2012 1 Objective

More information

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS RADT 3463 - COMPUTERIZED IMAGING Section I: Chapter 2 RADT 3463 Computerized Imaging 1 SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS RADT 3463 COMPUTERIZED IMAGING Section I: Chapter 2 RADT

More information

Ch. 3: Image Compression Multimedia Systems

Ch. 3: Image Compression Multimedia Systems 4/24/213 Ch. 3: Image Compression Multimedia Systems Prof. Ben Lee (modified by Prof. Nguyen) Oregon State University School of Electrical Engineering and Computer Science Outline Introduction JPEG Standard

More information

Unit 1.1: Information representation

Unit 1.1: Information representation Unit 1.1: Information representation 1.1.1 Different number system A number system is a writing system for expressing numbers, that is, a mathematical notation for representing numbers of a given set,

More information

Compression and Image Formats

Compression and Image Formats Compression Compression and Image Formats Reduce amount of data used to represent an image/video Bit rate and quality requirements Necessary to facilitate transmission and storage Required quality is application

More information

2.1. General Purpose Run Length Encoding Relative Encoding Tokanization or Pattern Substitution

2.1. General Purpose Run Length Encoding Relative Encoding Tokanization or Pattern Substitution 2.1. General Purpose There are many popular general purpose lossless compression techniques, that can be applied to any type of data. 2.1.1. Run Length Encoding Run Length Encoding is a compression technique

More information

Assistant Lecturer Sama S. Samaan

Assistant Lecturer Sama S. Samaan MP3 Not only does MPEG define how video is compressed, but it also defines a standard for compressing audio. This standard can be used to compress the audio portion of a movie (in which case the MPEG standard

More information

A Hybrid Technique for Image Compression

A Hybrid Technique for Image Compression Australian Journal of Basic and Applied Sciences, 5(7): 32-44, 2011 ISSN 1991-8178 A Hybrid Technique for Image Compression Hazem (Moh'd Said) Abdel Majid Hatamleh Computer DepartmentUniversity of Al-Balqa

More information

Chapter 8. Representing Multimedia Digitally

Chapter 8. Representing Multimedia Digitally Chapter 8 Representing Multimedia Digitally Learning Objectives Explain how RGB color is represented in bytes Explain the difference between bits and binary numbers Change an RGB color by binary addition

More information

Multimedia Communications. Lossless Image Compression

Multimedia Communications. Lossless Image Compression Multimedia Communications Lossless Image Compression Old JPEG-LS JPEG, to meet its requirement for a lossless mode of operation, has chosen a simple predictive method which is wholly independent of the

More information

New Lossless Image Compression Technique using Adaptive Block Size

New Lossless Image Compression Technique using Adaptive Block Size New Lossless Image Compression Technique using Adaptive Block Size I. El-Feghi, Z. Zubia and W. Elwalda Abstract: - In this paper, we focus on lossless image compression technique that uses variable block

More information

The Scientist and Engineer's Guide to Digital Signal Processing By Steven W. Smith, Ph.D.

The Scientist and Engineer's Guide to Digital Signal Processing By Steven W. Smith, Ph.D. The Scientist and Engineer's Guide to Digital Signal Processing By Steven W. Smith, Ph.D. Home The Book by Chapters About the Book Steven W. Smith Blog Contact Book Search Download this chapter in PDF

More information

PERFORMANCE EVALUATION OFADVANCED LOSSLESS IMAGE COMPRESSION TECHNIQUES

PERFORMANCE EVALUATION OFADVANCED LOSSLESS IMAGE COMPRESSION TECHNIQUES PERFORMANCE EVALUATION OFADVANCED LOSSLESS IMAGE COMPRESSION TECHNIQUES M.Amarnath T.IlamParithi Dr.R.Balasubramanian M.E Scholar Research Scholar Professor & Head Department of Computer Science & Engineering

More information

MEDICAL X-RAY 2D AND 3D IMAGE VIEWER:ROLE FOR THE MEDICAL IMAGE IN DICOM STANDARD

MEDICAL X-RAY 2D AND 3D IMAGE VIEWER:ROLE FOR THE MEDICAL IMAGE IN DICOM STANDARD MEDICAL X-RAY 2D AND 3D IMAGE VIEWER:ROLE FOR THE MEDICAL IMAGE IN DICOM STANDARD Mrs.B.A.Khivsara Mr.Shakadwipi Amol J. Mr. Nagare Sachin N. Mr. Phophaliya Abhijeet Mr.Gujrathi Apurv N. Abstract : A variety

More information

HYBRID MEDICAL IMAGE COMPRESSION USING SPIHT AND DB WAVELET

HYBRID MEDICAL IMAGE COMPRESSION USING SPIHT AND DB WAVELET HYBRID MEDICAL IMAGE COMPRESSION USING SPIHT AND DB WAVELET Rahul Sharma, Chandrashekhar Kamargaonkar and Dr. Monisha Sharma Abstract Medical imaging produces digital form of human body pictures. There

More information

2. REVIEW OF LITERATURE

2. REVIEW OF LITERATURE 2. REVIEW OF LITERATURE Digital image processing is the use of the algorithms and procedures for operations such as image enhancement, image compression, image analysis, mapping. Transmission of information

More information

Alternative lossless compression algorithms in X-ray cardiac images

Alternative lossless compression algorithms in X-ray cardiac images Alternative lossless compression algorithms in X-ray cardiac images D.R. Santos, C. M. A. Costa, A. Silva, J. L. Oliveira & A. J. R. Neves 1 DETI / IEETA, Universidade de Aveiro, Portugal ABSTRACT: Over

More information

Lossy and Lossless Compression using Various Algorithms

Lossy and Lossless Compression using Various Algorithms Available Online at www.ijcsmc.com International Journal of Computer Science and Mobile Computing A Monthly Journal of Computer Science and Information Technology ISSN 2320 088X IMPACT FACTOR: 6.017 IJCSMC,

More information

CHAPTER 6: REGION OF INTEREST (ROI) BASED IMAGE COMPRESSION FOR RADIOGRAPHIC WELD IMAGES. Every image has a background and foreground detail.

CHAPTER 6: REGION OF INTEREST (ROI) BASED IMAGE COMPRESSION FOR RADIOGRAPHIC WELD IMAGES. Every image has a background and foreground detail. 69 CHAPTER 6: REGION OF INTEREST (ROI) BASED IMAGE COMPRESSION FOR RADIOGRAPHIC WELD IMAGES 6.0 INTRODUCTION Every image has a background and foreground detail. The background region contains details which

More information

Lossless Image Compression Techniques Comparative Study

Lossless Image Compression Techniques Comparative Study Lossless Image Compression Techniques Comparative Study Walaa Z. Wahba 1, Ashraf Y. A. Maghari 2 1M.Sc student, Faculty of Information Technology, Islamic university of Gaza, Gaza, Palestine 2Assistant

More information

REVIEW OF IMAGE COMPRESSION TECHNIQUES FOR MULTIMEDIA IMAGES

REVIEW OF IMAGE COMPRESSION TECHNIQUES FOR MULTIMEDIA IMAGES REVIEW OF IMAGE COMPRESSION TECHNIQUES FOR MULTIMEDIA IMAGES 1 Tamanna, 2 Neha Bassan 1 Student- Department of Computer science, Lovely Professional University Phagwara 2 Assistant Professor, Department

More information

A Brief Introduction to Information Theory and Lossless Coding

A Brief Introduction to Information Theory and Lossless Coding A Brief Introduction to Information Theory and Lossless Coding 1 INTRODUCTION This document is intended as a guide to students studying 4C8 who have had no prior exposure to information theory. All of

More information

EFFECTS OF PHASE AND AMPLITUDE ERRORS ON QAM SYSTEMS WITH ERROR- CONTROL CODING AND SOFT DECISION DECODING

EFFECTS OF PHASE AND AMPLITUDE ERRORS ON QAM SYSTEMS WITH ERROR- CONTROL CODING AND SOFT DECISION DECODING Clemson University TigerPrints All Theses Theses 8-2009 EFFECTS OF PHASE AND AMPLITUDE ERRORS ON QAM SYSTEMS WITH ERROR- CONTROL CODING AND SOFT DECISION DECODING Jason Ellis Clemson University, jellis@clemson.edu

More information

Color & Compression. Robin Strand Centre for Image analysis Swedish University of Agricultural Sciences Uppsala University

Color & Compression. Robin Strand Centre for Image analysis Swedish University of Agricultural Sciences Uppsala University Color & Compression Robin Strand Centre for Image analysis Swedish University of Agricultural Sciences Uppsala University Outline Color Color spaces Multispectral images Pseudocoloring Color image processing

More information

Lossy Image Compression Using Hybrid SVD-WDR

Lossy Image Compression Using Hybrid SVD-WDR Lossy Image Compression Using Hybrid SVD-WDR Kanchan Bala 1, Ravneet Kaur 2 1Research Scholar, PTU 2Assistant Professor, Dept. Of Computer Science, CT institute of Technology, Punjab, India ---------------------------------------------------------------------***---------------------------------------------------------------------

More information

A COMPARATIVE ANALYSIS OF DCT AND DWT BASED FOR IMAGE COMPRESSION ON FPGA

A COMPARATIVE ANALYSIS OF DCT AND DWT BASED FOR IMAGE COMPRESSION ON FPGA International Journal of Applied Engineering Research and Development (IJAERD) ISSN:2250 1584 Vol.2, Issue 1 (2012) 13-21 TJPRC Pvt. Ltd., A COMPARATIVE ANALYSIS OF DCT AND DWT BASED FOR IMAGE COMPRESSION

More information

Audio and Speech Compression Using DCT and DWT Techniques

Audio and Speech Compression Using DCT and DWT Techniques Audio and Speech Compression Using DCT and DWT Techniques M. V. Patil 1, Apoorva Gupta 2, Ankita Varma 3, Shikhar Salil 4 Asst. Professor, Dept.of Elex, Bharati Vidyapeeth Univ.Coll.of Engg, Pune, Maharashtra,

More information

The Strengths and Weaknesses of Different Image Compression Methods. Samuel Teare and Brady Jacobson

The Strengths and Weaknesses of Different Image Compression Methods. Samuel Teare and Brady Jacobson The Strengths and Weaknesses of Different Image Compression Methods Samuel Teare and Brady Jacobson Lossy vs Lossless Lossy compression reduces a file size by permanently removing parts of the data that

More information

MULTIMEDIA SYSTEMS

MULTIMEDIA SYSTEMS 1 Department of Computer Engineering, Faculty of Engineering King Mongkut s Institute of Technology Ladkrabang 01076531 MULTIMEDIA SYSTEMS Pk Pakorn Watanachaturaporn, Wt ht Ph.D. PhD pakorn@live.kmitl.ac.th,

More information

Information Hiding: Steganography & Steganalysis

Information Hiding: Steganography & Steganalysis Information Hiding: Steganography & Steganalysis 1 Steganography ( covered writing ) From Herodotus to Thatcher. Messages should be undetectable. Messages concealed in media files. Perceptually insignificant

More information

AN ERROR LIMITED AREA EFFICIENT TRUNCATED MULTIPLIER FOR IMAGE COMPRESSION

AN ERROR LIMITED AREA EFFICIENT TRUNCATED MULTIPLIER FOR IMAGE COMPRESSION AN ERROR LIMITED AREA EFFICIENT TRUNCATED MULTIPLIER FOR IMAGE COMPRESSION K.Mahesh #1, M.Pushpalatha *2 #1 M.Phil.,(Scholar), Padmavani Arts and Science College. *2 Assistant Professor, Padmavani Arts

More information

Image Processing Computer Graphics I Lecture 20. Display Color Models Filters Dithering Image Compression

Image Processing Computer Graphics I Lecture 20. Display Color Models Filters Dithering Image Compression 15-462 Computer Graphics I Lecture 2 Image Processing April 18, 22 Frank Pfenning Carnegie Mellon University http://www.cs.cmu.edu/~fp/courses/graphics/ Display Color Models Filters Dithering Image Compression

More information

Image compression using Thresholding Techniques

Image compression using Thresholding Techniques www.ijecs.in International Journal Of Engineering And Computer Science ISSN:2319-7242 Volume 3 Issue 6 June, 2014 Page No. 6470-6475 Image compression using Thresholding Techniques Meenakshi Sharma, Priyanka

More information

Comparative Analysis of Lossless Image Compression techniques SPHIT, JPEG-LS and Data Folding

Comparative Analysis of Lossless Image Compression techniques SPHIT, JPEG-LS and Data Folding Comparative Analysis of Lossless Compression techniques SPHIT, JPEG-LS and Data Folding Mohd imran, Tasleem Jamal, Misbahul Haque, Mohd Shoaib,,, Department of Computer Engineering, Aligarh Muslim University,

More information

APPLICATIONS OF DSP OBJECTIVES

APPLICATIONS OF DSP OBJECTIVES APPLICATIONS OF DSP OBJECTIVES This lecture will discuss the following: Introduce analog and digital waveform coding Introduce Pulse Coded Modulation Consider speech-coding principles Introduce the channel

More information

A Novel Approach of Compressing Images and Assessment on Quality with Scaling Factor

A Novel Approach of Compressing Images and Assessment on Quality with Scaling Factor A Novel Approach of Compressing Images and Assessment on Quality with Scaling Factor Umesh 1,Mr. Suraj Rana 2 1 M.Tech Student, 2 Associate Professor (ECE) Department of Electronic and Communication Engineering

More information

Audio Signal Compression using DCT and LPC Techniques

Audio Signal Compression using DCT and LPC Techniques Audio Signal Compression using DCT and LPC Techniques P. Sandhya Rani#1, D.Nanaji#2, V.Ramesh#3,K.V.S. Kiran#4 #Student, Department of ECE, Lendi Institute Of Engineering And Technology, Vizianagaram,

More information

Images with (a) coding redundancy; (b) spatial redundancy; (c) irrelevant information

Images with (a) coding redundancy; (b) spatial redundancy; (c) irrelevant information Images with (a) coding redundancy; (b) spatial redundancy; (c) irrelevant information 1992 2008 R. C. Gonzalez & R. E. Woods For the image in Fig. 8.1(a): 1992 2008 R. C. Gonzalez & R. E. Woods Measuring

More information

Medical Images Analysis and Processing

Medical Images Analysis and Processing Medical Images Analysis and Processing - 25642 Emad Course Introduction Course Information: Type: Graduated Credits: 3 Prerequisites: Digital Image Processing Course Introduction Reference(s): Insight

More information

Efficient Image Compression Technique using JPEG2000 with Adaptive Threshold

Efficient Image Compression Technique using JPEG2000 with Adaptive Threshold Efficient Image Compression Technique using JPEG2000 with Adaptive Threshold Md. Masudur Rahman Mawlana Bhashani Science and Technology University Santosh, Tangail-1902 (Bangladesh) Mohammad Motiur Rahman

More information

SYLLABUS CHAPTER - 2 : INTENSITY TRANSFORMATIONS. Some Basic Intensity Transformation Functions, Histogram Processing.

SYLLABUS CHAPTER - 2 : INTENSITY TRANSFORMATIONS. Some Basic Intensity Transformation Functions, Histogram Processing. Contents i SYLLABUS UNIT - I CHAPTER - 1 : INTRODUCTION TO DIGITAL IMAGE PROCESSING Introduction, Origins of Digital Image Processing, Applications of Digital Image Processing, Fundamental Steps, Components,

More information

A new quad-tree segmented image compression scheme using histogram analysis and pattern matching

A new quad-tree segmented image compression scheme using histogram analysis and pattern matching University of Wollongong Research Online University of Wollongong in Dubai - Papers University of Wollongong in Dubai A new quad-tree segmented image compression scheme using histogram analysis and pattern

More information

A Modified Image Template for FELICS Algorithm for Lossless Image Compression

A Modified Image Template for FELICS Algorithm for Lossless Image Compression Research Article International Journal of Current Engineering and Technology E-ISSN 2277 4106, P-ISSN 2347-5161 2014 INPRESSCO, All Rights Reserved Available at http://inpressco.com/category/ijcet A Modified

More information

Digitization and fundamental techniques

Digitization and fundamental techniques Digitization and fundamental techniques Chapter 2.2-2.6 Robin Strand Centre for Image analysis Swedish University of Agricultural Sciences Uppsala University Outline Imaging Digitization Sampling Labeling

More information

Pooja Rani(M.tech) *, Sonal ** * M.Tech Student, ** Assistant Professor

Pooja Rani(M.tech) *, Sonal ** * M.Tech Student, ** Assistant Professor A Study of Image Compression Techniques Pooja Rani(M.tech) *, Sonal ** * M.Tech Student, ** Assistant Professor Department of Computer Science & Engineering, BPS Mahila Vishvavidyalya, Sonipat kulriapooja@gmail.com,

More information

Tri-mode dual level 3-D image compression over medical MRI images

Tri-mode dual level 3-D image compression over medical MRI images Research Article International Journal of Advanced Computer Research, Vol 7(28) ISSN (Print): 2249-7277 ISSN (Online): 2277-7970 http://dx.doi.org/10.19101/ijacr.2017.728007 Tri-mode dual level 3-D image

More information

Comparative Analysis of WDR-ROI and ASWDR-ROI Image Compression Algorithm for a Grayscale Image

Comparative Analysis of WDR-ROI and ASWDR-ROI Image Compression Algorithm for a Grayscale Image Comparative Analysis of WDR- and ASWDR- Image Compression Algorithm for a Grayscale Image Priyanka Singh #1, Dr. Priti Singh #2, 1 Research Scholar, ECE Department, Amity University, Gurgaon, Haryana,

More information

ISSN: (Online) Volume 3, Issue 4, April 2015 International Journal of Advance Research in Computer Science and Management Studies

ISSN: (Online) Volume 3, Issue 4, April 2015 International Journal of Advance Research in Computer Science and Management Studies ISSN: 2321-7782 (Online) Volume 3, Issue 4, April 2015 International Journal of Advance Research in Computer Science and Management Studies Research Article / Survey Paper / Case Study Available online

More information

Image Compression Using SVD ON Labview With Vision Module

Image Compression Using SVD ON Labview With Vision Module International Journal of Computational Intelligence Research ISSN 0973-1873 Volume 14, Number 1 (2018), pp. 59-68 Research India Publications http://www.ripublication.com Image Compression Using SVD ON

More information

Automatic Morphological Segmentation and Region Growing Method of Diagnosing Medical Images

Automatic Morphological Segmentation and Region Growing Method of Diagnosing Medical Images International Journal of Information & Computation Technology. ISSN 0974-2239 Volume 2, Number 3 (2012), pp. 173-180 International Research Publications House http://www. irphouse.com Automatic Morphological

More information

Explain what is meant by a photon and state one of its main properties [2]

Explain what is meant by a photon and state one of its main properties [2] 1 (a) A patient has an X-ray scan taken in hospital. The high-energy X-ray photons interact with the atoms inside the body of the patient. Explain what is meant by a photon and state one of its main properties....

More information

Image Processing. Adrien Treuille

Image Processing. Adrien Treuille Image Processing http://croftonacupuncture.com/db5/00415/croftonacupuncture.com/_uimages/bigstockphoto_three_girl_friends_celebrating_212140.jpg Adrien Treuille Overview Image Types Pixel Filters Neighborhood

More information

Compression. Encryption. Decryption. Decompression. Presentation of Information to client site

Compression. Encryption. Decryption. Decompression. Presentation of Information to client site DOCUMENT Anup Basu Audio Image Video Data Graphics Objectives Compression Encryption Network Communications Decryption Decompression Client site Presentation of Information to client site Multimedia -

More information

Huffman Coding For Digital Photography

Huffman Coding For Digital Photography Huffman Coding For Digital Photography Raydhitya Yoseph 13509092 Program Studi Teknik Informatika Sekolah Teknik Elektro dan Informatika Institut Teknologi Bandung, Jl. Ganesha 10 Bandung 40132, Indonesia

More information

Background. Computer Vision & Digital Image Processing. Improved Bartlane transmitted image. Example Bartlane transmitted image

Background. Computer Vision & Digital Image Processing. Improved Bartlane transmitted image. Example Bartlane transmitted image Background Computer Vision & Digital Image Processing Introduction to Digital Image Processing Interest comes from two primary backgrounds Improvement of pictorial information for human perception How

More information

Images and Graphics. 4. Images and Graphics - Copyright Denis Hamelin - Ryerson University

Images and Graphics. 4. Images and Graphics - Copyright Denis Hamelin - Ryerson University Images and Graphics Images and Graphics Graphics and images are non-textual information that can be displayed and printed. Graphics (vector graphics) are an assemblage of lines, curves or circles with

More information

The next table shows the suitability of each format to particular applications.

The next table shows the suitability of each format to particular applications. What are suitable file formats to use? The four most common file formats used are: TIF - Tagged Image File Format, uncompressed and compressed formats PNG - Portable Network Graphics, standardized compression

More information

An Adaptive Wavelet and Level Dependent Thresholding Using Median Filter for Medical Image Compression

An Adaptive Wavelet and Level Dependent Thresholding Using Median Filter for Medical Image Compression An Adaptive Wavelet and Level Dependent Thresholding Using Median Filter for Medical Image Compression Komal Narang M.Tech (Embedded Systems), Department of EECE, The North Cap University, Huda, Sector

More information

Artifacts and Antiforensic Noise Removal in JPEG Compression Bismitha N 1 Anup Chandrahasan 2 Prof. Ramayan Pratap Singh 3

Artifacts and Antiforensic Noise Removal in JPEG Compression Bismitha N 1 Anup Chandrahasan 2 Prof. Ramayan Pratap Singh 3 IJSRD - International Journal for Scientific Research & Development Vol. 3, Issue 05, 2015 ISSN (online: 2321-0613 Artifacts and Antiforensic Noise Removal in JPEG Compression Bismitha N 1 Anup Chandrahasan

More information

ECE/OPTI533 Digital Image Processing class notes 288 Dr. Robert A. Schowengerdt 2003

ECE/OPTI533 Digital Image Processing class notes 288 Dr. Robert A. Schowengerdt 2003 Motivation Large amount of data in images Color video: 200Mb/sec Landsat TM multispectral satellite image: 200MB High potential for compression Redundancy (aka correlation) in images spatial, temporal,

More information

5/17/2009. Digitizing Color. Place Value in a Binary Number. Place Value in a Decimal Number. Place Value in a Binary Number

5/17/2009. Digitizing Color. Place Value in a Binary Number. Place Value in a Decimal Number. Place Value in a Binary Number Chapter 11: Light, Sound, Magic: Representing Multimedia Digitally Digitizing Color Fluency with Information Technology Third Edition by Lawrence Snyder RGB Colors: Binary Representation Giving the intensities

More information

On the Performance of Lossless Wavelet Compression Scheme on Digital Medical Images in JPEG, PNG, BMP and TIFF Formats

On the Performance of Lossless Wavelet Compression Scheme on Digital Medical Images in JPEG, PNG, BMP and TIFF Formats On the Performance of Lossless Wavelet Compression Scheme on Digital Medical Images in JPEG, PNG, BMP and TIFF Formats Richard O. Oyeleke Sciences, University of Lagos, Nigeria Femi O. Alamu Science &

More information

Module 8: Video Coding Basics Lecture 40: Need for video coding, Elements of information theory, Lossless coding. The Lecture Contains:

Module 8: Video Coding Basics Lecture 40: Need for video coding, Elements of information theory, Lossless coding. The Lecture Contains: The Lecture Contains: The Need for Video Coding Elements of a Video Coding System Elements of Information Theory Symbol Encoding Run-Length Encoding Entropy Encoding file:///d /...Ganesh%20Rana)/MY%20COURSE_Ganesh%20Rana/Prof.%20Sumana%20Gupta/FINAL%20DVSP/lecture%2040/40_1.htm[12/31/2015

More information

Determination of the MTF of JPEG Compression Using the ISO Spatial Frequency Response Plug-in.

Determination of the MTF of JPEG Compression Using the ISO Spatial Frequency Response Plug-in. IS&T's 2 PICS Conference IS&T's 2 PICS Conference Copyright 2, IS&T Determination of the MTF of JPEG Compression Using the ISO 2233 Spatial Frequency Response Plug-in. R. B. Jenkin, R. E. Jacobson and

More information

Lecture - 3. by Shahid Farid

Lecture - 3. by Shahid Farid Lecture - 3 by Shahid Farid Image Digitization Raster versus vector images Progressive versus interlaced display Popular image file formats Why so many formats? Shahid Farid, PUCIT 2 To create a digital

More information

A Modified Image Coder using HVS Characteristics

A Modified Image Coder using HVS Characteristics A Modified Image Coder using HVS Characteristics Mrs Shikha Tripathi, Prof R.C. Jain Birla Institute Of Technology & Science, Pilani, Rajasthan-333 031 shikha@bits-pilani.ac.in, rcjain@bits-pilani.ac.in

More information

A New Lossless Compression Algorithm For Satellite Earth Science Multi-Spectral Imagers

A New Lossless Compression Algorithm For Satellite Earth Science Multi-Spectral Imagers A New Lossless Compression Algorithm For Satellite Earth Science Multi-Spectral Imagers Irina Gladkova a and Srikanth Gottipati a and Michael Grossberg a a CCNY, NOAA/CREST, 138th Street and Convent Avenue,

More information

Digitizing Color. Place Value in a Decimal Number. Place Value in a Binary Number. Chapter 11: Light, Sound, Magic: Representing Multimedia Digitally

Digitizing Color. Place Value in a Decimal Number. Place Value in a Binary Number. Chapter 11: Light, Sound, Magic: Representing Multimedia Digitally Chapter 11: Light, Sound, Magic: Representing Multimedia Digitally Fluency with Information Technology Third Edition by Lawrence Snyder Digitizing Color RGB Colors: Binary Representation Giving the intensities

More information

30 lesions. 30 lesions. false positive fraction

30 lesions. 30 lesions. false positive fraction Solutions to the exercises. 1.1 In a patient study for a new test for multiple sclerosis (MS), thirty-two of the one hundred patients studied actually have MS. For the data given below, complete the two-by-two

More information

Introduction to DSP ECE-S352 Fall Quarter 2000 Matlab Project 1

Introduction to DSP ECE-S352 Fall Quarter 2000 Matlab Project 1 Objective: Introduction to DSP ECE-S352 Fall Quarter 2000 Matlab Project 1 This Matlab Project is an extension of the basic correlation theory presented in the course. It shows a practical application

More information

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY A PATH FOR HORIZING YOUR INNOVATIVE WORK IMAGE COMPRESSION FOR TROUBLE FREE TRANSMISSION AND LESS STORAGE SHRUTI S PAWAR

More information

Keywords: BPS, HOLs, MSE.

Keywords: BPS, HOLs, MSE. Volume 4, Issue 4, April 14 ISSN: 77 18X International Journal of Advanced earch in Computer Science and Software Engineering earch Paper Available online at: www.ijarcsse.com Selective Bit Plane Coding

More information

Templates and Image Pyramids

Templates and Image Pyramids Templates and Image Pyramids 09/07/17 Computational Photography Derek Hoiem, University of Illinois Why does a lower resolution image still make sense to us? What do we lose? Image: http://www.flickr.com/photos/igorms/136916757/

More information

An Enhanced Approach in Run Length Encoding Scheme (EARLE)

An Enhanced Approach in Run Length Encoding Scheme (EARLE) An Enhanced Approach in Run Length Encoding Scheme (EARLE) A. Nagarajan, Assistant Professor, Dept of Master of Computer Applications PSNA College of Engineering &Technology Dindigul. Abstract: Image compression

More information

Byte = More common: 8 bits = 1 byte Abbreviation:

Byte = More common: 8 bits = 1 byte Abbreviation: Text, Images, Video and Sound ASCII-7 In the early days, a was used, with of 0 s and 1 s, enough for a typical keyboard. The standard was developed by (American Standard Code for Information Interchange)

More information

International Journal of Digital Application & Contemporary research Website: (Volume 1, Issue 7, February 2013)

International Journal of Digital Application & Contemporary research Website:   (Volume 1, Issue 7, February 2013) Performance Analysis of OFDM under DWT, DCT based Image Processing Anshul Soni soni.anshulec14@gmail.com Ashok Chandra Tiwari Abstract In this paper, the performance of conventional discrete cosine transform

More information

IMAGE PROCESSING PAPER PRESENTATION ON IMAGE PROCESSING

IMAGE PROCESSING PAPER PRESENTATION ON IMAGE PROCESSING IMAGE PROCESSING PAPER PRESENTATION ON IMAGE PROCESSING PRESENTED BY S PRADEEP K SUNIL KUMAR III BTECH-II SEM, III BTECH-II SEM, C.S.E. C.S.E. pradeep585singana@gmail.com sunilkumar5b9@gmail.com CONTACT:

More information

Very High Speed JPEG Codec Library

Very High Speed JPEG Codec Library UDC 621.397.3+681.3.06+006 Very High Speed JPEG Codec Library Arito ASAI*, Ta thi Quynh Lien**, Shunichiro NONAKA*, and Norihisa HANEDA* Abstract This paper proposes a high-speed method of directly decoding

More information

DICOM Conformance. DICOM Detailed Specification for Diagnostic Labs and Radiology Center Connectivity

DICOM Conformance. DICOM Detailed Specification for Diagnostic Labs and Radiology Center Connectivity DICOM Detailed Specification for Diagnostic Labs and Radiology Center Connectivity Authored by Global Engineering Team, Health Gorilla April 10, 2014 Table of Contents About Health Gorilla s Online Healthcare

More information

Templates and Image Pyramids

Templates and Image Pyramids Templates and Image Pyramids 09/06/11 Computational Photography Derek Hoiem, University of Illinois Project 1 Due Monday at 11:59pm Options for displaying results Web interface or redirect (http://www.pa.msu.edu/services/computing/faq/autoredirect.html)

More information

3. Image Formats. Figure1:Example of bitmap and Vector representation images

3. Image Formats. Figure1:Example of bitmap and Vector representation images 3. Image Formats. Introduction With the growth in computer graphics and image applications the ability to store images for later manipulation became increasingly important. With no standards for image

More information

SECTION I - CHAPTER 1 DIGITAL RADIOGRAPHY: AN OVERVIEW OF THE TEXT. Exam Content Specifications 8/22/2012 RADT 3463 COMPUTERIZED IMAGING

SECTION I - CHAPTER 1 DIGITAL RADIOGRAPHY: AN OVERVIEW OF THE TEXT. Exam Content Specifications 8/22/2012 RADT 3463 COMPUTERIZED IMAGING RADT 3463 - COMPUTERIZED IMAGING Section I: Chapter 1 RADT 3463 Computerized Imaging 1 SECTION I - CHAPTER 1 DIGITAL RADIOGRAPHY: AN OVERVIEW OF THE TEXT RADT 3463 COMPUTERIZED IMAGING Section I: Chapter

More information

Level-Successive Encoding for Digital Photography

Level-Successive Encoding for Digital Photography Level-Successive Encoding for Digital Photography Mehmet Celik, Gaurav Sharma*, A.Murat Tekalp University of Rochester, Rochester, NY * Xerox Corporation, Webster, NY Abstract We propose a level-successive

More information

Image Compression Using Hybrid SVD-WDR and SVD-ASWDR: A comparative analysis

Image Compression Using Hybrid SVD-WDR and SVD-ASWDR: A comparative analysis Image Compression Using Hybrid SVD-WDR and SVD-ASWDR: A comparative analysis Kanchan Bala 1, Er. Deepinder Kaur 2 1. Research Scholar, Computer Science and Engineering, Punjab Technical University, Punjab,

More information

ROI-based DICOM image compression for telemedicine

ROI-based DICOM image compression for telemedicine Sādhanā Vol. 38, Part 1, February 2013, pp. 123 131. c Indian Academy of Sciences ROI-based DICOM image compression for telemedicine VINAYAK K BAIRAGI 1, and ASHOK M SAPKAL 2 1 Department of Electronics

More information

A STUDY OF IMAGE COMPRESSION TECHNIQUES AND ITS APPLICATION IN TELEMEDICINE AND TELECONSULTATION

A STUDY OF IMAGE COMPRESSION TECHNIQUES AND ITS APPLICATION IN TELEMEDICINE AND TELECONSULTATION A STUDY OF IMAGE COMPRESSION TECHNIQUES AND ITS APPLICATION IN TELEMEDICINE AND TELECONSULTATION 1 HIMALI B. KOTAK, 2 SANJAY A. VALAKI 1, 2 Department of Computer Engineering, Government Polytechnic, Bhuj,

More information

STUDY NOTES UNIT I IMAGE PERCEPTION AND SAMPLING. Elements of Digital Image Processing Systems. Elements of Visual Perception structure of human eye

STUDY NOTES UNIT I IMAGE PERCEPTION AND SAMPLING. Elements of Digital Image Processing Systems. Elements of Visual Perception structure of human eye DIGITAL IMAGE PROCESSING STUDY NOTES UNIT I IMAGE PERCEPTION AND SAMPLING Elements of Digital Image Processing Systems Elements of Visual Perception structure of human eye light, luminance, brightness

More information

Reading Barcodes from Digital Imagery

Reading Barcodes from Digital Imagery Reading Barcodes from Digital Imagery Timothy R. Tuinstra Cedarville University Email: tuinstra@cedarville.edu Abstract This document was prepared for Dr. John Loomis as part of the written PhD. candidacy

More information

Anna University, Chennai B.E./B.TECH DEGREE EXAMINATION, MAY/JUNE 2013 Seventh Semester

Anna University, Chennai B.E./B.TECH DEGREE EXAMINATION, MAY/JUNE 2013 Seventh Semester www.vidyarthiplus.com Anna University, Chennai B.E./B.TECH DEGREE EXAMINATION, MAY/JUNE 2013 Seventh Semester Electronics and Communication Engineering EC 2029 / EC 708 DIGITAL IMAGE PROCESSING (Regulation

More information

DICOM Correction Proposal

DICOM Correction Proposal Tracking Information - Administration Use Only DICOM Correction Proposal Correction Proposal Number Status CP-1713 Letter Ballot Date of Last Update 2018/01/23 Person Assigned Submitter Name David Clunie

More information

Segmentation Based Image Scanning

Segmentation Based Image Scanning RADIOENGINEERING, VOL. 6, NO., JUNE 7 7 Segmentation Based Image Scanning Richard PRAČKO, Jaroslav POLEC, Katarína HASENÖHRLOVÁ Dept. of Telecommunications, Slovak University of Technology, Ilkovičova

More information

B.E, Electronics and Telecommunication, Vishwatmak Om Gurudev College of Engineering, Aghai, Maharashtra, India

B.E, Electronics and Telecommunication, Vishwatmak Om Gurudev College of Engineering, Aghai, Maharashtra, India 2018 IJSRSET Volume 4 Issue 1 Print ISSN: 2395-1990 Online ISSN : 2394-4099 Themed Section : Engineering and Technology Implementation of Various JPEG Algorithm for Image Compression Swanand Labad 1, Vaibhav

More information

Indexed Color. A browser may support only a certain number of specific colors, creating a palette from which to choose

Indexed Color. A browser may support only a certain number of specific colors, creating a palette from which to choose Indexed Color A browser may support only a certain number of specific colors, creating a palette from which to choose Figure 3.11 The Netscape color palette 1 QUIZ How many bits are needed to represent

More information

A Fast Segmentation Algorithm for Bi-Level Image Compression using JBIG2

A Fast Segmentation Algorithm for Bi-Level Image Compression using JBIG2 A Fast Segmentation Algorithm for Bi-Level Image Compression using JBIG2 Dave A. D. Tompkins and Faouzi Kossentini Signal Processing and Multimedia Group Department of Electrical and Computer Engineering

More information

Speech Compression Using Wavelet Transform

Speech Compression Using Wavelet Transform IOSR Journal of Computer Engineering (IOSR-JCE) e-issn: 2278-0661,p-ISSN: 2278-8727, Volume 19, Issue 3, Ver. VI (May - June 2017), PP 33-41 www.iosrjournals.org Speech Compression Using Wavelet Transform

More information

Scopus Indexed. Syam Babu Vadlamudi Department of Electronics & Communication, MLR Institute of Technology. Koppula Srinivas Rao

Scopus Indexed. Syam Babu Vadlamudi Department of Electronics & Communication, MLR Institute of Technology. Koppula Srinivas Rao International Journal of Mechanical Engineering and Technology (IJMET) Volume 8, Issue 7, July 2017, pp. 133 139, Article ID: IJMET_08_07_016 Available online at http://www.ia aeme.com/ijm MET/issues.as

More information