600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > 图像有损压缩与无损压缩_有损压缩与无损压缩之间的区别

图像有损压缩与无损压缩_有损压缩与无损压缩之间的区别

时间:2019-04-27 03:39:04

相关推荐

图像有损压缩与无损压缩_有损压缩与无损压缩之间的区别

图像有损压缩与无损压缩

Lossy and lossless compression are two kinds of data compression techniques. Here in this article, you will get to learn about what is lossy and lossless compression, their differences, and uses.

有损和无损压缩是两种数据压缩技术。 在本文的此处,您将了解什么是有损和无损压缩,它们的区别和用途。

So, let’s start with the basics.

因此,让我们从基础开始。

什么是数据压缩? (What is Data Compression?)

Data compression is the process of diminishing the storage size of any data or file so that it consumes less space on the disk. It is the technique of modifying, restructuring, encoding and converting the schema or instance of any data to reduce its size.

数据压缩是减小任何数据或文件的存储大小,以使其在磁盘上占用较少空间的过程。 它是一种修改,重组,编码和转换任何数据的模式或实例以减小其大小的技术。

In simple words, it is converting the file in such a way that its size is reduced to a maximum extent. Data compressions is also known as bit-rate reduction or source coding.

简而言之,它将以最大程度减小文件大小的方式转换文件。 数据压缩也称为比特率降低或源编码。

Check the diagram below:

检查下图:

An example of an image that is converted or compressed to reduce its size without losing the ability to reconstruct the image.

转换或压缩以减小其尺寸而又不损失重建图像能力的图像的示例。

Now, the question here is why there is a need for data compression?

现在,这里的问题是为什么需要数据压缩?

There are two primary reasons for the same.

造成这种情况的主要原因有两个。

Storage –it helps in reducing the size of data that is required to store it on the disk

存储–它有助于减少将数据存储在磁盘上所需的数据量

Time –saves time in data transmission as the size is reduced to an extent

时间–尺寸减小到一定程度,节省了数据传输时间

You are getting the point!

您明白了!

Now coming back to the main topic, there are mainly two types of data compression techniques. Let’s discuss them.

现在回到主要主题,主要有两种类型的数据压缩技术。 让我们讨论一下。

数据压缩技术 (Data Compression Techniques)

有损压缩 (Lossy Compression)

Lossy compression is a technique that involves the elimination of a specific amount of data. It helps in reducing the file size to a great extent without any noticeable thing. Also, once the file is compressed, it cannot be restored back to its original form as the data from the file is significantly reduced. This technique is much more useful when the quality of the file is not essential. Additionally, it helps to save much space on the disk to store the data.

有损压缩是一种涉及消除特定数量数据的技术。 它有助于在没有任何明显注意的情况下大大减小文件大小。 同样,一旦压缩了文件,由于来自文件的数据将大大减少,因此无法将其恢复为原始格式。 当文件的质量不是很重要时,此技术会更加有用。 此外,它有助于节省磁盘上的大量空间来存储数据。

Lossy compression is not useful when the quality of the file is essential. Besides, if there’s any further analysis to be processed on the record, this method is not ideal. This method is generally used for audio and video compression, where there is a significant amount of data loss, and even users cannot recognize it.

当文件的质量至关重要时,有损压缩是没有用的。 此外,如果记录上有任何进一步的分析要处理,这种方法也不理想。 此方法通常用于音频和视频压缩,这会导致大量数据丢失,甚至用户也无法识别它。

Example of lossy compression: JPEG image

有损压缩的示例:JPEG图像

Image Source

图片来源

“Compressed image (left) shows blocking artifacts compared to the original image (right) as a result of the JPEG compression scheme used.”

“由于使用了JPEG压缩方案,与原始图像(右)相比,压缩图像(左)显示出块状伪影。”

无损压缩 (Lossless Compression)

