22bce7256_assignment_2 (2)
22bce7256_assignment_2 (2)
NAME:HARSHITHA
REG:22BCE7256
SLOT:B2+TB2
1. Lossy
2. Lossless
Lossy compression
Advantage:
The advantage of lossy compression is that it’s relatively quick, can
reduce the file size dramatically, and the user can select the
compression level. It is beneficial for compressing data like images,
video, and even audio by taking advantage of the limitation of the
human sense. This is because of the limit of our eyes and ears as
they cannot perceive a difference in the quality of an image and
audio before a certain point.
Disadvantage:
The disadvantage of lossy is that decompression of data
compressed through lossy will not return the same data (in terms
of quality, size, etc.). Still, it will hold similar information (this, in
fact, is useful in some instances, such as streaming or downloading
content on the internet). However, on the flip side, constant
downloading and uploading of a file can compress and
consequently distort it beyond the point of recognition, causing
permanent information loss. Similarly, if a severe level of
compression is used by the user, then the output file might not be
anywhere close to the original input file.
Lossless Compression
Lossless compression, unlike lossy compression, doesn’t remove
any data; instead, it transforms it to reduce its size.Lossless data
compression is used to compress the files without losing an
original file's quality and data. Simply, we can say that in lossless
data compression, file size is reduced, but the quality of data
remains the same.
Disadvantage:
There is a limit to data compression. If data is already compressed,
then compressing it again will result in little to no reduction in its
size. Also, it is less effective against larger file sizes.
1. Transform coding
2. Discrete Cosine Transform
3. Discrete Wavelet Transform
4. Fractal Compression