instruction
stringlengths
31
27k
Consider the LCCDE : \begin{equation} \sum_{k=0}^{N}\alpha_{k}\frac{d^{k}f(t)}{dt^{k}}=\sum_{m=0}^{M}\beta_{m}\frac{d^{k}g(t)}{dt^{k}} \end{equation} Taking the Fourier transform on both sides, we get : \begin{equation} \sum_{k=0}^{N}\alpha_{k}(2j\pi\lambda)^{k}\widehat{f}(\lambda)=\sum_{m=0}^{M}\beta_{m}(2j\pi\lambda)...
I never figured out a clean way to sync to a simple preamble in GNU Radio 3.7/3.8, so I built my own block to do so. It was a variation on the Correlate Access Code - Tag Stream block that simply cut out the code relating to the header length fields and supplied a property for the user to hardcode the payload length in...
I am doing some research on UWB radars which transmit a pulse given by: $$ g(t) = p(t) cos(2\pi f_{c}t) = A e^{(-\frac{t^{2}}{2\tau ^{2}})} cos(2\pi f_{c}t) $$ In some other papers, the transmitted pulse is also described as a higher order derivative of the Gaussian term $p(t)$, such that: $$ g(t) = \frac{d^{n}}{dt^{n}...
I'm trying to understand the contents of this web-page which suggest that multiplying two Gaussian functions together produce a new Gaussian function with a new mean and variance. Say I have the two following Gaussian functions: The web-page state that the new mean and variance to be: I start by multiplying the two f...
Assume I have that : $$ X(j\omega)=\begin{cases}e^{-2\omega}&\text{if $|\omega|<2\pi$}\\0&\text{if otherwise}\end{cases} $$ Say, I want to make this change substitution $X(j(\omega-\Omega))$. Would this imply : $$ X(j(\omega-\Omega))=\begin{cases}e^{-2(\omega-j\Omega)}&\text{if $-j(2\pi+\omega)<\Omega<-j(\omega-2\pi)$}...
For the second order Lynn's low pass filter, the general form of the transfer function is: $$ H(z)=\frac{(1−z^{-m})^2}{ (1−z^{-1})^2 } $$ where $m$ is a positive integer. The gain for this is $m^2$, time delay is $m-1$ samples and the nominal frequency corresponding to the location of the lowest frequency zero is $f_l ...
In RBJ's Audio EQ Cookbook, the analog prototype for a low shelf filter is given as such: $$H(s)=A\cdot\frac{s^2+\left(\frac{\sqrt{A}}{Q}\right)\cdot s + A}{A\cdot s^2 + \left(\frac{\sqrt{A}}{Q}\right)\cdot s + 1}$$ Where does this prototype come from? From what I understand, the lowpass and highpass filters are standa...
Let $x_N$ be the function given by $$x_N(t)=A\frac{\sin(M\pi(t-N))}{\pi(t-N)}$$ The Fourier Transform of $x_N$ is $$\begin{align} X_N(j\omega)&=\mathscr{F}\{x_N\}(j\omega)\\\\ &=\int_{-\infty}^\infty x_N(t)e^{-j\omega t}\,dt\\\\ &=Ae^{-jN\omega }\int_{-\infty}^\infty \frac{\sin(M\pi t)}{\pi t}e^{-j\omega t}\,dt\tag1 \e...
I have to generate a complex sine wave with a sampling frequency of 1.92MHz and subcarrier spacing of 3.75kHz. The number of FFT points is 512. The narrowband frequency is 180kHz. I also have to generate a preamble. The preamble looks like this: pattern = (1:48); % In this way you have all the 48 sub-carriers; q = diag...
I am currently trying to implement in python an algorithm to identify and filter out one specific periodic EEG artifact -- the grad fMRI artifact -- as described in this paper, and I am incurring in what I believe to be strong edge artifacts with little to no clue on how to take care of them. As far as my understanding...
I have a blackbox system in which I can input a function and obtain the output signal (in MATLAB). I'm attempting to reconstruct a Bode diagram and have had success with the Magnitude plot, however, I'm having a lot of difficulty with the phase plot. What I've tried to do is collect input and output data for the input ...
I'm writing a biquad filter program in C++, using the RBJ Cookbook as the source for the formulas. https://www.w3.org/TR/audio-eq-cookbook/ The lowpass filter that I've made seems to half work. The frequencies above the cutoff are being attenuated, however, it is causing aliasing similar to what happens with frequencie...
I have implemented a Gardner timing error detector with an interpolator and timing recovery in software. I noticed that the error term of the Gardner TED depends on the signal amplitude, which causes problems with the large variations of signal strength my receiver is expected to see. With bursts (no timing sequence, o...
I tried to get power spectrum of ofdm passband signal. Below is the whole matlab code for that with BPSK+ofdm. and I got the power spectrum as below. I wonder that is that right form or not? Nfft=64; % number of sub carriers Ncp=Nfft/4; % number of cyclic prefix Nuc=52; % number of used carriers d=2*(randn(1,Nuc)>0....
Is it possible to implement an RNN layer with no nonlinearity in Pytorch like in Keras where one can set the activation to linear? By removing the nonlinearlity, I want to implement a first-order infinite-impulse-response (IIR) filter with a differentiable parameter and integrate it into my model for end-to-end learnin...
Hello I have a FTIR (fourier transform infrared) absorbance spectrum of a sample, Integrating the single lines is correlated to the quantity of substance present in the sample. The spectrum part I'm interested in is something like this: And I want to calculate the integral under a peak, in respect of the baseline, or ...
Objective : Compute $y(t)$ from $Y(j\omega)=H(j\omega)X(j\omega)$ where : $$ x(t)=\left(\frac{\sin(2t)}{\pi t}\right)^{2} $$ and $$ H(j\omega)=\begin{cases}e^{-j\omega}&\text{if $|\omega|<4$}\\0&\text{if otherwise}\end{cases} $$ what I did is find FT of $\left(\frac{\sin(2t)}{\pi t}\right)\left(\frac{\sin(2t)}{\pi t}\r...
I am nearly at the end of finishing a problem in my textbook but I couldn't understand something in the answer; I did everything to the point I found the overall response of the system in terms of $h_{1}[n]$ which is $$h[n]=h_{1}[n]+2h_{1}[n-1]+h_{1}[n-2]$$ Now while comparing each $n$ value with the given graph for o...
I'm quite new to DSP and I'm trying to implement high pass biquad cascade in transposed direct form II. Currently my implementation has very poor accuracy at cutoff frequencies that are less than 5kHz or rather frequencies that are less than 5kHz are still present but diminished in output signal. In the DSP textbook I ...
How can I find a rough ( as accurate as possible) Amplitude of each frequency when there is spectral leakage. Currently, I am dealing with a system that contains special leakage which seems unavoidable as I am measuring a real signal with any possible frequency. currently, I can identify the component frequencies to a ...
I know that common rates are integer values like 2 or 3, but can multi-rate operations of decimation and interpolation can be used to implement a rate change by a factor of an irrational number? Common sense is telling me no, because irrational numbers can't be made from any set of integers by definition, so no combina...
I am reading this paper to learning basic concepts of dsp and I want to reproduce the following scalogram of a test signal (fig 4.2 of the paper): It has been produced from the discretization of the formula: $$ \frac{1}{s} \int_{0}^{\Omega} f(t) \overline{g\left(\frac{t-\tau}{s}\right)} d t $$ Where $g(t)$ is the wave...
In a multipath propagation environment if we take the time index of reach channel tap by the integer multiples of sampling periods, assume the RMS delay spread $ \sigma_{tau} $ and maximum excess delay $ \tau _m $ is known, then how to determine the maximum number of paths?
I'm relatively new to SDR's and I'm trying to determine what sort of BW I need for my laptop to get the best resolution possible for an FMCW system. I have an X310 Ettus with a UBX160 daughtercard which should give about 1 meter of resolution theoretically. Anywhere close to this will probably work just fine for my app...
In complex envelope notation, a modulated RF signal, say v(t), is represented in complex envelope notation as v(t) = Re{ g(t)e^(jwct)}, where wc is the carrier angular freq, g(t) = x(t) + jy(t), and g(t) is the complex baseband signal. Since x(t) and y(t) are inputs to an in-phase (cos) and quadrature phase (sine) mix...
Please see this question: Why samples per symbols $\geq 2$ in the GNURadio Constellation Modulator block?. The first answer here says "filtering the signal, you have bandwidth expansion". But look at the figure in this question: Relation between Bandwidth and Baud-Rate for 8-PSK - it looks like there is much less ban...
i'am actually comparing data and i got a question that i cannot anwser, here is what i understand. nanometrique move X[::256] : decimate and take 1/256 point in the vector (blue) decimate(X, 256, ftype='fir') : decimate and apply a LP filter (orange) questions are : why those peaks on decimate methode ? and as i know o...
A vector a is transformed via a discrete cosine transform (DCT) to give vector b. For example in Matlab b=dct(a);. Vector a is also transformed via a discrete Fourier transform (DFT) to give vector c. E.g. c=fft(a); What is the fastest way to determine c from b without using a or retrieving it? For example, c=fft(idft(...
I am trying to convert a zero phase spectrum (magnidue response curve with zero phases) to a minimum phase spectrum, because I need a totally causal impulse response for FFT spectral filtering, and having an IR devoid of anticausal components allows me to implement a zero latency partitioned scheme. By now I experiment...
Why is the value of $p_i\log(p_i)$ in entropy formula considered $0$ when $p_i =0$? I get that it is the limiting value, but does that mean $p$ is never equals to zero, but only tends to?
I can solve problems without imaginary numbers, but when exponential contain imaginary numbers, I can't solve the problem. For example, $x(t)=e^{3jt}+e^{4jt}$, $y(t)=(e^{-3t}-e^{-4t})u(t)$ (where $j$ is imaginary number and $u(t)$ is step function) I can't calculate $x(t)*y(t)$ easily. In other problem that I can handl...
Given the following signal: $$ x(n) = \left\{ \begin{array}{ll} u(0.01n-0.025)2.3704e^{(-0.287682n)}, & n\ge 0 \\ u(-(0.01n+0.025))2.3704e^{(0.287682n)}, & n< 0 \\ \end{array} \right. $$ I'm finding the energy using the summation formula: $$E_{x(n)}=\sum_{n=-\infty}^\infty |x(n)|^2=\sum_{n=0}^\infty(2.3...
I have the dynamics of a 2nd order system, mass-spring-damper for example, in the transfer-function format. For the analysis that I am doing, I am calculating the frequency response of the system by replacing the $s$ with $j\omega$ for a given range of $\omega$ of interest. Now, I need to examine in the behavior of the...
Beat detection I'm trying to create a beat detection function of a machine producing in the language R. I hosted the audio file on dropbox. It was recorded with 16 bit and 16kHz. I started with some filtering. The frequencies can be seen here. Most backgroundnoise is around 100Hz and I don't really have information ab...
I determined the complex Fourier series of a sinusoidal signal and arrived at the following expression: $$\sum_{n=\infty}^{\infty} \left[\frac{4e^{-j \frac{\pi}{2}n}}{\pi(1-n^2)}(e^{-j\pi n}+1)\right]e^{-j \frac{\pi}{2}tn} $$ However, we have a division by zero at $n = 1$ and $n = -1 $. Is there any way to determine $D...
I have designed a filter in MATLAB and now I have to convert the filter coefficient in fixed point format from floating point format. For that my professor asked me to find histogram first and then find how many bits I required for fixed point representation. But I am not sure how to find that from histogram plot.
Edit: Title Edit2: Clearer picture of low count rates. Edit3: Added 2nd sentence for context. Edit4: Added deconvolution attempt I've been looking at some scope traces I took of radiation. This is a trace taken from a Geiger Muller (GM) tube. My DSP is really rusty and I can't even remember what to call some of this. T...
Let's say you have a sequence $\{x_i\}_{i = 1}^N$ of ones and zeros. You know that $P(x_i = 1) = \frac{1}{3}$. You want to test two hypotheses $H_0$: The sequence is $iid$ with $P(x_i = 1) \ \forall \ i$ $H_1$: The sequence is full of $001$ sub-sequences, but has noise. For example, the sequence might start off as $001...
Suppose there is an image with long, connected lines which form connected, closed cycles in an image. Is there a standard morphological approach to isolate only the lines, and drop all other pixels? I can imagine a couple of slow approaches: convolutional approach where a window -- say, 50x50 -- is passed along the i...
I am simply trying to modulate a wav file sampled at 22.05kHz, then demodulate it. The audio output is choppy and I get errors in the console output ("volk warning, no arch found... though I've run the profiler. And aUaUaU....). I guess the issue is with matching sample rates but I've gone through the graph several ...
I've heard in various literature that band limited channels use pulse shaping filters. By the way, In OFDM it use a cyclic prefix to overcome ISI, so I wonder if OFDM does not use pulse shaping filter.
What is the transfer function of the system described by the following affine input ($x$)-output ($y$) relationship: $$ y[n] = \alpha x[n] + \beta. $$ Using the Z-transform we find: $$ Y[z] = \alpha X[z]+ \beta $$ and $$ H[z] = \frac{Y[z]}{X[z]} = \alpha + \frac{\beta}{X[z]} $$ But I don't know how to take it from here...
I've read in numerous places that the unilateral laplace transform is extermely useful in solving differential equations with initial conditions based on the differentiation property of the unilateral transform: $\mathscr{L}{f′(t)}=sF(s)−f(0_−)$ What i don't understand is why this is possible to do in Laplace but not i...
I have some difficulty understanding the following question. I have written a code to plot continuous and discrete version of the chirped signal. import numpy as np from scipy.signal import chirp, spectrogram import matplotlib.pyplot as plt %matplotlib qt N = 400 t = np.linspace(0, 2, N) f0 = 0 f1 = 10 t1= 2 Fs = 800...
I have a project about edge detection, I made research on internet about filters and read many articles but there is an article talked about using Sobel and Gaussian derivatives then it mentioned "edge" and "ridge" detection successively. I found the equation for 1st and 2nd Gaussian derivatives ($3\times 3$ and $\sigm...
I am running the following code in python to get the spectrogram of a audio signal of wind: import librosa import numpy as np # Load the audio as a waveform `y` # Store the sampling rate as `sr` file_path = "wind.wav" y, sr = librosa.load(file_path, sr = None, mono=True, offset = 0.0, duration=None) D = librosa.st...
How many stable and causal systems with the same magnitude response are there? I know this relates to an all pass system for two rational transfer functions but am not sure about the specifics of this
I know that up sampling by L means padding L-1 zeros between each samples. My question is how it is done practically? Do we use MATLAB or any other software, or there are hardware circuits to do so.
Two different cases: We pass $x(t)$ to an LTI system with impulse response $h(2t)$ and get the output $y(t)$. We pass $x(2t)$ to an LTI system with impulse response $h(t)$ and get the output $z(t)$. I'm looking for possible restrictions (e.g. on the input / impulse response) such that the $y(t)$ and $z(t)$ are equa...
Is there any way to measure frequency deviation in a recorded frequency modulated time domain data? The little research i have done on net mostly concerns with frequency deviation measurement using spectrum analyzer in real time i.e. data continuously​ received on spectrum analyzer​ while measuring deviation in carrier...
I'm building the frequency analyzer for RTL-SDR. But having problem in building and executing code. QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-root' gr-osmosdr 0.2.0.0 (0.2.0) gnuradio 3.8.1.0 built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf ...
After reading two articles on signal processing stack exchange: On coloured Gaussian noise How the white and colored noise differ in time domain I do understand that variance do not change over frequency (or time) for colored Gaussian noise. Let's say I have a random process $y_n$, which is defined as: $$ y(n) = x(n-...
I have a signal $$Y=f(t),$$ which I want to show the anomalies, using the wavelets transform. I don't know if I use the CWT or the DWT and which mother wavelet could I use?
Perseverance Rover's SuperCam Records Wind on Mars, sol 11 (Credit: NASA/JPL-Caltech/LANL/CNES/CNRS/ISAE-Supaero) How do I interpret an image of a spectrogram of an audio wind signal? (Credit: user1068636@dsp.SE) Looks similar, isn't it? I see a glimpse of challenge in question #74103. Even if these are unrelated sou...
I have the question to derive: $$RC \frac{dy(t)}{dt} + y(t) = RC \frac{dx(t)}{dt}$$ which describes a high pass filter or $CR$ circuit with $x(t)$ the input and $y(t)$ the output. I am really struggling to derive this I start with Kirchhoff's voltage law $$x(t) = Ri(t)+y(t)$$ Use the differential equation for capacitor...
In the oft-cited ADC dithering appnote: Oversampling Techniques using the TMS320C24x Family http://www.ti.com/lit/pdf/spra461, it notes under triangular dither: However, this approach requires that the signal does not correlate with the triangular signal. If this cannot be ensured the signal should not change more tha...
I'm currently writing a MATLAB script to replicate the Lucas-Kanade registration algorithm discussed here: https://cecas.clemson.edu/~stb/klt/lucas_bruce_d_1981_1.pdf Specifically, I'm attempting to replicate the 2D implementation: However, I'm struggling to get an output that accurately describes the translation I'm ...
I'm trying to solve the following exercise: Given a system that transmits bit $b$ with probability $p_b$ and $-b$ with $p_{-b}$ and the transmission is degraded by AWGN $N(0,\sigma^2)$. What is the optimal decision threshold $\mu$ to minimize the probability of error? Use Q functions to express the probability of error...
In my class we are taught that the range for the frequency is $-\pi<\omega<\pi$ for discrete time Fourier transform, however for continuous time the limit is $-\infty<\omega<\infty$ why is this the case?
How would I sample a song to get numerical data? I was thinking there might be some kind of program that could do this or maybe I could interpret an audio file itself without processing it in any way. I'm going to start with 3 haptic feedback vibration motors, one on each arm and one on the chest. I would probably need...
I'm just learning about wavelets and the PyWavelets package. I saw a reference to MODWT, which led me to the SO post here and then to this Python package: https://github.com/pistonly/modwtpy What seems to be unique about the modwt and modwtmra functions (compared to anything I'm seeing in PyWavelets) is that their out...
How can I generate some echo to the system below? Here is my code. I would appreciate any help. % Template for the echo cancelling problem fs = 8000; % sampling frequency (Hz) f = 400; % sinusoid frequency (Hz) Tdur = 0.2; % pulse duration (s) x = pulse(f, Tdur, fs); % Generates a pulse x = [x zeros(1, 2*length(x))]; ...
Is it possible to use the bit-reverse order of FFT instead of FFT to estimate the channel? Based on my reading, I found that bit reversed order of FFT matrix can diagonalize the channel, but unfortunately it can't estimate the channel based on pilot data. It means, that when having $y = h*x$, where $h$ is a channel, $*...
I understand that, For an FMCW radar, the velocity of a target is proportional to the phase changes at same time instants across the chirps. I have a MxN data cube with N chirps(columns) & M samples across each chirp(rows). So, why not first perform FFT across the chirps-to get the velocity and then perform a second FF...
I was reading through the documentation for the R wavelets package and doing a little experimentation and noticed that the modwt and mra functions have similar outputs, yet the coefficients are called different things. The modwt function produces wavelet and scaling coefficients (W and V), whereas the mra function pro...
I'm doing the baby steps right now to learn about GNU Radio Companion. I'm using 3.7.13.5 at the moment. I'm just focusing on getting a simple binary stream together, such as '110100' (repeated) .... so it just goes '110100110100110100.......' and then to see whether I can generate a simple QAM constellation map. I don...
I want some ideas to get the level of a water/liquor in a cup. i tried many ideas (contours, edges,...) but nothings is working. So any ideas that i can explore.
I am working on the implementation phase and time recovery algorithm and have doubts. Could you please explain to me some question? PLL for time and phase recovery I have found I can use PLL not only for a carrier phase correction but also for time. Is there difference in implementation? Reference: Digital communicat...
I'm working on a sound source localization project which needs an array of microphones. I have 4 microphones with an Audio Jack plug which is connected to a USB Audio adapter. Last I use a 4x1 USB Hub to connect all the microphone-adapter components to my PC to read the incoming signal using Python PyAudio module. Here...
What is the advantage of using a Stepped Frequency Waveform instead of a traditional linear FMCW ?
Who can tell you how to draw the amplitude-frequency spectrum and the phase-frequency spectrum of a coherent packet of radio pulses?
New member here. Recently got hired into a mid level EE position. Have a BSEE but performed more radar performance analysis at a higher system level previously. In my new group we're doing a lot of digital signal processing design, validation and verification. I have a strong background with Matlab and am looking f...
I'm reading through BRIEF and one point isn't clear to me. If we are randomly sampling the pixel-vs-pixel tests, how is it that we obtain a reproducible descriptor? EDIT This is a duplicate. Find question with answer here
I'm beginning to learn about the Constellation Modulator block, and just trying it out by setting up a 4-QAM system, with the constellation points arbitrarily set as : [-1-1j, 1-1j, 1+1j, -1+1j] And the corresponding symbol map set as : [0, 1, 2, 3] I tested this block by using a Vector Source with a value of '2', whic...
The paper briefly mentions using pyramids for getting scale invariance with oFAST and even has a line which says they use pyramids for making the BRIEF descriptors scale invariant. For the former, non-maximum suppression is used to combine across pyramid levels. But for the latter, I couldn't find any explanation of ho...
let's say we have signal in time domain. After we make FFT on it we will receive that signal in frequency domain. And as far as I know the real numbers mean magnitudes of each frequency bin, and imaginary numbers mean phase shifh of each frequency bin. And then if we make inverse FFT we get again the the signal in time...
Although the question seems similar to this one HERE, but what I want to ask about is little bit different. Assume we have a signal $X$ whose length is $N$x$1$, we convert that signal into time domain using bit reversed order FFT as: $x = F^{'b}X = p*F'*X$ , where $F^{'b}$ is the inversed bit-reversed order FFT matrix...
I have started working recently with software defined radio (SDR) as well as gnuradio. I have worked with digital signal processing for a while and one feature at one tutorial, which I saw for calculating the spectrum from a bandpass signal, intrigates me. The implementation (tutorial) is a frequency scanner which uses...
I want to experiment to understand how poles/zeros affect the impulse/amplitude/phase response. So I wonder if there is any software where you can mark poles/zeros and get this? (I have not found any yet) Or otherwise how can this easily be done in matlab? For example How can I get the responses then? o is zero and x ...
I know in a minimum-phase system, any poles or zeros are reflected. How do I show that a minimum phase system is unique, or that only one system with that magnitude response can be minimum phased?
I'm trying to write a simple program to perform T1 mapping of a few MRI Images. My understanding is that all I need is to plot the pixel intensity values by inversion time then fit a curve. The output of fitting the curve is what gives me the T1 values. This was my attempt: # Loop through every pixel in image for row i...
I'm working on some oscillator classes right now and perform FFT around 100 times per second. The issue I'm running into is interpolating between the bins so there is not a noticeable change from each execution of FFT. I'm fairly new to using FFTW right now and I'm still getting to know its functions. For some more con...
I have a data set of spectrograms from moving audio recorders. As the recorders get closer, I expect the spectrograms to become more "similar". I expect this "similarity" to be a function of distance and frequency. I would like to create a 3d plot or image that has distance and frequency on the x and y, and "similarity...
I`m analyzing the numerical methods for the 1D convection equation for stability, consistency, and accuracy. I want to see How does this square pulse move in domain and time? Here is my code % Convection equation - Ct + u * Cx = 0; % IC: C(x,0)= x, 0<=x<=0.5; C(x,0) =(1-x), 0.5<=x<=1; % u = 0.1 m/s % Explicit Upwind M...
My problem is similar to this one: Measure Sine Wave Amplitude from ADC Signal I have a microcontroller that produces a sine wave by means of its DAC. I can choose the frequency anywhere between about 1 kHz to 10 kHz. The sine is 3 Vpp and has 1.5 V offset, so that it is an unipolar signal. I use this sine wave to exci...
How do radar systems identify friendly targets to avoid AA locks during combat scenarios? Do friendly planes broadcast a known signal or is something else going on?
I have some time series data captured from a person's footsteps/strides (specifically, a person on rollerblades). It came from an IMU sensor placed on a person's boot. Each data point captures acceleration, angular velocity, etc. Here's a graph of "acceleration in the x direction vs. time" for one foot: Problem/Goal: ...
I'm looking at a data augmentation method for training up a neural network of speech data. Currently I have two version of augmentation. The first method works by taking an audio file and mixing in a set of noise files. The second method works by convolving an audio file with another audio file to augment things like ...
I am having difficulty with the case when a is real. But after this, I am not going anywhere.
Can we have an explanation of why exposure time is longer, the Poisson noise become Gaussian? Or any reference? Please provide a reference and I like to dig into more. Thanks in advance!!
I just can't get my head around Fourier transform and convolution in 2D. I am trying to implement image convolution using fast Fourier transform (in julia). So the first thing I need to do is to pad the image with zeros. Let's assume that the image is $N\times P$ and the kernel $s \times q$, so I would pad the image so...
Why is it that reflecting any poles or zeros of a rational function gives a minimum phase system? And why is doing that make a unique minimum phase system? I understand the all-pass function absorbs the poles or zeros when you reflect it, not sure if that has something to do with it. Also, wouldn't reflecting any poles...
The following is a paragraph from "Digital image processing, 4th edition, Gonzalez and Woods". Let S represent a subset of pixels in an image. Two pixels p and q are said to be connected in S if there exists a path between them consisting entirely of pixels in S. For any pixel p in S, the set of pixels that are connec...
Why is it that reflecting any poles or zeros of a rational function across the unit circle gives a minimum phase system? Here's an example, it seems reflecting any poles or zeros would result in the zeros being outside the circle?
I'm trying to derive the transfer function for Chebyshev filter. $$|H(\Omega)|^2=\frac{1}{\sqrt{(1+\epsilon^2T_n^2(\frac{\Omega}{\Omega_c})}}$$ where $$T_n(x)=\cos(N\cos^{-1}(x)) \forall x \le 1$$ $$T_n(x)=\cosh(N\cosh^{-1}(x)) \forall x \ge 1$$ $$H(s)=\frac{1}{\sqrt{(1+\epsilon^2T_n^2(\frac{s}{j\Omega_c}))}}$$ To ca...
My intuition of convolution is that it is just a way to depict multiplication of two signals where each signal is made up of various frequencies and phases. Since it isn't easy to find the value of $\cos({w1}+{\phi1})+\cos({w2}+{\phi2})$ multiplied by $\cos({w3}+{\phi3})$, we need a simpler method to represent our resu...
Summarize the problem Given A Stationary Random Processes (strict sense) $X_i$ I define two Stationary Ergodic Random Processes by $$ \bar{X}_n = \frac{1}{n} \sum_{i=0}^{n-1} X_i \ \ \text{and} \ \ \bar{Y}_n = \frac{1}{n/\delta} \sum_{i=0}^{n/\delta-1} X_{i \cdot \delta} \\ $$ where the second one is sub-sampling the d...
I'm trying to take real time input for hand gestures with web cam, then processing the images to feed them to a neural network. I wrote this processing function to make the hand features look prominent: def image_processing(image, count): roi = image[42:338, 2:298] cv2.imwrite('a/'+str(count)+'.png', roi) ...
I'm working on a fork of the Rust dasp library, which is intended to be a DSP toolkit that abstracts over samples/frames/signals, and contains a number of functions and tools that work with these. One such bit of functionality is a signal interpolation feature, this supposedly allows for on-the-fly lazy resampling of a...
My DSP professor uses the freqz() function to find and plot the frequency response and I think it's wrong but I want to make sure before I point it out. Take this example: Given the impulse response of an LTI, derive an expression for the magnitude and phase response and verify using MATLAB. $$h(n)=2(-1)^{n-8\over 2}\s...