instruction
stringlengths
31
27k
Short question How to plot the magnitude of frequency response of the delay line canceller with non constant period using GNU Octave? Or more directly: how to plot magnitude of frequency response of staggered PRF (pulse repetition frequency) MTI (moving target indicator) processors? Full question I try to plot magnitud...
Input : Square wave which sweeps over time domain. (about 1 MHz) Output: The time period of high/low value. Like the timer does, I would like to know the actual time (in sec) when the input goes high or low as well as the proper way to implement it. For example, use FPGA or Microcontroller to read it via analog input....
The concept of poles and zeros in filters was introduced to me during our lab (our lab isn't sync with our lecture) through the pole-zero plot generation of filters in MATLAB. I didn't get its importance until it was mentioned in our lecture that poles make the equation infinity (or its denominator zero) while the zero...
I found something very interersting when I was trying to simulate a discrete time system. So first I discretized the continuous system $G(s)$ using "c2d" function and "dbode". The resulting bode plot for the discretized system is displaying some sort of periodic behaviour after reaching about 3 hz. So is the phase plo...
I am trying to evaluate whether I should control a system in simulink using sampled data system or discrete time system. The discrete model is as follows: The sampled time system is as follows What is the functional difference between these two and which approach is preferred in realistic modelling and control?
Nowadays read any paper or reference on signal classification scheme you would invariably come across the term "feature". What does feature mean exactly? What is considered a time domain feature, what is considered a frequency domain feature and what is considered a phase domain feature? I would be glad if someone can ...
Can one determine if an MFCC vector represents a combination of two sounds whose MFCCs were previously given? Any guidance is appreciated!
I'm beginning to write a basic "virtual analog" synthesizer and want to implement a lowpass with variable cutoff frequency and resonance. Does anyone have insight into filter types commonly used to mimic the sound of traditional analog gear? More generally, what are common filters types found in audio applications such...
What type of sensors have complex Gaussian noise? Do strain gauges also exhibit such noise?
is it possible to know the order of the filter, just looking on the pole zero plot. I know how to get the order of the filter using calculations(highest order), but I want to know is it possible to see that in pole zero plot. So far my idea is that the higher number of zeros/poles (pairs) is the order, for example if I...
I've got images of blood drops in grayscale and I want to generate 3D data where the first two dimensions represent the area of interest and the 3rd dimension represents the pixel intensity of that area. Here's an example image: My requirement is as shown in D,E,F while the raw images are A,B,C. Also, what algorith...
I'm using the code in this book: Algorithms for the constrained design of digital filters with arbitrary phase and magnitude responses to compute nearly-linear-phase IIR EQs. fvtool() shows the correct Eq mag and phase, but when I try to apply the coefficients to some real sound, the output is very very high (silence d...
I have a simple frequency modulation scheme where in I am sending simple textual data by encoding it into specific frequencies(for example 'a' is converted to ASCII value of 97 and I use 10 frequencies to map decimal values from 0-9. 17 khz for 0,17.2 for 1,17.4 for 2 and so on.) A sound file is created by encoding suc...
I have experience using design tools such as Xilinx's CoreGen and MatLab's DSP tool kit, but I have not really had much experience designing filters from the ground up. Reinventing the filter as it were. I prefer to use FIR filters because they are easier to implement and take less fabric. I know that the filter comma...
Most fft tutorials use sinusoidal signals for demonstration, which makes the user already know what the fft is supposed to give as an output, but what about real time signals where we don't have any previous knowledge except the sampled data with the following problems: No previous knowledge Variable sampling time Unk...
How to design a $(8,4)$ linear block code with highest possible error correction and error detection capability? I have studied linear block codes topic but if I do the conventional way, in case of $(n,k)$ block code, I need a generator matrix which is given as $\mathbf G=[\mathbf P|\mathbf I_k]$, where $\mathbf P$ is ...
I am building a speech recognition system using Hidden Markov Model in python. I referred to this and this question and its answers, which were very helpful. In my approach, I split the continuous speech into separate words. I am thinking of using HMM to detect each word. So my states of HMM will be phones. What I unde...
When I was learning about LTI systems, I noticed that LTI system is said to be BIBO stable if and only if its square sum of impulse response is finite. This expression is found on many textbook of signal processing. I continued study and found this expression LTI system is stable if and only if its impulse response is ...
I wonder if there are algorithms used to segment images efficiently. The ones I tested by now can not segment hair correctly as on this image: I just want to know if someone can give me some efficient algorithms to segment the hair on this image for example without cutting it and so on (correct segmentation) Note that...
I am looking for a good reference on DSP. I am a little bit more than beginner and have some experience in DPS. I think I would have to start with rather easier books where a concept of DSP is explained based on practical examples, intuitively. Eventually I'd take more advanced books to have solid understanding of DSP,...
suppose I generate the following filter: Fs = 32000; % Sampling Frequency N = 4; % Order Fpass = 400; % Passband Frequency Apass = 1; % Passband Ripple (dB) h = fdesign.lowpass('N,Fp,Ap', N, Fpass, Apass, Fs); Hd = design(h, 'cheby1', 'FilterStructure', 'df2sos'); "Hd" at the interactive prompt gives me: ...
It seems like (controlled) noise can sometimes be good: dithering in an image, or a softer sound in audio, or white noise alone. Here's a paper on noise improving detectability. My intuition also says that noise in a financial trading algorithm could act as a sort of hedge. I have few examples — only a vague philosophi...
I'm pretty new in dsp and I'm having tough times trying to get the output for a simple digital oscillator. I'm starting from the recursive formula $y[n]=x[n]+a \times y[n-1]-b \times y[n-2]$, and need to figure out the values of $a$ and $b$ for the output to be completely sinusoidal at a determined frequency $\omega _0...
I am using electromyography to detect activity on pectoralis major, however I found an interference from heart beats that is affecting my posterior analysis. The sampling rate is 2000 Hz, and the time of sampling is 150 s. The main signal is the muscle activity as the arm moves (four major big masses in the figure, bet...
I took acoustic measurements of a room using sine swept method, and I also used Pioneer sc-37 to obtain more accurate data. I used RoomEQ wizard software and measured the impulse response of the room, and got a long list of coefficients. and the Pioneer helped me to get the Q factor, center frequency, and attenuation....
I'm working on a project to transcribe lecture videos. We are currently just using humans to do the transcriptions as we believe it is easier to transcribe than editing ASR, especially for technical subjects (not the point of my question, though I'd love any input on this). From our experiences we've found that after a...
I have to calculate SNR of an image. I have camera through which continuous images are getting generated, my requirement is to calculate the SNR in db for each image. I have seen lot of the examples where they have added a noise to image then computed the SNR value. I have to calculate SNR of each image independently w...
Is there any method for calculating luminance of an image? As from wiki got to know Luminance is an amount of energy perceived by the observer and LUX is different from brightness. But still is there any way to calculate LUX value of an image using any of image processing technique.
Gentlemen! I have to reproduce MATLAB random normal generator (randn) with some fixed seed. Also, I have to reproduce it in an external script, without MATLAB itself. Has anyone done this? What random normal generator implementation is better to use? P.S. Preferred languages are Python and C/C++, but other languages ma...
I am investigating the overlap-add and overlap-save methods for processing an audio signal with a FIR. The FIR is a measured impulse response of a reverberant space and may be of order greater than 100,000. It appears that in order for O-A to work, the signal block length must be at least this length to keep the amount...
From my knowledge about independent component analysis the number of channel or variables will not be affected by this algorithm and the number of independent components will be equal to number of variables. But when I tried to run FASTICA algorithm on EEG signal matrix which has 14 channels (or 14 variabls), the numbe...
I have a class exercise of an inverse Z transform and I have some trouble. I will render an example to make my point. Let's asume the Z transform pairs: $$a^n \cdot u[n] \Leftrightarrow \frac{1}{1-az^{-1}} \qquad\qquad x[n-k] \Leftrightarrow z^{-k}X(z) \qquad\qquad \delta[n] \Leftrightarrow 1 $$ Given the following fu...
I have a motion signal that you can think of as a sequence of pairs (x,y); what would be the best approach to decimate this sequence at real time? I haven't found anything similar on the web and I'm still learning about dsp. Thanks
I have several signals that consist of repetitive units. In the figure you'll clearly see the variability of the signals, that increases top down. The first signal is super repetitive and units are indicated with green lines. In the third, you'll see peaks and in the middle a little insertion that I know consists of ra...
I sampled a 50Hz sine wave (its not perfectly a sine wave, it's a data coming from current sensor using Arduino). Using real time graphing technique by sending the data from Arduino to the PC I managed to reconstruct the signal as attached here The second experiment I logged my data into an SD card, my sampling rate ...
I am using a DSP processor to sample signals at 108kHz and I only want to get the DC part out of it. Such a high sampling rate is used because I want to use oversampling to reduce quantization noises. Two filters are to be designed: One has 10Hz stop-band frequency; new data are read every 0.1 second; One has 0.1Hz s...
I am trying to implement BPSK demodulator in FPGA. First, I am modeling the system in MATLAB. Now, I am trying to design Costas Loop for carrier synchronization. This is the block diagram I'm trying to achieve: I'm using RRC as a low pass filter. This is the MATLAB code: load RRC.mat fc = 0.05; % 0.11 %0.09 N = leng...
I'm trying to implement a simple FHT on .NET platform myself. I follow this document: Optimized fast Hartley transform for the MC68000 with applications in image processing. In the page 20th, equation (20): H(k) = He(k) + [Ho(k)cos(2πk/N) + Ho(N/2-k)sin(2πk/N)] H(k+N/2) = He(k) - [Ho(k)cos(2πk/N) + Ho(N/2-k)sin(2πk/...
I wanted to verify the fact that main lobe width of a Hann/Hamming window is twice that of a rectangular window, using Matlab. I computed the analytical expressions for the respective frequency responses, and plotted them. I do not get the expected result. Can someone explain this? Code : omega = -pi:0.01:pi; N = 20; f...
I'm currently attempting to study up on adaptive digital filters. My book presents the diagram I've included below and I'm having trouble understanding conceptually what it's indicating. The problem deals with noise cancelation. The idea is that someone is driving and makes a phone call. The x(k) is their voice input. ...
I see in a paper mentioning ycbcr as well as ycbycr. I am wondering what is the difference between the two? In the figure, the first two lines show ycbycr but the two bottom lines show ycbycr?
I need to run comparisons on the output of hundreds of frames of simple 3D-rendered characters. Perceptually, many of the frames are exact duplicates. Based on this, I assumed something like a perceptual hash and comparison using pHash would work great. And in some cases it does... However, I'm noticing that it doesn't...
Suppose I would like to stream data from a device in a single second. What would be the theoretical upperbound of the amount of information (in bits, bytes, pixels...) that could be sent during this period? What determines this upper bound?
Say I am using matlab's random number generator to get an array of random numbers, which I will then, for testing purposes, find the spectral density etc. For that purpose I need to know the sampling freq., but these have been generated synthetically so I am not sure how the sampling theorem applies here.
My input is x and my filtered output is y. The sampling rate of x is Fs. I create a low-pass Butterworth filter in MATLAB as follows. [b,a]=butter(order,cutoff*(2/Fs)); y = filter(b,a,x); Letting order vary (cutoff fixed at 20Hz) yields these outputs y. Letting cutoff vary (order fixed at 6) yields these outputs y. ...
I am a total newbe to signal processing and i have a problem which may be quite trivial to most of you guys. I want to align two short sensor signals (speaking of max. 1000 samples recorded with 20Hz). The signals are sampled with the exact same sample rate and are not necessarily periodic. I use octave to make first ...
Is this possible to work with PYTHON or C in MATLAB.
I have an image taken by a mobile phone camera with focus on a part of it let say a face or whatever. I want to know -approximately- where is the focused area. For example, a bounding box around the focused area. example :
I'm getting some odd results with some code I'm working on. Help me with the implementation of this delay effect? The code takes an input, adds delayed input to it and then passes it to the output whilst also copying it back to the delay line. Control of the delay level and feedback are provided to control respectively...
I'm working on experiments with 2D - wrinkled surfaces. Basically I am getting a bunch of images like this. This example is hand-made. Edit: The test image was made by sampling a cosine function something like $4*\cos{2\pi(3x+4y)}$ Is there a method to find the amplitudes of the first few dominant sinusoids in the im...
What is the sound of a solution $y(x,t)$ to the Wave Equation $\frac{\partial^2y}{\partial t^2}=c^2\,\frac{\partial^2y}{\partial x^2}\enspace$? To be clear, I don't look for a solution of the Wave Equation, I have a concrete solution $y(x,t)$. I only want to describe the sound of this concrete solution. In my case I wa...
I am going through a technique for audio denoising by block thresholding. Here is the paper: http://www.di.ens.fr/~mallat/papiers/AudioBlock.pdf According to the definition in the paper for diagonal estimators, Simple time-frequency denoising algorithms compute each attenuation factor only from the corresponding noisy...
So I think I've confused myself a bit here. I know that taking the FFT of time-series data (wind velocities, for example) yields a power spectral density. However, I just read that taking the Fourier Transform of an autocorrelation function also yields the power spectral density. So, if one were to take the inverse Fou...
Using OCR, I want to extract text from product packages using Google Glass. However, because of the fixed focus of the camera the package pictures are blurred. Is there a way to sharpen the image? Currently I use unsharp masking to enlarge the gradients of the edges, which gives me OK results. Is there a better way to...
Does anybody know of a way to shift data by a fraction of a sample by using sinc interpolation? For example, shift an image to the right by 0.1 pixels. I'm struggling to find a formula or reference that explains how to generate such a kernel, and I already know how to do it in the frequency domain.... I'm thinking some...
I'm reading through the literature for finding the best way to calculate SNR for a ECG signal. While there are many algorithms for improving SNR, I couldn't find any that details any standard procedure for evaluating the SNR itself. The following are my questions. What is the SNR of a typical ECG signal from the MIT/B...
Please advice how to calculate FIR filter coefficients with the windowing method using the Rectangular Window function and convolution method? What utility or FIR design application can perform this task?
I have search a bit to try to find a similar questions, but I have not been able to find any leads. There are techniques to programmatically detect steady tones in audio, such as the Goertzel algorithm. I have been trying to find a way to detect a frequency sweep of some kind. My specific application is to monitor the ...
What does the spatial correlation of a signal say about it?How is it different from autocorrelation? `
So I'm trying to get some sample time-series data from pink noise (PSD: $S(f) = 1/f$). However, when I try to evaluate the Inverse Fourier Transform integral $\int \frac{1}{\omega} e^{j \omega t} dt$ from negative infinity to positive infinity, I get a non-converging integral. I tried a Taylor Expansion, but I'm runnin...
As we all know the capacity for a AWGN channel with constant noise variance is just given by $$\frac{1}{2}\log(1+SNR)$$ What if the variance of the noise changes with the type (assuming the variance is known for any time index)? Consider the following discrete channel: $$ y[n] = x[n] + w[n], \quad n=1,\dots,N $$ where ...
For white noise, where the PSD is constant, we can model that as a simple Gaussian. Is there any way to model the probability density function of other types of noise (pink noise, red noise, blue noise, etc.), and if so, is there any way to derive such a thing?
I'm working on finding the center of rotation of a set of test tomographic projections in order to perform 2D reconstruction. I'm trying to implement the algorithm to find center of rotation as described in Vo et al. 2014, which involves Fourier transforming the sinogram and searching frequency space outside the "bow ...
Generally, everyone knows that "the part of signal with high-slope is the high frequency part." What is the definition or theory behind it? How to prove this well-known thing? perhaps, I miss something apparent.
If you have 2 points (x1y1,x2y2) in a Cartesian grid, there are an infinite amount of sinusoids that pass through them. But if you are also given the instantaneous phase (Th0) in radians or degrees at that point, is that sufficient to estimate the amplitude and frequency of the sinusoid that passes through these 2 poin...
I'm doing some fourier synthesis by making bins of complex numbers, filling them out with the amplitude and phase information and using IFFT to turn that into time domain samples. I'm able to make sine, saw, triangle and square waves, and other more exotic periodic wave forms. My question is, how do you do fourier synt...
I am supposed to design a delay and sum beam former for a short audio. But the sampling frequency is only 8kHz and after times the delay, the fractional delay is less then one sample, and after the "floor" function in Matlab, all the fractional delay integer will be 0 and the results are neither fractional delayed nor ...
I could not find any proof or comparison of weighted median and median filters. Yes the more occurring pixel contributes much but what should be the criteria of choosing weight function. And any explanation of cases where weighted median is strongly recommended to be used. Median Filter replaces pixel value c with p wh...
I am trying to find EBW of rect function but i am unable to solve the integral after finding the fourier transform and then apply parseval's theorem?
I need to find the periodicity of the following signal: $$ x\left [ n \right ] = \cos \left(\frac{\pi n^{2}}{8}\right) $$ Now I understand that the basic procedure to determine the periodicity is to find a $ N $ such that $$ x\left [ n \right ] = x\left [ n + N\right ] $$ I applied the procedure to the aforementioned ...
I am trying to implement iir Band Pass filter design in STM32F429i discovery kit. I konw that it needs coefficients to be generated from matlab and feed them into cmsis api to achivi filtered data. My SOS Matrix look like shown below: 1, 0, -1, 1, -1.9974, 0.99743, 1, 0, -1, 1, -1.9995, 0.99947, ...
I am implementing image resizing algorithms (Bilinear, Bicubic, Lanczos and a few others). How do I quantitatively compare them? I am thinking of considering a large sample of images and running these algorithms on all of them and compare pair wise wrt a standard interpolation implementation. What metric shall I use he...
I have two mixed signals like $A_1f(t) + A_2g(t)$, where $f(t)$ and $g(t)$ are sinusoidal. I want to extract the amplitude infos. Directly I can not get the amplitudes (or I don't know how to). What I am doing is simply sample the signal and correlate the samples to a set of known amplitudes, then use the correlation t...
Can any one help with the $y[n]$ and $x[n]$ relationship in this block diagram, I just keep have a $t[n]$ in my answer that I can't get rid off. On my best try I got to $y[n] = 2t[n]-x[n-1]-y[n-2]+x[n]$ If you could also tell me how you got there it would be great. Thanks anyone for help.
I have a problem with Support Vector Machine classification. I have two classes of children (boys and girls). I use a MFCC function for training (for each class I have 24 coefficients, number of frames ). I have to create a test text file for testing my Libsvm classification, but I don't know how to reduce the MFCC ma...
Using ffmpeg, I'm recording a talk, its audio with a semi-distant microphone. It makes sense to somewhat enhance the speech clarity, reduce background static and environmental noise, etc., in the most generic terms. What combination of ffmpeg audio filters am I best advised to use to enhance recorded speech? I'm curren...
I am completely stuck on solving some problems for my digital communications class. Junior level undergrad class, so fairly basic. I have been searching around all day for related articles etc but can't seem to find any that are helpful. Any help would be much appreciated. Here are the three questions: For the coeffi...
I'm trying to optimize an image reconstruction algorithm using genetic algorithm.I took initial population size as 10.I have an input image an 10 reconstructed image.fitness function is the difference between these two.That is fitness_1 = inputimage - reconstructedimage_1; fitness_2 = inputimage - reconstructedimage_2;...
Why the frequency of carrier wave is always kept at least $10$ times higher than the highest frequency of base band signal? Can you explain me this with a practical example?
Practically speaking, if one is interested in a frequency band well-separated from the line noise (say, for example, the 10-20 Hz band, with 60 Hz line noise), would it be advisable to notch out this line noise before bandpass filtering to the desired frequency range? It seems that, given of course an acceptable filter...
I was tasked with designing a filter to smooth out a translating table. The system, we command a speed and a desired position, and measure it with two noisy position sensors. The commanded speed is also not always perfect, but it's usually within 10%. The slide can only move left and right. My initial thought was to si...
In the figure below, from the book "Principles of Linear Systems and Signals - Lathi", the author uses the notation D to replace the Leibniz's notation $d/dt$, and after that he rewrites the equation, disconnecting the symbol of the derivative, $D$, of its function, considering each as a factor. I don't understand how ...
I am trying to extract amplitude of specific frequency in Matlab FFT. Is it possible to use the abs(mag)... But I do not know in which sample to look for mag(245) should give me amplitude for the frequency of that sample... How to extract that amplitude-magnitude for $120$ Hz using mag? I will add simple code: Fs = 100...
Let's say you had two 1 second sound samples at 44.1khz, and you wanted to convolve them in frequency space. You FFT each one to get two arrays of complex numbers that each have 44100 items in them. You then multiply each bin... for i = 0 to 44099 c[i] = A[i] * B[i] Then it's time to turn it back into time domain sampl...
I wonder if anyone has any experience with auto-convolution. In particular i'm interested in understanding the physical interpretation of it. I understand what convolution, correlation and auto-correlation are, also i'm aware that the definition of auto-convolution will be something like $$f\ast f = \int_{-\infty}^{\i...
I'm a software developer and a Amateur Radio operator. Everything I know about audio (which isn't saying much) is self taught. I've learned how to generate audio samples and build wav files, send those samples to hardware output, etc. I even figured out how to generate BPSK31. Where I'm stuck now is demodulation. I've ...
I am working on a color transformation project using video.Can any one please tell me how to read video in octave.I have see aviread can be used to video frame by frame but i want to read the entire video file.
I am trying to understand the difference(s) between OFDM (Orthogonal Frequency Division Multiplexing) and GFDM (Generalized Frequency Division Multiplexing) which are used as a multicarrier modulation techniques in wireless communication. As far as I know the OFDM uses the orthogonal subcarriers and the GFDM is with th...
I have an EEG labeled data, which is the data that used for training, And I want to segment those data based on the time of EEG signal (Time-based Epoching) as a preprocessing step, based on the nature of EEG signals which is best: To segment the data based on time domain, for example to take each 64 samples together...
Can you advise me on good inhomogenity measurements in an image? I am trying to find the borders where homogenous zones touch inhomogenous ones in a image. I am going to work with sick lung ct images like this: I am looking for different ways to measure inhomogenity in the texture in the image. Thank you
I was just wondering if there were any "obvious" resources, papers, or textbooks I should look into regarding the nyquist-criterion in higher dimensions. For example, this would be relevant if there is some curve that is i.e. not 1-to-1 w.r.t. time: $f: t \in \mathbb{R}^1 \rightarrow f(t) \in \mathbb{R}^1 $, but instea...
I have a problem ragarding transferring a point cloud to a 2.5D metric grayscale image (gray value gives depth information). I start with a three channel image of 32bit floats with each pixel representing the three coordinates in mm (metric). Halcon is the preferred library, but not necessary. I hope that someone can h...
I was reading a paper about Gist features. I was interested about its code implementation which i found it here). Into LMgist.m there is a function called createGabor, this is the code: function G = createGabor(or, n) % % G = createGabor(numberOfOrientationsPerScale, n); % % Precomputes filter transfer functions. All c...
I would like to know the theory behind matlab butter function. Is there any book which gives clear idea on how it works. In future I would like to calculate the coefficients manually.
when manipulating a live stream of audio data in the frequency domain, I've heard you need to do fft / ifft in small chunks, say 256 samples at a time. I've also heard you need to somehow employ a window function but I'm not sure the details on that. Is that to prevent artifacts from popping up due to the circular natu...
For designing any analog filter and various other outputs of filter we use laplace transform,I can visualise a laplace transform like for ex. s[X(s)] can be implemented as differentiator fetched with signal x(t)while implementing differentiators we generally use capacitors or by using OPAMP similarly, [X(s)]/s can b...
I have designed a bandpass IIR butterworth filter with desired response using the MATLAB FDAtool with the configuration shown in the figure below Since this is multistage implementation, when I export the filter object to workspace I don't get numerator and denominator of transfer function as filter parameters and ins...
How to solve the initial value problem with x(n + 1) + x(n) = n^2; x(0) = 1 I do know how to solve for initial value theorem in differential equation, but not in difference equation. Please help.Thanks.
I am looking into algorithms/techniques for feature extraction for accelerometer data - to then be used in classification. FFT is incredibly popular, however would this work on accelerometer data? I've also seen PCA, but that isn't quite so popular. Will PCA work as a possible feature extraction algorithm?
I was curious to know which algorithm(stepwise) is used by the mironsets function of the MIRToolbox library to find the onsets in the audio signal. I am talking about the default functionality when we use mironsets. Example: o = mironsets('audio.wav') Here o is the output onset strength envelope and looks like this The...