728x90
반응형

빌드 설치

# Update your package list
sudo apt update
# Install the Boost development libraries
sudo apt install libboost-all-dev

 

https://www.boost.org/doc/user-guide/getting-started.html

 

Boost

 

www.boost.org

 

 

소스 빌드

 

 

Failed to build B2 build engine
qwer@DESKTOP-K2NBKJ6:~/boost_1_88_0$ g++ --version
Command 'g++' not found, but can be installed with:
sudo apt install g++
qwer@DESKTOP-K2NBKJ6:~/boost_1_88_0$ sudo apt install build-essential python3 libbz2-dev libz-dev libicu-dev
[sudo] password for qwer:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'zlib1g-dev' instead of 'libz-dev'
python3 is already the newest version (3.12.3-0ubuntu2).
python3 set to manually installed.
The following additional packages will be installed:
  bzip2 bzip2-doc cpp cpp-13 cpp-13-x86-64-linux-gnu cpp-x86-64-linux-gnu dpkg-dev fakeroot g++ g++-13
  g++-13-x86-64-linux-gnu g++-x86-64-linux-gnu gcc gcc-13 gcc-13-base gcc-13-x86-64-linux-gnu gcc-x86-64-linux-gnu
  icu-devtools libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libaom3 libasan8 libatomic1
  libc-dev-bin libc-devtools libc6-dev libcc1-0 libcrypt-dev libde265-0 libdpkg-perl libfakeroot
  libfile-fcntllock-perl libgcc-13-dev libgd3 libgomp1 libheif-plugin-aomdec libheif-plugin-aomenc
  libheif-plugin-libde265 libheif1 libhwasan0 libisl23 libitm1 liblsan0 libmpc3 libquadmath0 libstdc++-13-dev libtsan2
  libubsan1 libxpm4 linux-libc-dev lto-disabled-list make manpages-dev rpcsvc-proto
Suggested packages:
  cpp-doc gcc-13-locales cpp-13-doc debian-keyring g++-multilib g++-13-multilib gcc-13-doc gcc-multilib autoconf
  automake libtool flex bison gdb gcc-doc gcc-13-multilib gdb-x86-64-linux-gnu glibc-doc bzr libgd-tools
  libheif-plugin-x265 libheif-plugin-ffmpegdec libheif-plugin-jpegdec libheif-plugin-jpegenc libheif-plugin-j2kdec
  libheif-plugin-j2kenc libheif-plugin-rav1e libheif-plugin-svtenc icu-doc libstdc++-13-doc make-doc
The following NEW packages will be installed:
  build-essential bzip2 bzip2-doc cpp cpp-13 cpp-13-x86-64-linux-gnu cpp-x86-64-linux-gnu dpkg-dev fakeroot g++ g++-13
  g++-13-x86-64-linux-gnu g++-x86-64-linux-gnu gcc gcc-13 gcc-13-base gcc-13-x86-64-linux-gnu gcc-x86-64-linux-gnu
  icu-devtools libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libaom3 libasan8 libatomic1
  libbz2-dev libc-dev-bin libc-devtools libc6-dev libcc1-0 libcrypt-dev libde265-0 libdpkg-perl libfakeroot
  libfile-fcntllock-perl libgcc-13-dev libgd3 libgomp1 libheif-plugin-aomdec libheif-plugin-aomenc
  libheif-plugin-libde265 libheif1 libhwasan0 libicu-dev libisl23 libitm1 liblsan0 libmpc3 libquadmath0
  libstdc++-13-dev libtsan2 libubsan1 libxpm4 linux-libc-dev lto-disabled-list make manpages-dev rpcsvc-proto
  zlib1g-dev
0 upgraded, 59 newly installed, 0 to remove and 0 not upgraded.
Need to get 84.9 MB of archives.
After this operation, 294 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Ign:1 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libc-dev-bin amd64 2.39-0ubuntu8.3
Ign:2 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 linux-libc-dev amd64 6.8.0-51.52
Get:3 http://archive.ubuntu.com/ubuntu noble/main amd64 libcrypt-dev amd64 1:4.4.36-4build1 [112 kB]
Err:1 http://security.ubuntu.com/ubuntu noble-updates/main amd64 libc-dev-bin amd64 2.39-0ubuntu8.3
  404  Not Found [IP: 2620:2d:4002:1::101 80]
Get:4 http://archive.ubuntu.com/ubuntu noble/main amd64 rpcsvc-proto amd64 1.4.2-0ubuntu7 [67.4 kB]
Err:2 http://security.ubuntu.com/ubuntu noble-updates/main amd64 linux-libc-dev amd64 6.8.0-51.52
  404  Not Found [IP: 2620:2d:4002:1::101 80]
