차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판이전 판다음 판 | 이전 판 | ||
tech:jpeg [2016/07/12 09:26] – 바깥 편집 127.0.0.1 | tech:jpeg [2021/01/21 01:54] (현재) – 1.238.85.38 | ||
---|---|---|---|
줄 2: | 줄 2: | ||
======Jpeg====== | ======Jpeg====== | ||
- | + | =====압축방법 세부 선택===== | |
- | DCT method: | + | ====DCT method==== |
You'd have to be a mathemetician or something to fully understand it, but essentially it's the compression formula. It's self- explained in the export dialog (not sure about the regular save dialog). Fast is fast but results in a larger file (not much larger though). Slow is in the middle, and float gets the best compression but is the slowest. | You'd have to be a mathemetician or something to fully understand it, but essentially it's the compression formula. It's self- explained in the export dialog (not sure about the regular save dialog). Fast is fast but results in a larger file (not much larger though). Slow is in the middle, and float gets the best compression but is the slowest. | ||
- | Smoothing factor: | + | ====Smoothing factor==== |
Just what it says, it smooths out the image. Zoom to 100% on the preview on the export dialog & try changing it between 1 & 10, you'll see the diff if you look closely. This can marginally improve the visual quality of the image, but it's main purpose is to reduce filesize. | Just what it says, it smooths out the image. Zoom to 100% on the preview on the export dialog & try changing it between 1 & 10, you'll see the diff if you look closely. This can marginally improve the visual quality of the image, but it's main purpose is to reduce filesize. | ||
- | Progressive: | + | ====Progressive==== |
A normal (non-progressive) jpg will load line by line, at full quality, from the top down. A progressive one will load the whole image at a low quality, then gradually increase the quality as the image loads. This aspect of it is purely for use in photos you want on the web. However, there is a secondary benefit to this: A progressive jpg will have a noticably smaller filesize than a regular one (at least on most images). This is in direct contrast to the similar " | A normal (non-progressive) jpg will load line by line, at full quality, from the top down. A progressive one will load the whole image at a low quality, then gradually increase the quality as the image loads. This aspect of it is purely for use in photos you want on the web. However, there is a secondary benefit to this: A progressive jpg will have a noticably smaller filesize than a regular one (at least on most images). This is in direct contrast to the similar " | ||
- | Subsampling: | + | ====Subsampling==== |
Have you ever noticed how a jpg image will usually have washed out colors (especially reds)? That's due to subsampling. The subsampling setting will greatly impact both the size & quality of your image. " | Have you ever noticed how a jpg image will usually have washed out colors (especially reds)? That's due to subsampling. The subsampling setting will greatly impact both the size & quality of your image. " | ||
(It's a myth that jpgs have to look like crap due to being jpgs, it's just that the vast majority of jpgs one encounters were made using the crappiest subsampling setting.) | (It's a myth that jpgs have to look like crap due to being jpgs, it's just that the vast majority of jpgs one encounters were made using the crappiest subsampling setting.) | ||
- | 허프만 부호화 방식 | + | ====허프만 부호화 방식 |
+ | JPEG에서 사용하는 엔트로피 코딩은 Huffman coding과 Arithmetic coding의 두 가지이다. | ||
디지털 전송에서 평균 부호의 길이를 가장 짧게 할 수 있는 가변 길이 부호(variable length code)의 하나. 주어진 신호의 발생 확률 분포에 대하여 최소의 평균 부호 길이를 실현하는 부호이다. | 디지털 전송에서 평균 부호의 길이를 가장 짧게 할 수 있는 가변 길이 부호(variable length code)의 하나. 주어진 신호의 발생 확률 분포에 대하여 최소의 평균 부호 길이를 실현하는 부호이다. | ||
줄 26: | 줄 26: | ||
허프만 부호를 구성하는 방식. 허프만 부호를 구성할 때의 순서는 다음과 같다. | 허프만 부호를 구성하는 방식. 허프만 부호를 구성할 때의 순서는 다음과 같다. | ||
- | ㉠발생 확률이 가장 낮은 2개의 기호를 선정한다. | + | - 발생 확률이 가장 낮은 2개의 기호를 선정한다. |
- | ㉡㉠에서 선정한 2개의 기호를 합해서 하나의 새로운 기호로 하고, 발생 확률은 그 둘의 합으로 한다(전체 기호 수가 하나 감소된다). | + | |
- | ㉢기호 수가 1이 될 때까지 ㉠과 ㉡의 조작을 반복한다. | + | |
- | ㉣하나가 된 기호로부터, | + | |
- | ㉤기호를 감소해 나간 조작을 거슬러 올라가서 0 또는 1을 이때까지 할당되어 있는 부호의 뒤에 놓아, 그 기호의 부호어로 한다. | + | |
- | ㉥기호 수가 원래의 수가 될 때까지 ㉤의 조작을 반복한다. | + | |
예로서, 아래의 표와 같이 발생 확률에 제시되어 있는 차분 펄스 부호 변조(DPCM)의 예측 오차 신호에 대한 허프만 부호를 위와 같은 순서로 구성하면, | 예로서, 아래의 표와 같이 발생 확률에 제시되어 있는 차분 펄스 부호 변조(DPCM)의 예측 오차 신호에 대한 허프만 부호를 위와 같은 순서로 구성하면, | ||