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