'잡동사니'에 해당되는 글 13326건
- 2023.04.11 줍줍
- 2023.04.10 win11 notepad 별루야!
- 2023.04.10 gstremaer videobox + videomixer
- 2023.04.09 mpox
- 2023.04.08 청소조금
- 2023.04.07 fft phase 연산
- 2023.04.07 fftw input range?
- 2023.04.07 fft 복소수(complex) - 실수, 허수부(real, imaginary)
- 2023.04.06 노트북 시트지 바름
- 2023.04.06 javascript 정수는 정수가 아니다
차라리 wordpad가 나은듯..
바코드 리더로 대문자 + 숫자를 입력 받는데
win11 메모장에서 대소문자 오락가락, 특수문자에 매번 자릿수가 달라진다.
'Microsoft > Windows' 카테고리의 다른 글
mstsc 제한된 계정 (0) | 2023.12.18 |
---|---|
nvidia 채굴 그래픽 카드 hybrid mode (0) | 2023.07.12 |
7세대는 윈도우 11이 안되는 군! (2) | 2023.03.04 |
윈도우 시리얼 날리기 (0) | 2023.02.24 |
WSL2에 USB 장치 연결하기 (0) | 2023.01.09 |
videobox를 이용해서 어느정도는 원하는 위치로 옮길순 있는데 자유자재로 옮기긴 힘든 듯?
gst-launch-1.0 \ videotestsrc pattern=1 ! \ video/x-raw,format=AYUV,framerate=\(fraction\)10/1,width=100,height=100 ! \ videobox border-alpha=0 top=-70 bottom=-70 right=-220 ! \ videomixer name=mix sink_0::alpha=0.7 sink_1::alpha=0.5 ! \ videoconvert ! xvimagesink \ videotestsrc ! \ video/x-raw,format=AYUV,framerate=\(fraction\)5/1,width=320,height=240 ! mix. |
[링크 : https://gstreamer.freedesktop.org/documentation/videomixer/index.html?gi-language=c]
bottom “bottom” gint Pixels to box at bottom (<0 = add a border) Flags : Read / Write Default value : 0 left “left” gint Pixels to box at left (<0 = add a border) Flags : Read / Write Default value : 0 right “right” gint Pixels to box at right (<0 = add a border) Flags : Read / Write Default value : 0 top “top” gint Pixels to box at top (<0 = add a border) Flags : Read / Write Default value : 0 |
[링크 : https://gstreamer.freedesktop.org/documentation/videobox/index.html?gi-language=c]
ximagesink 에다가 sync=false 하니 프레임이 잘 나온다.
videomixer가 더 앞에 있으니 videomixer에 sync=false를 넣어야 할 줄 알았는데 의외네
$ gst-launch-1.0 v4l2src device=/dev/video2 ! jpegdec ! videomixer name=mix ! videoconvert ! ximagesink sync=false v4l2src device=/dev/video0 ! jpegdec ! mix. |
[링크 : https://stackoverflow.com/questions/38392956/gstreamer-videomixer-very-low-framerate]
$ gst-launch-1.0 \ v4l2src device=/dev/video2 ! jpegdec ! \ videobox top=0 bottom=0 left=-960 ! \ videomixer name=mix sink_0::alpha=1 sink_1::alpha=1 ! \ videoconvert ! \ ximagesink window-width=1920 window-height=1080 sync=false \ v4l2src device=/dev/video0 ! jpegdec ! \ videobox top=0 bottom=0 ! mix. |
'프로그램 사용 > gstreamer' 카테고리의 다른 글
nnstreamer (0) | 2023.12.20 |
---|---|
gst-device-monitor-1.0 (0) | 2023.12.06 |
gst-inspector.c (0) | 2023.04.06 |
gstreamer videomixer 반쪽 성공 (0) | 2023.03.27 |
gstreamer videomixer ... 2? (0) | 2023.03.27 |
원숭이 두창
왜 갑자기 엠폭스라고 부르는 걸까?
'개소리 왈왈 > 정치관련 신세한탄' 카테고리의 다른 글
윤대통령 "100년전 일로 무조건 무릎꿇어라 하는건 못받아들여" (0) | 2023.04.24 |
---|---|
살다살다 러시아가 약소국이란 소릴 듣네 (0) | 2023.04.21 |
만우절 (0) | 2023.04.01 |
탄핵으로도 부족한 만행 (0) | 2023.03.30 |
성숙한 국민의식…'친일몰이'에도 윤대통령 지지율 1%p 상승 (0) | 2023.03.24 |
시간이 훅훅 지나가네
언제 자전거 타지 ㅜㅜ 추워어어
'개소리 왈왈 > 육아관련 주저리' 카테고리의 다른 글
스피커 줍줍 (0) | 2023.04.12 |
---|---|
줍줍 (0) | 2023.04.11 |
수의사 처방제 확대시행 (0) | 2023.04.05 |
벚꽃구경 (0) | 2023.04.02 |
심장 사상충약 투약! (0) | 2023.03.17 |
x 축은 real(실수)
y 축은 imagenary(허수)
그래서 arctan(허수/실수) 하면 각도를 radian으로 구할수 있다.
javascript 기준으로는
Math.atan() * 180 / Math.PI 하면 각도로 전환가능
θ = tan- 1 (b/a) |
[링크 : http://sites.music.columbia.edu/cmc/MusicAndComputers/popups/chapter3/xbit_3_3.php]
역시나 언제나 그렇듯 radian 값
[링크 : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atan]
'프로그램 사용 > fft, fftw' 카테고리의 다른 글
fft 라이브러리 목록 (0) | 2023.06.01 |
---|---|
fftw 다차원 분석 (0) | 2023.05.27 |
fftw input range? (0) | 2023.04.07 |
fft 복소수(complex) - 실수, 허수부(real, imaginary) (0) | 2023.04.07 |
fft 0 Hz (2) | 2023.04.05 |
chatGPT는 아래와 같이 대답을 하는데 근거가 없어서 불안하고
The input float range for FFTW depends on the specific implementation and the configuration of the library. However, in general, the input float values should be within the range of -1.0 to 1.0, which represents the normalized range of the input signal. |
stackoverflow는 과거 글이긴 한데.. 미묘..
Surprisingly there is no single agreed definition for the FFT and the IFFT, at least as far as scaling is concerned, but for most implementations (including FFTW) you need to scale by 1/N in the forward direction, and there is no scaling in the reverse direction. Usually (for performance reasons) you will want to lump this scaling factor in with any other corrections, such as your A/D gain, window gain correction factor, etc, so that you just have one combined scale factor to apply to your FFT output bins. Alternatively if you are just generating, say, a power spectrum in dB then you can make the correction a single dB value that you subtract from your power spectrum bins. |
[링크 : https://stackoverflow.com/questions/4855958/normalising-fft-data-fftw]
일단은 실험!
1. 원본 데이터 그대로
+-1V / 1.001Khz
-600,000 ~ +600,000 범위로 들어오는 값을 그대~~~로 FFT로 던지니 결과가 이상하게 나온다.
2. 원본 / 1000
범위를 벗어나진 않아서 그런가 정상적으로 그나마 주파수 분석이 되는 듯
3. 원본 / 100
/ 1000 이랑 비슷하긴 한데 비율 때문에 그런가 중심 주파수 주변에 좀 높게 나온다.
그냥 나누기 만큼의 억제효과가 나오는 듯?
4. 원본 / 838607 (0x7FFFFF 왜 이런 값을 했지.. 홀렸나..)
주파수 분석결과를 확대해보면 /1000 보단 깨끗하게 분석된다.
5. 원본 + 100mV
FFT 값에 2,147,483이 나와서 16진수로 바꾸어 보니 0x20C49B
무슨 의미를 지닌 분석이라고 보기 힘든데 그래도 1000 근처에 좀 비어있는거 보면 어떻게 해석해야 하나 싶다.
6. 원본 / 24bit(0xFFFFFF)
아 몰랑 걍 -1.0 ~ 1.0 사이로 정규화 할래!
'프로그램 사용 > fft, fftw' 카테고리의 다른 글
fftw 다차원 분석 (0) | 2023.05.27 |
---|---|
fft phase 연산 (0) | 2023.04.07 |
fft 복소수(complex) - 실수, 허수부(real, imaginary) (0) | 2023.04.07 |
fft 0 Hz (2) | 2023.04.05 |
partial fft (0) | 2023.04.04 |
내 프로그램에서도 한번 도식화 해볼까?
amplitude만 보는데 real 값과 imaginary 값은 어떻게 보여질지 궁금해서 찾아보는데
그렇게는 잘 안써서 그런지 그림도 찾기 힘들다.
[링크 : https://stackoverflow.com/questions/25624548/fft-real-imaginary-abs-parts-interpretation]
+
부랴부랴 수정해서 확인해보니 실수부, 허수부는 * 100,000 해서 받아와서 표현
일단 네 가지 데이터가 오가면서 출력되는데 이걸 phase 라고 보야하려나?
실수, 허수 둘 다 양수
실수, 허수 둘 다 음수
실수 양수, 허수 음수
실수 음수, 허수 양수
'프로그램 사용 > fft, fftw' 카테고리의 다른 글
fft phase 연산 (0) | 2023.04.07 |
---|---|
fftw input range? (0) | 2023.04.07 |
fft 0 Hz (2) | 2023.04.05 |
partial fft (0) | 2023.04.04 |
fftw plan (0) | 2023.03.31 |
그냥 무광 검정으로 하니 썩 나쁘진 않은데
10분도 안걸려서 급조한거라 끝부분 마감은 영 아쉬움
결론은... 역시 삼성은 삼성 로고가 안티야..
가리니 더 이뻐 보임
'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글
미니 컴퓨터 만들기는 험란하다 (0) | 2023.06.06 |
---|---|
CPU fan은 그냥 DC 팬이 아니다 (0) | 2023.06.06 |
키보드 수리 (0) | 2023.02.20 |
키보드 부분 고장. 윈도우 키가 불편해!? (0) | 2023.02.18 |
중고 노트북 택배거래 성공! (0) | 2023.01.07 |
내부적으로 이렇게 처리할 줄이야..
A number literal like 37 in JavaScript code is a floating-point value, not an integer. There is no separate integer type in common everyday use. (JavaScript also has a BigInt type, but it's not designed to replace Number for everyday uses. 37 is still a number, not a BigInt.) |
[링크 : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number]
'Programming > javascript & HTML' 카테고리의 다른 글
canvas 없는 getcontext (0) | 2023.07.12 |
---|---|
html canvas와 시간 그래프 흘리기 (0) | 2023.07.06 |
websocket binarytype (0) | 2023.04.04 |
자바스크립트 소수점 자르기 (0) | 2023.03.13 |
Math.min.apply() (0) | 2023.02.07 |