활성 x64로 바꾸고
모든구성 c/c++ 추가포함 C:\opencv-4.1.0\build\include
링커 추가라이브러리 디렉터리 C:\opencv-4.1.0\build\x64\vc15\lib
디버깅 환경 PATH=C:\opencv-4.1.0\build\x64\vc15\bin;%PATH%
debug구성 opencv_world410d.lib;
release 구성 opencv_world410.lib;
활성 x64로 바꾸고
모든구성 c/c++ 추가포함 C:\opencv-4.1.0\build\include
링커 추가라이브러리 디렉터리 C:\opencv-4.1.0\build\x64\vc15\lib
디버깅 환경 PATH=C:\opencv-4.1.0\build\x64\vc15\bin;%PATH%
debug구성 opencv_world410d.lib;
release 구성 opencv_world410.lib;
| 메모리상에서 jpeg으로 압축,디코딩하기; python opencv jpeg compression and decoding in memory (0) | 2018.06.14 |
|---|---|
| 파이토치 오픈CV 튜토리얼 pytorch opencv tutorial (0) | 2018.06.14 |
http://tanbakuchi.com/posts/comparison-of-openv-interpolation-algorithms/
interpolation 알고리즘 목록은 다음과 같다
결과 이미지는 원문링크에 가면 있고, 정리만 여기에 기입하도록 하겠음
업샘플링
50x50 이미지를 400x400으로 업샘플링
area, nearest 알고리즘은 계단현상이 발생하였고 linear는 부드러운 엣지 그리고 cubic과 Lanczos 는 샤프한 엣지를 만들었다고함
다운샘플링
400x400 이미지를 50x50으로 다운샘플링
area 알고리즘이 앨리어싱 현상이 없다
| #encode to jpeg format | |
| #encode param image quality 0 to 100. default:95 | |
| #if you want to shrink data size, choose low image quality. | |
| encode_param=[int(cv2.IMWRITE_JPEG_QUALITY),90] | |
| result,encimg=cv2.imencode('.jpg',img,encode_param) | |
| if False==result: | |
| print 'could not encode image!' | |
| quit() | |
| #decode from jpeg format | |
| decimg=cv2.imdecode(encimg,1) |
result 에 true false로 압축 결과 저장
encimg에 인코딩된 이미지 저장
| Visual Studio 2017에서 OpenCV 사용하기 (0) | 2018.12.11 |
|---|---|
| 파이토치 오픈CV 튜토리얼 pytorch opencv tutorial (0) | 2018.06.14 |
| Visual Studio 2017에서 OpenCV 사용하기 (0) | 2018.12.11 |
|---|---|
| 메모리상에서 jpeg으로 압축,디코딩하기; python opencv jpeg compression and decoding in memory (0) | 2018.06.14 |