Lossless compression is a technique that involves only a certain amount of elimination of data. This technique also helps in reducing the file size, but not to the greater extent as that of lossy compression. Instead, in this method, if the file is compressed, it can be restored back to its original form. Further, the quality of the data is not compromised; hence, the reduction in size is not much.

无损压缩是一种仅涉及消除一定量数据的技术。 此技术还有助于减小文件大小,但不会像有损压缩那样在很大程度上。 相反,在这种方法中,如果文件被压缩,则可以将其还原回其原始形式。 此外,数据的质量不会受到影响; 因此,尺寸减小不多。

Lossless compression is not useful when you want reduced size for extra storage. Also, if there is any further analysis to be performed on the file, lossless compression is not beneficial. It is useful for maintaing the originality of files by eliminating only unwanted data. This technique is commonly used for text files, sensitive documents, and confidential information.

当您希望减小尺寸以增加存储空间时,无损压缩将无用。 此外,如果要对文件执行任何进一步的分析,则无损压缩将无益。 通过仅消除不需要的数据,对于保持文件的原始性很有用。 此技术通常用于文本文件,敏感文档和机密信息。

Example of lossless compression: PNG image

无损压缩示例:PNG图像

Image Source

图片来源

“The original image (left) is identical to the compressed image (right). It is represented by the identical graphs at the bottom that show the grey values for the pixels in each column is the same between the two images.”

“原始图像(左)与压缩图像(右)相同。它由底部的相同图形表示,该图形显示两列图像中每列像素的灰度值相同。”

有损压缩与无损压缩之间的区别 (Difference between Lossy and Lossless Compression)

使用哪个? (Which One to Use?)

Although both are the types of data compression, each can be useful under different situations. Like, lossy compression helps in reducing the file size, which means it is helpful to those who have vast amounts of data stored on the database. So, this technique is useful in storing the data with a much-diminished size. Also, for webpages files of such lower size is beneficial for faster loading.

尽管这两种都是数据压缩的类型,但是每种压缩在不同情况下都是有用的。 像,有损压缩有助于减小文件大小,这对那些在数据库上存储大量数据的用户有帮助。 因此,此技术在存储大小减小的数据时很有用。 同样,对于网页而言,这种较小的文件有利于更快地加载。

Further, this process doesn’t allow any after analysis of the data once the compression is completed. Also, the file cannot be restructured in its original form as it involves the loss of data.

此外,压缩完成后,此过程将不允许对数据进行任何后续分析。 同样,该文件不能以其原始形式进行重组,因为它涉及数据丢失。

Unlike lossy compression, lossless compression doesn’t involve any loss of data. Neither the quality of data is compromised, nor the size of data is excessively reduced. It keeps the original format so it can be restored, and further operation can be performed. This method is helpful for those who need to access the data back again without compromising its quality.

与有损压缩不同,无损压缩不涉及任何数据丢失。 既不会损害数据质量,也不会过度减少数据大小。 它保留了原始格式,因此可以还原,并且可以执行进一步的操作。 此方法对需要再次访问数据而不影响其质量的用户很有用。

最后的话 (Final Words)

Both lossy compression and lossless compression helps in the compression of data in their unique way. While lossy compression is useful to store data by compromising the data, lossless compression doesn’t. Lossless compression technique is beneficial for maintaing the originality of data, and lossy compression, on the other hand, doesn’t. Both the methods are helpful in database management, to identify and compress files accordingly.

有损压缩和无损压缩都以其独特的方式帮助压缩数据。 尽管有损压缩通过破坏数据来存储数据很有用,但无损压缩却没有。 无损压缩技术有利于保持数据的原始性,而无损压缩则不能。 两种方法都有助于数据库管理,从而相应地识别和压缩文件。

If there’s any other query regarding data compression or both the techniques of data compression, then let us know in the comment box below.

如果还有关于数据压缩或这两种数据压缩技术的任何其他查询,请在下面的注释框中告知我们。

翻译自: //12/lossy-and-lossless-compression.html

图像有损压缩与无损压缩

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。