영상처리
[영상처리] 영상 디스플레이의 기초
on_doing
2020. 9. 20. 13:23
728x90
영상에서 화질을 결정하는 요소는 두가지가 있다
- 공간 해상도 (spatial resolution) : sampling
- 양자화(quantization) : 밝기를 몇단계로 표현할 것 인가?
<case 1>
이미지 영상을 그냥 바로 display 하면 이러한 문제가 발생한다
*이 이미지는 원래 grayscale 영상임
왜 이런 현상이 나타날까?
1. 영상이 늘어지는 이유 : 디스플레이의 크기과 영상 크기와 안맞음
2. 컬러 혼합이 이상한 이유 : default colormap인 jet로 디스플레이했기 때문
1. 영상 늘어지는거 없애기 : truesize
c=imread('cameraman.tif');
image(c)
truesize
* truesize([256,100]) --> 값을 입력해서 디스플레이시의 크기 변경가능
2. color map 올바르게 설정하기 : colormap(gray(256))
c=imread('cameraman.tif');
image(c); colormap(gray(256));
truesize
* 영상이 indexed 영상인 경우 :colormap(cmap);
728x90