Ign:5 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libc6-dev amd64 2.39-0ubuntu8.3
Get:6 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 gcc-13-base amd64 13.3.0-6ubuntu2~24.04 [51.5 kB]
Get:7 http://archive.ubuntu.com/ubuntu noble/main amd64 libisl23 amd64 0.26-3build1 [680 kB]
Err:5 http://security.ubuntu.com/ubuntu noble-updates/main amd64 libc6-dev amd64 2.39-0ubuntu8.3
  404  Not Found [IP: 2620:2d:4002:1::101 80]
Get:8 http://archive.ubuntu.com/ubuntu noble/main amd64 libmpc3 amd64 1.3.1-1build1 [54.5 kB]
Get:9 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 cpp-13-x86-64-linux-gnu amd64 13.3.0-6ubuntu2~24.04 [10.7 MB]
Get:10 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 cpp-13 amd64 13.3.0-6ubuntu2~24.04 [1038 B]
Get:11 http://archive.ubuntu.com/ubuntu noble/main amd64 cpp-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [5326 B]
Get:12 http://archive.ubuntu.com/ubuntu noble/main amd64 cpp amd64 4:13.2.0-7ubuntu1 [22.4 kB]
Get:13 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libcc1-0 amd64 14.2.0-4ubuntu2~24.04 [48.0 kB]
Get:14 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libgomp1 amd64 14.2.0-4ubuntu2~24.04 [148 kB]
Get:15 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libitm1 amd64 14.2.0-4ubuntu2~24.04 [29.7 kB]
Get:16 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libatomic1 amd64 14.2.0-4ubuntu2~24.04 [10.5 kB]
Get:17 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libasan8 amd64 14.2.0-4ubuntu2~24.04 [3031 kB]
Get:18 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 liblsan0 amd64 14.2.0-4ubuntu2~24.04 [1322 kB]
Get:19 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libtsan2 amd64 14.2.0-4ubuntu2~24.04 [2772 kB]
Get:20 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libubsan1 amd64 14.2.0-4ubuntu2~24.04 [1184 kB]
Get:21 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libhwasan0 amd64 14.2.0-4ubuntu2~24.04 [1641 kB]
Get:22 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libquadmath0 amd64 14.2.0-4ubuntu2~24.04 [153 kB]
Get:23 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libgcc-13-dev amd64 13.3.0-6ubuntu2~24.04 [2681 kB]
Get:24 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 gcc-13-x86-64-linux-gnu amd64 13.3.0-6ubuntu2~24.04 [21.1 MB]
Get:25 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 gcc-13 amd64 13.3.0-6ubuntu2~24.04 [494 kB]
Get:26 http://archive.ubuntu.com/ubuntu noble/main amd64 gcc-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [1212 B]
Get:27 http://archive.ubuntu.com/ubuntu noble/main amd64 gcc amd64 4:13.2.0-7ubuntu1 [5018 B]
Get:28 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libstdc++-13-dev amd64 13.3.0-6ubuntu2~24.04 [2420 kB]
Get:29 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 g++-13-x86-64-linux-gnu amd64 13.3.0-6ubuntu2~24.04 [12.2 MB]
Get:30 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 g++-13 amd64 13.3.0-6ubuntu2~24.04 [16.1 kB]
Get:31 http://archive.ubuntu.com/ubuntu noble/main amd64 g++-x86-64-linux-gnu amd64 4:13.2.0-7ubuntu1 [964 B]
Get:32 http://archive.ubuntu.com/ubuntu noble/main amd64 g++ amd64 4:13.2.0-7ubuntu1 [1100 B]
Get:33 http://archive.ubuntu.com/ubuntu noble/main amd64 make amd64 4.3-4.1build2 [180 kB]
Get:34 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libdpkg-perl all 1.22.6ubuntu6.1 [269 kB]
Get:35 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 bzip2 amd64 1.0.8-5.1build0.1 [34.5 kB]
Get:36 http://archive.ubuntu.com/ubuntu noble/main amd64 lto-disabled-list all 47 [12.4 kB]
Get:37 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 dpkg-dev all 1.22.6ubuntu6.1 [1074 kB]
Get:38 http://archive.ubuntu.com/ubuntu noble/main amd64 build-essential amd64 12.10ubuntu1 [4928 B]
Get:39 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 bzip2-doc all 1.0.8-5.1build0.1 [499 kB]
Get:40 http://archive.ubuntu.com/ubuntu noble/main amd64 libfakeroot amd64 1.33-1 [32.4 kB]
Get:41 http://archive.ubuntu.com/ubuntu noble/main amd64 fakeroot amd64 1.33-1 [67.2 kB]
Get:42 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 icu-devtools amd64 74.2-1ubuntu3.1 [212 kB]
Get:43 http://archive.ubuntu.com/ubuntu noble/main amd64 libalgorithm-diff-perl all 1.201-1 [41.8 kB]
Get:44 http://archive.ubuntu.com/ubuntu noble/main amd64 libalgorithm-diff-xs-perl amd64 0.04-8build3 [11.2 kB]
Get:45 http://archive.ubuntu.com/ubuntu noble/main amd64 libalgorithm-merge-perl all 0.08-5 [11.4 kB]
Get:46 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libaom3 amd64 3.8.2-2ubuntu0.1 [1941 kB]
Get:47 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libbz2-dev amd64 1.0.8-5.1build0.1 [33.6 kB]
Get:48 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libheif-plugin-aomdec amd64 1.17.6-1ubuntu4.1 [10.4 kB]
Get:49 http://archive.ubuntu.com/ubuntu noble/main amd64 libde265-0 amd64 1.0.15-1build3 [166 kB]
Get:50 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libheif-plugin-libde265 amd64 1.17.6-1ubuntu4.1 [8176 B]
Get:51 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libheif1 amd64 1.17.6-1ubuntu4.1 [275 kB]
Get:52 http://archive.ubuntu.com/ubuntu noble/main amd64 libxpm4 amd64 1:3.5.17-1build2 [36.5 kB]
Get:53 http://archive.ubuntu.com/ubuntu noble/main amd64 libgd3 amd64 2.3.3-9ubuntu5 [128 kB]
Ign:54 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libc-devtools amd64 2.39-0ubuntu8.3
Get:55 http://archive.ubuntu.com/ubuntu noble/main amd64 libfile-fcntllock-perl amd64 0.22-4ubuntu5 [30.7 kB]
Get:56 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libheif-plugin-aomenc amd64 1.17.6-1ubuntu4.1 [14.7 kB]
Get:57 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 libicu-dev amd64 74.2-1ubuntu3.1 [11.9 MB]
Err:54 http://security.ubuntu.com/ubuntu noble-updates/main amd64 libc-devtools amd64 2.39-0ubuntu8.3
  404  Not Found [IP: 2620:2d:4002:1::101 80]
