/** * Prepare data for a input to the FFT, padding if necessary. The data is * prepared as a packed 1D array. * * @param input * input data * @param rs * desired number of rows * @param cs * desired number of columns * @param centre * if true, then the data will be prepared so that the DC * component is centred. * @return prepared data */ public static float[] prepareData1d(FImage input, int rs, int cs, boolean centre) { return prepareData1d(input.pixels, rs, cs, centre); }
/** * Prepare data for a input to the FFT, padding if necessary. The data is * prepared as a packed 1D array. * * @param input * input data * @param rs * desired number of rows * @param cs * desired number of columns * @param centre * if true, then the data will be prepared so that the DC * component is centred. * @return prepared data */ public static float[] prepareData1d(FImage input, int rs, int cs, boolean centre) { return prepareData1d(input.pixels, rs, cs, centre); }