instruction
stringlengths
31
27k
I have a signal containing a variation of digital ASK type on-off keyed sine wave among which some stochastic irrelevant harmonic waves occur, like you can see on this figure: In its current form each pulse duration is the same, but it's not always the case. I'd like to calculate each pulse duration. To do that, I wa...
I have a filter design problem in which lowpass filters have to be designed with varying roll-off. E.g: 2.7 db/ocatve or 1.4 db/ocave. See picture below. This is easy to achieve with a FIR filter, yet its computational cost is too large. Therefore, if at all possible, I would like to do this with an IIR filter. Sadly,...
I am looking for a good example that showing the different between Guided and Gaussian Filters. The example need to show the benefit of Guided filter, (for example: preserving edge...). Could you give me some example for that task? Thanks in advance I tried some example, but it did not show benefit of Guided comparison...
Anybody knows of better ways to fit an IIR filter to a complex transfer function than Matlab's invfreqz.m? I'm implementing a little transfer function fitting toolbox for myself. I started with re-implementing the methods used in Matlab's invfreqz.m. Invfreqz.m is using Levy's complex curve fitting algorithm to compute...
I have problems understanding connection between theory that is done in $L^2(\mathbb{R})$ and its application to discrete signals. Look at this paper: http://home.ustc.edu.cn/~zhanghan/cs/Mallat_Zhang93.pdf All theory is done for $L^2(\mathbb{R})$ and integrals, and that's all fine. On page 8(3404) functions $g$ are s...
In block codes (channel coding), in practice, how is the message length ($k$) fixed? If $k$ is large, the practical implementation of it requires huge memory if look up table approach is adopted. What is the disadvantage with short $k$'s? Code rate will degrade?
The discrete signal is provided in the following table: $$\begin{array}{|c|ccccccc|}\hline n& -3 & -2 & -1 & 0 & 1 & 2 & 3\\ \hline x[n] & 3 & 2 & 1 & 0 & 1 & 2 & 3 \\ \hline \end{array}$$ The book is asking to determine $x[3n-1]$. This involves shifting by one and then scaling by $3$. My answer to this problem is:...
From Wikipedia: A zero-order hold reconstructs the following continuous-time waveform from a sample sequence $x[n]$, assuming one sample per time interval $T$: $$x_{\mathrm{ZOH}}(t)\,= \sum_{n=-\infty}^{\infty} x[n]\cdot \mathrm{rect} \left(\frac{t-T/2 -nT}{T} \right) \ $$ where $\mathrm{rect}()$ is the rectan...
I have a 2D image and I convolve it with a 2D kernel image using FFT. So far I was always using symmetric kernels (e.g., Gaussian with stddev_x = stddev_y). As a result, I never bothered thinking whether I have to flip my kernel image or not because it wouldn't have made any difference. However, now I want to convolve ...
New to this signals stuff and i'm confused about the frequency representation of the square wave. Correct me if i'm wrong, a periodic square wave is composed of odd harmonics sine waves which are multiples of the fundamental frequency, In the frequency domain this just represents decreasing impulses at every odd multip...
I have recently started learning about the image edge detection methods. I studied few of these methods including Sobel and Canny. I observed that edge detection is performed using patch/kernel size as 3x3. My question is, Is it necessary to fix the patch size as 3x3? OR can we take it as 5x5, 7x7, 9x9 etc. I have alr...
How can I extract a signal to baseband? Rather that just listen to one signal at a time, I want to take advantage of my RTL-SDR's 2mhz bandwidth and listen to multiple FM signals at the same time. I think that what need to do for each signal is filter out everything but the signal, then shift the signal to baseband and...
The following makes sense to me: Decimation reduces the number of samples so it reduces the amount of data that is metered across networks and reduces the processing time for chips. That sounds great. However, the following does not make sense to me: I see decimation used in gnuradio-companion all the time. Often the ...
I am having difficulty with this question specifically with the $\sin()$ part. So here goes nothing: Consider a Linear Time-Invariant system with input $x[n]$ and output $y[n]$. When the input to the system is $$x[n]=5 \sin(0.4\pi n)/(\pi n) + 10 \cos(0.5 \pi n)$$ and corresponding output is $$y[n] = 10 \sin(0.3 \pi (n...
A Linear Time-Invariant system with impulse response $h_1[n]$ is an ideal lowpass filter with cutoff frequency $\omega_c =\pi/2$. The frequency response of the system is $H_1\left(e^{j\omega}\right)$. Suppose a new LTI system with impulse response $h_2[n]$ is obtained from $h_1[n]$ by $h_2[n] = (-1)^n\cdot h_1[n]$. Ske...
The figure shows the pole–zero plots for three different causal linear time-invariant systems with real impulse responses. Indicate which of the following properties apply to each of the systems pictured: stable, IIR, FIR, minimum phase, all pass,linear phase, positive group delay at all $w$: I am having problems speci...
A car's engine rotates in the range of 500 RPM to 6000 RPM. This is in the audible range. The car's engine is activated using spark plugs which are an electrical system at the same frequency (or some harmonic). Turning on the radio to an AM receiver, you can sometimes hear a sound at the frequency that the engine is sp...
I have a pressure transducer signal from a reacting mixture available here, which has a sampling frequency of 50kHZ. I have also obtained the spectrogram of the signal with NFFT=256, noverlap=4 as shown below: I expected to see one high power frequency after pressure rise, instead of multiple frequencies (after t=0.03...
Now I receive $y=s+n$, $s$ is the signal and $n$ is the white guassion noise. Everytime $s$ will be change irregularly, have some methods to get a estimation of $s$ namely $\hat s$? Namely $s$ is random. And I don't know $s$ how to change everytime,so the traditional kalman filter algorithm may can't be used in this c...
I am sampling a sine wave of 50Hz(stepped down from 230V) at the rate of 500KHz. For identifying disturbances in the wave, i was thinking of comparing a cycle of incoming sine values with reference sine values(pure sine wave). But will the method be accurate? one of my friends told that there will be loss of synchroniz...
So I think I have my thinking correct on what I'm trying to do, but I just want to make sure I'm not assuming something that isn't true. Below is what I'm currently doing in the time domain. $r(t)$ is my received signal $T$ is my period $MultCurrent = r(n)\cdot r(n-T)$ $MultPrevious = r(n-T)\cdot r(n-2T)$ $Average(i) =...
I'm trying to write some image processing code in python to differentiate between two types of images (we'll call them set Blue and set Amber). I have run an algorithm I wrote that results in the data graphed below for a sample from one image from each set. Although the absolute scale of the data varies, the Blue ima...
Problem statement: I am designing a NP detector for the following detection problem: $\mathcal H_{0}: x[n] = A_0\cos(2\pi f_0n) + w[n]$ $\mathcal H_{1}: x[n] = A_1\cos(2\pi f_0n) + w[n]$ where: $f_{0}: \text{known parameter}$ $w[n] \sim \mathcal N\left(0, \sigma^2\right), \text {WGN}$ $A_{0}\ \ \sim \mathcal N\left(a_0...
I'll be processing stereo music signal. What I need is to first split the frequency range into 2 bands at 50-100 Hz. In the higher band, I need to delay one of the channels by a certain number of milliseconds. The lower band has to be delayed as a whole (left+right channel) by a different value. Is this doable? Is this...
I want to take FFT of my signal and reconstruct it back via IFFT. It seems the real part of odd numbered samples and image part of even numbered samples are multiplied by -1 which can be observed below: For example if I have [995] (-0.382624, 0.000000) std::complex<double> [996] (-0.831434, 0.00...
One of my tutorial questions for communication systems asks me to find the time function $x(t)$ which has the Continuous-Time Fourier Transform: $$X(\omega) = \frac{3}{(1+j\omega)(2-j\omega)}$$ So far all I have been able to do is rationalize the function so by multiplying the numerator and denominator by $(1-j\omega)(...
The CTFT of an analog signal is a representation of that analog signal in terms of the frequency parameter of sinusoidal (cosine specifically) functions whose weighted sum make up that signal. The cosines are continuous functions of time and the amplitude of a particular cosine at a given frequency is given by the ampl...
I have continuous data with very high amplitude periodic noise. Data is sampled at 500 Hz. The period of the noise does change with time but within a short interval (~ a minute) it is constant. Top picture shows an interval where there is very little noise. Second picture is the noisy data. In this example the noise pe...
I'm looking for an algorithm for Vibrato audio effect for a cross-platform C++ program of audio processing. Now I use the realization from Chaotic-DAW sources. The problem is that Chaotic-DAW has a huge class hierarchy, and: 1. I don't want to use such a huge library 2. I cannot use it on Mac OS X (cannot compile) 3...
I have an EEG data of 200 Hz and sampled at 4097. I have few doubts and questions related to this data: What does it mean by sampling in EEG data? I am getting the sample rate and the frequency when I plot the data as shown below. Shouldn't it be the time and frequency? I don't understand what I'm missing here. Can ...
In my signals and systems course, we have learned that the discrete-time Fourier transform is $2\pi$ periodic, but the continuous-time Fourier transform is not periodic in general. For reference, we are using the following definitions of each transform: Continuous-Time: $$ x(t) = \int_{-\infty}^{\infty} X(j\omega) e^{j...
In the $\rm DTFT$ (Discrete Time Fourier Transform) the spectrum is periodic with a period of $2\pi$ . A continuous signal when sampled has a spectrum which is a repeated version of its original spectrum before sampling with a period equal to the sampling frequency. Both have periodic spectra and both are discrete in n...
I am unable to understand the discrete wavelet transform on images. I followed Robi Polikar's tutorial and got a brief idea about the theory. But I'm unable to understand w.r.t images. Using Matlab's ndwt2('chess.jpg', 2, 'haar') function on the chess board , I obtained the other 7 images in the album. (Link to the alb...
I'm trying to figure out a way to construct (numerically) time series of random variables given some spectral density $S_{xx}(f)$. I'm interested in various types of spectral densities (flat, lorentzian, 1/f) so if there is a general method that starts from an expression of $S_{xx}(f)$ and generates a suitable time ser...
I'm looking for a tool\method which allows me to design a filter without involving the frequency response at all. Specifically, I'm trying to design a simple FIR smoothing filter for an emmbedded system which reads different analog sensors. My sampling rate is 1kHz and I'd like to generate an FIR filter with 0-oversho...
Basically my question is the same as the title: Are the 4 types of linear phase FIR filters the only linear phase FIR filters one can come up with? And if so, then why? I'm pretty sure that they are the only ones but I really can't explain why. Can someone articulate it clearly?
I am trying to extrapolate the bearing of a vehicle using GPS and a gyroscope. To this end, I first obtain the yaw component using gyroscope readings and the (known) yaw axis of the vehicle, then integrate the result over time and add it to the previous bearing. I have implemented a real-time visualization of: the dir...
Can I find the inverse $\mathcal Z$-transform of this transfer function: $$H(z)=\frac{1}{1-\alpha z^{-8}}$$ in a way other than contour integration and finding the residues of the 8 poles? If so, how?
I am using OpenCV to blend a set of pre-warped images. As input I have some 4-channel images (*.png or *.tif) from where I can extract a bgr image and an alpha mask with the region related to the image (white) and the background (black). Both image and mask are the inputs of the Blender module cv::detail::Blender::blen...
I'm currently working in a Lolipop LBP cascade detector using OpenCV. The training is correctly done and the cascade classifier detects the sticks of the Lolipops correctly but with some minor errors. Is there any way to obtain a "level of trust" or an index of how many features had been detected during the cascade d...
I have the following signal from a temperature sensor (broadcasts on 433.92 MHz, apparently as ASK). I cannot for the life of me extract the temperature data. I've tried reading off the bits in so many different ways (mostly by looking at the pulse widths) then searching the data for the temperature info. For example: ...
I know the question has been asked about why it's a bad idea to zero bins in an FFT, but those all seemed to be taking the IFFT afterwards. What if I want to do all my analysis in the frequency domain? Then would it be alright to zero the bins with frequencies i don't care about, and then perform my analysis? And to ad...
I know basics about DSP, and now trying to complete a project on Speech recognition. So I read as many resources as I found, and got some ideas. They are like: take a sample sound and break it into small frames calculate MFCC for each frames( 13 of them) use DTW to match the testing and template pattern. Now, here a...
Signal I have an acoustic signal from a Ffowcs Williams Hawkings CFD analysis and would like to convert it to the frequency domain and see the SPL and OASPL. I know I need to use fft() but I am unsure why my plot differs so much from the one from FLUENT. time = data{1}; p = data{2}; Fs = 1/(time(end)-time(end-1)); L =...
I have a basic question about the metric spaces. There are several metric spaces like $L_1$, $L_2$ to $L_\infty$. The $L_p$ metric is defined by the following equation: $$d_p(x,y)=\left(\sum_{i=1}^{n}|x_i-y_i|^p \right)^{1/p}$$ Now, when $p = \infty$, then the equation of the matrix is following: $$d_{\infty}(x,y)=\max...
I have a digital audio signal (float samples). I need to apply the Vibrato effect to a signal. "Vibrato" is no common term, but it is the same as the frequency modulation. So, I need to modulate my audio signal by a low-frequency sinusoid. I need to set two parameters for the modulation: "amplitude" and period. In this...
I read the book Image Processing, Vision and Machine Vision and find the concept Fourier descriptors hard to understand, although literally its derivation is somewhat reasonable. Can anyone give me a detailed picture about what's really going on about it? Thx.
I was working on wavelet signal decomposition and got confused with the downsampling part of Discrete Wavelet Transform algorithm. If we consider a signal $\{a_0[0], ... ,a_0[N-1]\}$ of length N and use formula $$ a_1[k] = \sum_m h[m-2k]a_0[m] $$ then for two low pass filters $$\{h[0]=h_0,~h[1]=h_1, ~h[2]=h_2, ~h[3]=h...
I recently asked a question here on how to create noise with a specific spectral density $S_{xx}(f)$. The helpful people of this stack exchange told me one way to do it was filtering white noise with a unitary spectral density using a filter with impulse response $H(f) = \sqrt{S_{xx}(f)}$ and then suggested how to do t...
I have a a time domain data set that records the magnetic field vs time, which must be processed to reveal an embedded signal. This data also contains power line harmonics (i.e. multiples of 60 Hz) that must be removed from the signal. I am processing the data with Python and am using the numpy, scipy.signal and scip...
My question has to do with integrating gaussian noise. Let us assume we have samples of discrete gaussian white noise with mean $\mu = 0$ and variance $\sigma_{th}^2$. These noise samples are passed through the system shown in the Figure (a cascade of two integrators with outputs $y_1[n]$ and $y_2[n]$, respectively). ...
I am creating a nonuniform illumination in MATLAB R2015. The nonuniform illumination (known as bias field) is defined as Nonuniform Illumination (intensity inhomogeneity) which manifests itself as slow intensity variations in the same class over the image domain. The non-linear degree of intensity inhomogeneity is ind...
I am looking for some good book, that simply show how you actually write a code in C, to do all the main DSP methods . FFT. Low-pass and high-pass filters. Auto-correlation. Noise processing. And all the basics of DSP, from theory into a real code in C. For example, I have got 1000 samples, now i would like to comput...
I have a sample signal, and I computed MFCC using this code.Now I have an array of 1225x12 size, where there are 12 coefficients for 1225 frames. Now I want to test another signal against this sample, and use vector quantization for this.I have this code, but cannot quite understand what to do. It takes data vectors as...
I'm a computer science student and I took a network course this semester which assumes some signal processing backgrounds which I have not. Last time We talked about ASK. ASK is Amplitude Shift Keying, it uses two different amplitudes to describes $0$ or $1$. We can use several levels to represents more symbols. $$A\si...
Assume we have: $$x_c(t)=\sum_{k=-9}^{9} a_k e^{j(2000\pi kt)}$$ and Fourier coefficients out of $$|k|>9$$ is zero. So, it is band-limited. The sampling frequency is:$$F_s=\frac {6} {10^{-6}} HZ$$ and $$T_s=\frac {10^{-3}} {6}$$ My question: what is the maximum frequency? how we can calculate it? I know the answer tha...
I have been reading this http://homepages.inf.ed.ac.uk/rbf/HIPR2/gsmooth.htm and I am having trouble to perform the seperability. So I kinda did it in paper. Lets say y Gaussian function is G(X,Y), then seperating them will become G(X)G(Y), and then I will need to calculate the 1D component for X and 1D component for Y...
Now I'm trying to implement a SDLWGW algorithm by the MATLAB. currently I'm referencing from Automatic White Balancing Using Luminance Component and Standard Deviation of RGB Components The problem is I can't understand how to get a $SDLWA_{R}$ and $\overline{L_{red}(k)}$? Also what if the $L_{weight}(i,j)$ is $0.9$ t...
I have a recording, corrupted by environment noise. The measurement noise is zero. How can I use Kalman filter to remove environment noise? I tried this Matlab code here but if the measurement error covariance is set to zero, the Kalman values are always the same as the measurements. The process noise is not removed at...
Hi, I am really confused with the system in the diagram. The input-output relation of the system is given by $y[n]=\exp(x^2[n])$ I need to find the transfer function of this system $Y(z)$ in $z$-domain. My question is: is it really the simple exponential system I am missing out or something complex. If otherwise what ...
The rectangular function is defined as: $$\mathrm{rect}(t) = \begin{cases} 0 & \mbox{if } |t| > \frac{1}{2} \\ \frac{1}{2} & \mbox{if } |t| = \frac{1}{2} \\ 1 & \mbox{if } |t| < \frac{1}{2}. \\ \end{cases}$$ The triangular function is defined as: $$\operatorname{tri}(t) = \begin{cases} 1 - |t|, & |t| < 1 \\ 0, & \mbox...
I'm trying to understand how to derive the BEP for 8PSK by geometrically looking at the decision regions. Say I have this 8PSK signal set and the corresponding decision boundaries. I assume that '000' is sent, and I want to calculate the BEP. So I have $$P_b(e) = \frac{1}{3}(1 \times R_1 + 1 \times R_2 + 2 \times R_3 ...
I currently have a real-time noise suppression algorithm based on two inputs from different microphones. It has passed most tests that I have thrown at it, however when the signal I am trying to retrieve has a slight delay one mic relative to the other it works poorly. I have done preprocessing delay estimation in the ...
As part of a project I have a video from a quadrotor that captures the road and the environment around it and I want to identify and detect potholes and speedbumps on the road using image processing. What is the best approach for this? Here is what I've done until now. The video feed is converted into grey scale and I...
Is Hilbert transform not defined for complex signals? In MATLAB, the function hilbert ignores if you give a complex sequence as input. Why?
How does iZotope RX handle the FFT (i.e. how does it manage to perform those processes in the frequency domain without creating glitches) since its able to e.g. Apply another DSP process (even time-domain) into a spectral part (i.e. apply e.g. a phaser onto individual parts of the FFT). Attenuate or gain spectral ...
I ran into a strange bug while implementing a complex band-pass filter. The filter design process is based on the windowing method and seems to be working well, but when i apply the coefs of the filter on my time domain input samples and perform DFFT the carrier frequency is doubled. I can´t really figure out why is th...
I'm working on a project at school and the first step is to choose a dsp/evaluation board but I'm having trouble. The project is to create a system that can be used for a variety of audio applications (such as sound localization or digital effects processing). Because of this the evaluation board should have at least 3...
In MATLAB, there is a command called hilb(n) which it says gives a Hilbert matrix of order n. Is this matrix the one used for Hilbert transformation?
I read Digital Signal Processing of author G.Proakis and see this FIR Filter Structure. I understand all about this but I wonder that what is purpose of classification to 4 structures? Here is this section:
suppose if we send AM modulated message signal through space how the receiver will be knowing that we applied AM modulation basically how it will be knowing that which modulation is applied for our modulated signal
I'm given a continuous-time analog signal $x_a(t) = \cos(2\pi f_1t)+\sin(2\pi f_2t)$, for some frequency $f_1, f_2$. I'm asked to sample $x_a(t)$ at $F_s=1024\textrm{ Hz}$, apply a 128-point Hamming Window, and take the DFT(Discrete Fourier Transform) of the resulting windowed, sampled signal. The expression for a sa...
Posted also here, where it's been put on hold. I did modify it afterwards though. https://biology.stackexchange.com/questions/43997/how-can-a-medical-doctor-use-the-information-given-by-someone-working-in-medical I'm an academic researcher in the US working in an area called "statistical shape analysis", which is intim...
I have a filter whose respose I have in angular frequency. A0 = [1.0000000,0.3281250,0.0000000]; B0 = [0.5859375,-0.0625000,0.0000000]; [z,p,k]=tf2zp(B0,A0); figure; zplane(z,p); w = 0:(pi/500):pi; H=freqz(B0,A0,w) figure; plot(w,20*log10(abs(H)/max(abs(H)))) 1) How can I get the corresponding response in Hertz? Is i...
As the order of filter needed for digital information gets higher, it takes longer to process and requires more memory. Maybe analog filtering could be of use here. I know that the words analog and high precision dont often appear in the same room together, but lets assume they do for the sake of this post. Ok, so I su...
I have some images of answered tests. I am working on recognizing the answers for the multiple choice questions on each test. A example: I think the problem can be separate into two sub-problems: 1.) Identify and segment the multiple choice answers from the rest of the test. 2.) Classify and recognize the answer...
my application : sensing a photo diode output and processing it further, the per-processed output would be a digitally converted pulse waveform with pulse width ranging from 1ns-150ns and pulse repetition frequency 1Hz to 50KHz,now i should find the repetition rate of the 1ns-150ns pulse as sensing this kind of narrow ...
I am working on a school project on converting a 6th order butterworth high pass filter to digital filter using bilinear transformation. Just got a couple conceptual questions need to be clarified before I continue. In an analog 6th order butterworth filter, the poles are the same for highpass and lowpass since poles ...
Given a discrete-time signal x[n], how does one determine if it is an eigenfunction of a stable, discrete-time LTI system? For example, consider $5^nu[n]$ $2^nu[-n-1]$ Intuitively, second one seems to be an eigenfunction of an LTI system while first one does not. Since the second sequence is absolutely summable while...
I want to get into audio signal processing. I know how to generate a tone, but I have no idea how filters work. What do I do to a set of samples to boost/cut a frequency with adjustable bandwidth? What is FFT? What's the code behind a parametric equalizer?
I am recording vibration data using an adxl335 accelerometer.I have ~50ms delay before i save a reading from this sensor so most probably each second i have ~20 readings. I verified that by checking the difference between two consecutive readings since i am recording the time of reading, however since my pc is not real...
I have 3 identical gears that are meshing together, on each shaft that is holding these gears I have an accelerometer recording vibration data. Once I move to the frequency domain via MATLAB's fft I am unable to see any specific frequency that would describe the meshing frequency of my gears, it looks all the same. Ar...
I would like to compute the gradient of an image I. I have the following two options : [Gx, Gy] = gradient(I); g = sqrt(Gx.^2+Gy.^2); or [g,~] = imgradient(I, 'sobel'); My questions are What is the gradient method used in the first option ? What are the benefits of using Sobel method to estimate the gradient ?
In live sound it is common to have a left/right sub-speaker configuration, which will produce an strong interference pattern in the audience area based on listener/sub-speaker locations. If the left/right sub-speakers were decorrelated (phase randomization?) would this help reduce the interference pattern in the audien...
Check the equation 4.8-1 $H(u,v)=1$ if $D(u,v)\le D_0$ my question is the high frequency is at center. $D(u,v)$ is smaller if it is close to center. why $H(u,v)=1$ in that case. Thanks
Can a CDMA PN sequence be fully random, as in encryption-grade randomness, or must it be deterministic? I have tried the first bytes of SHA-256 hashes as PN sequences, but somehow they don't coexist too well. I know a deterministic code can be generated on-the-fly so no storage is needed, but let's say I have 500 fully...
I'm using Matlab R2015a and I want estimate depth but an error occurs and I wonder that it doesn't know pcshow() function. Why it doesn't work and is there another alternative for that?
Please explain, mathematically, how can a bank of modulators be replaced with the IFFT in an OFDM system?
I am trying to understand the following fact from this article (page 13): How can single neurons predict behaviour Suppose I have a linear estimation of a stimulus: $ \hat{s} = \mathbf{w}^T(\mathbf{r} - \mathbf{f}(s_0)) + s_0$ where $\mathbf{w}$ is a vector of weights, $\mathbf{r}$ is a vector of responses of two neuro...
I am trying to detect outliers/noise as indicated on the diagram below from sensor data. Can anyone advice how to go about it? I can only do this in python, so are there libraries in python that I can leverage? Is there an example that can be given. Sample data am using has timestamps and the value. Also how can I also...
I was looking at this particular thread that discusses extending windowing functions for singling function to higher dimension. There is one bit in the accepted answer that I could not get my head around. So, they create a multi-dimensional windowing function but then they scale the weights in this line. # scale the wi...
This my 1st post here. I'm using this impulse invariant (MZT) based method to calculate coefficients for biquad digital filter (for RIAA and non-RIAA de-emph.): double a0, a1, a2, b0, b1, b2; double fs = 44100; //timeconstants (case RIAA): // frequency -> time conversion 1/(2*pi*fc) (= R*C) //poles double p1 = 3180e-6;...
Let's suppose I have a camera which can move freely in 3D space and has 6 degrees of freedom. Is it possible to estimate the linear and angular velocity of the camera from 2 or more consecutive frames? If yes, are there any environment or camera constraints that must hold?
I am not a "proper" DSP guy at all, so apologies in advance if I am making any basic errors in this question. I would really appreciate it if you could point out any errors I make. I have an audio signal sampled at (say) 44100 Hz. I want to get a spectrogram from this signal and display it. For this question, I will be...
It is well known that no time-limited signal is frequency-limited. So the frequencies of a time-limited signal extend upto infinity - may be decaying slowly or fastly in frequency domain. But we take signal's frequency content to be zero beyond some frequency and take that as the maximum frequency of the signal. My tw...
I am working in something were I should use a upsampling filter. I have decided to use a Nyquist filter(Lth filter). I know that there are two constraints. The first The frequency vector values must mirror each other in pairs around $\pi/2$. The second is the amplitude vector values must mirror each other in pairs arou...
If there is an N-point sequence, it has a Fourier Transform. DFT of this sequence is the sampling of the Fourier Transform at N equally spaced points on the unit circle. What happens if we take some M non-uniformly spaced samples on the unit circle with M < N, M = N and M > N. Any studies done on this. If yes, what...
I am trying to display the spectrogram of an input audio signal (a newcomer to all things spectral here). The amplitudes of my audio signal can be assumed to be normalized between -1 and +1. Suppose for the frequency $f$ in the DFT's output, the corresponding coefficient is $c$, in general a complex number. I would lik...
I want to filter a very long signal in smaller parts, therefor I am currently using scipys lfilter with an initial filter delay doing multiple iterations of: (signal_part_filtered, filter_delay) = lfilter(b, a, signal_part, zi = filter_delay) The first few iterarions are going as expected (original is blue; filtered ...
I am not from DSP background and also not sure if I am posting this in right community. I have basic understanding of resistors, capacitors and filters. My requirement is as follows- The supply voltage is fixed and I would like to simulate the output of the filter using Python. With a fixed input voltage, I would like...