Re: Design of FIR filter with Sharp Transition and High Stop BandAttenuation



jim wrote:

  ...

I don't think you're really grasping the problem. What he has is a sampling array that has 4 times as many sample points as the output array. So the problem would seem to be a simple matter of devising a filter suitable for downsampling by 4. The kicker is that each of these four receptors aren't really measuring the same thing.
The conventional way of looking at it would be that each of the 4 receptors only 'sees' 1/4 of the signal (or some other division summing to unity) so you simply sum the outputs (or do weighted sum). Its like having 4 judges with different kind of color blindness voting to tell you what the grayscale brightness is. But there is probably more to it than that. For one thing his way of looking at it takes into account that the 4 receptors are not in the same location. Plus there is some overlap in the light frequencies that each receptor is sensitive to (note: that is a different sort of frequency than spatial frequency). So some sort of filtering could be better than simply naively adding the output of blocks of 4.

Another aspect of the problem is that the sensors being smaller than the cell size, the inherent filtering of blocky arrays is lost. There is a way to oversample the array that will make the filtering he wants possible, but I can't say it will help. First of all, when he says "halfband filter" he seems to mean the Nyquist rate for the pixel size. Before he can filter out those higher frequencies, he has to create them. (Is his "Y = (Mg+Ye) + (G+Cy) = (G+Cy)+ (Mg+Cy)..." right?)


I don't know enough about the structure of his sensor to suggest a scheme, but I think that creating phantom pixels is the right first step. For a stripe pattern of ... R1 G1 B1 R2 G2 B2 ... and assuming that the gains (weights) have already been adjusted, I would create grayscale pixels ... G1 B1 R2, B1 R2 G2, R2 G2 B2, ... so that each color stripe contributes to three pixels, then low-pass to 1/3 the phantom pixel rate. With details, we could probably work out a similar "oversampling" scheme for his line sensor.

This whole discussion hinges on what the sample rate really is. Maybe when it's all matrixed out, it really does boil down to an FIR running at the 4x rate, provided the signals are weighted beforehand. I don't know. I do know that FIRs can be flat enough and can have all the sharpness needed if latency isn't a problem. I don't see one scan line of latency being a problem for most uses, and that many taps would make a jim dandy filter if coefficient truncation doesn't mess it up too badly.

Jerry

Engineering is the art of making what you want from things you can get.
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
.



Relevant Pages

  • Re: FM Demodulation Woes
    ... can calculate linear phase FIR filter coefficients. ... F is the array of frequencies ... A is the array of amplitudes (which should be equal in number to ... The easiest would probably be to construct it using a z-transform though normally you'd already have some idea of the coefficients you'd want, and which delayed data you'd want to use ...
    (comp.dsp)
  • filtering with fft2 and ifft2
    ... bottom half corresponds to negative frequencies. ... I want to filter some of the coefficients and inverse the ... array, ...
    (comp.soft-sys.matlab)
  • RE: Xl2007 Autofilter - ValueList problem
    ... I am not using Advanced filter or filter in place. ... The first part of the code to set the Autofilter works. ... set the filter an array is assigned to Criteria2 then it should be possible ...
    (microsoft.public.excel.programming)
  • Re: using countif in a filtered range
    ... Microsoft Excel MVP ... If we filter on Region 1 ... For this to work we need to generate an array of subtotals, ... In this example we're using SUBTOTAL to count how many cells in the range ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Earl & Donna Evleths address
    ... >> Spam filters are quite good, our Wanadoo filter gets about 90% of it ... But they filter most of the stuff without ... I can switch frequencies and go back 50 years in behavior, ...
    (rec.travel.europe)