Get:58 http://archive.ubuntu.com/ubuntu noble/main amd64 manpages-dev all 6.7-2 [2013 kB]
Get:59 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 zlib1g-dev amd64 1:1.3.dfsg-3.1ubuntu2.1 [894 kB]
Fetched 80.8 MB in 9s (9495 kB/s)
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc-dev-bin_2.39-0ubuntu8.3_amd64.deb 404  Not Found [IP: 2620:2d:4002:1::101 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_6.8.0-51.52_amd64.deb 404  Not Found [IP: 2620:2d:4002:1::101 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc6-dev_2.39-0ubuntu8.3_amd64.deb 404  Not Found [IP: 2620:2d:4002:1::101 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/glibc/libc-devtools_2.39-0ubuntu8.3_amd64.deb 404  Not Found [IP: 2620:2d:4002:1::101 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
qwer@DESKTOP-K2NBKJ6:~/boost_1_88_0$

 

 ./bootstrap.sh --with-python=python3

 

--with-python=python3

 

./b2

./b2 headers

./b2 install --prefix=/usr/local

https://www.boost.org/doc/user-guide/getting-started.html

 

Boost

 

www.boost.org

 

 

반응형
728x90
반응형

 

 

dct coefficient python

DCT 계수 디코더/이산 코사인 변환 시각적 설명.ipynb

 

 

 

https://github.com/btlorch/dct-coefficient-decoder/blob/master/discrete_cosine_transform_visual_explanation.ipynb

 

dct-coefficient-decoder/discrete_cosine_transform_visual_explanation.ipynb at master · btlorch/dct-coefficient-decoder

Python wrapper for decoding DCT coefficients from JPEG-compressed images - btlorch/dct-coefficient-decoder

github.com

 

 

 

 

https://github.com/btlorch/jpeglib/blob/master/examples/improve_dct.ipynb

 

jpeglib/examples/improve_dct.ipynb at master · btlorch/jpeglib

Python envelope for the popular C library libjpeg for handling JPEG files. - btlorch/jpeglib

github.com

 

 

반응형
728x90
반응형

N=4는 4X4 DCT의 커널인 행렬 C

 

 

 

[[ 0.5 0.5 0.5 0.5 ]

[ 0.6533 0.2706 -0.2706 -0.6533]

[ 0.5 -0.5 -0.5 0.5 ]

[ 0.2706 -0.6533 0.6533 -0.2706]]

 

 

 

https://wikidocs.net/71447

 

02) Discrete Cosine Transform

[TOC] ## Overview 함수 이름 | 기능 -----|----- dct4 | 4X4 block DCT dct8 | 8X8 block DCT dct16 | 16X1…

wikidocs.net

 

 

반응형
728x90
반응형

https://www.reddit.com/r/programming/comments/36w26n/great_explanation_of_the_discrete_cosine/

 

From the programming community on Reddit: Great explanation of the Discrete Cosine Transform and it's use in JPEG compression

Explore this post and more from the programming community

www.reddit.com

 

 

https://github.com/tesfagabir/Digital-Image-Processing/blob/master/03-Implementing-Discrete-Cosine-Transform-Using-Python.ipynb

 

Digital-Image-Processing/03-Implementing-Discrete-Cosine-Transform-Using-Python.ipynb at master · tesfagabir/Digital-Image-Proc

The repository contains the implementation of different image processing concepts in python based on my course work. - tesfagabir/Digital-Image-Processing

github.com

 

 

DCT-Q-IDCT 필터

 

필터를 다운 받고 설치 한 후 사용

https://www.cithraidt.de/filter/index.html

 

VirtualDub Filter, Copyright (C) 2005 Andreas Dittrich

DCT-Q-IDCT (click on the link to directly jump the filter) DCT-Q-IDCT Discrete Cosinus Transform (DCT) based coding and decoding with display of statistical information Description: This filter performs the folowing steps: color subsampling, blockwise forw

www.cithraidt.de

 

VirtualDub 최신버전을 사용하면 잘 동작한다.

 

https://sourceforge.net/projects/virtualdub/

 

VirtualDub

Download VirtualDub for free. A video capture utility for 32-bit and 64-bit Windows platforms. Do you need quick capture and encoding capabilities for video on your desktop? VirtualDub is a free, Open Source solution specifically designed for that purpose.

sourceforge.net

 

 

반응형
728x90
반응형

 

 

 

numpy.longdouble'

 

 

 

AI 개요
+2
 
numpy.longdouble는 NumPy에서 제공하는 데이터 타입 중 하나로, 확장 정밀도 부동 소수점수를 나타냅니다. 이는 플랫폼에 따라 다르지만, 일반적으로 80비트 또는 128비트 부동 소수점수로 표현됩니다. 정밀도는 34자리 정도의 소수점 자릿수를 가지며, longdouble은 float나 double보다 더 정확한 계산이 필요할 때 사용됩니다. 
 
세부 설명:
  • 확장 정밀도:
    numpy.longdouble은 일반적인 float나 double보다 더 많은 비트를 사용하여 소수점 표현의 정밀도를 높입니다. 
     
  • 플랫폼 종속:
    longdouble의 정확한 구현은 사용하는 플랫폼(하드웨어 및 운영체제)에 따라 달라질 수 있습니다. 
     
  • 80비트 또는 128비트:
    일반적으로 longdouble은 80비트 또는 128비트 부동 소수점수로 표현됩니다. 
     
  • 높은 정밀도:
    128비트 부동 소수점수를 사용한다고 가정하면, longdouble은 대략 34자리 정도의 소수점 자릿수를 지원합니다. 
     
  • 주의 사항:
    longdouble은 특정 플랫폼에서 지원되지 않거나 버그가 있을 수 있다는 점에 유의해야 합니다. 
     
사용 예시:
 
Python
 
import numpy as np

# longdouble 데이터 타입으로 배열 생성
a = np.array([1.0, 2.0, 3.0], dtype=np.longdouble)
print(a.dtype)  # 출력: dtype('float128') 또는 dtype('float80') (플랫폼에 따라 다름)

# longdouble 타입의 변수 사용
x = np.longdouble(1.234567890123456789)
print(x)
반응형
728x90
반응형

DCT-2D-filter

 

 

 

https://github.com/mieskolainen/DCT-2D-filter

 

GitHub - mieskolainen/DCT-2D-filter: Sliding 2D-DCT matrix (image) filter (TUT course project)

Sliding 2D-DCT matrix (image) filter (TUT course project) - mieskolainen/DCT-2D-filter

github.com

 

 

반응형
728x90
반응형

 

sudo apt update & sudo apt upgrade

하니 

apt list --upgradable 하란다.

하지만 패스

반응형
728x90
반응형

JPEGsnoop: JPEG decoder and detailed analysis

 

1.8은 컴파일이 잘 안되서 

 

1.71 에다가 1.8

Registry.cpp , Registry.h 를 복사했다.

 

https://github.com/ImpulseAdventure/JPEGsnoop/tree/release-1.7.1?tab=readme-ov-file

 

GitHub - ImpulseAdventure/JPEGsnoop: JPEGsnoop: JPEG decoder and detailed analysis

JPEGsnoop: JPEG decoder and detailed analysis. Contribute to ImpulseAdventure/JPEGsnoop development by creating an account on GitHub.

github.com

 

반응형

+ Recent posts