FFT shift

FFT shift

Hi
Invert sign for every odd pixel. Something like this:
for(int i=0; i {
Ipp32f *Row = (Ipp32f *)((char *)pSrc + i*srcStep);
for(int k=0; k {
if((i+k)&1)
Row[k] = -Row[k];
}
}
Igor Klimashevich

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.