Searched refs:tile_size (Results 1 – 1 of 1) sorted by relevance
/cts/apps/CameraITS/tests/dng_noise_model/ |
D | dng_noise_model.py | 32 def tile(a, tile_size): argument 33 tile_rows, tile_cols = a.shape[0]/tile_size, a.shape[1]/tile_size 34 a = a.reshape([tile_rows, tile_size, tile_cols, tile_size]) 46 tile_size = 64 141 p = p[0:p.shape[0] - p.shape[0]%tile_size, 142 0:p.shape[1] - p.shape[1]%tile_size] 155 np.mean(tile(p, tile_size), axis=(0, 1)).flatten() 157 np.var(tile(hp, tile_size), axis=(0, 1)).flatten()
|