Commits
72 72 | } |
73 73 | refim::FTMachine* AWPLPG::cloneFTM(){ |
74 74 | return new AWPLPG(*this); |
75 75 | } |
76 76 | void AWPLPG::init(const vi::VisBuffer2& vb){ |
77 77 | MosaicFTNew::init(vb); |
78 78 | |
79 79 | |
80 80 | //oversample if image is small |
81 81 | //But not more than 5000 pixels |
82 - | convSampling=(max(nx, ny) < 50) ? 128: Int(ceil(5000.0/max(nx, ny))); |
83 - | if(convSampling <10) |
84 - | convSampling=10; |
82 + | convSampling=(max(nx, ny) < 100) ? 100: Int(ceil(10000.0/max(nx, ny))); |
83 + | if(convSampling <4) |
84 + | convSampling=4; |
85 85 | // TESTOO |
86 86 | //convSampling = 1; |
87 87 | // TESTOO |
88 88 | |
89 89 | CoordinateSystem cs=image->coordinates(); |
90 90 | |
91 91 | SpectralCoordinate spCS = cs.spectralCoordinate(cs.findCoordinate(Coordinate::SPECTRAL)); |
92 92 | double f1, f2; |
93 93 | { //Lets get the frame to convert to |
94 94 | MFrequency::Types fframe; |