Home | History | Annotate | Download | only in dng_noise_model

Lines Matching refs:tile_size

30 # Convert a 2D array a to a 4D array with dimensions [tile_size,
31 # tile_size, row, col] where row, col are tile indices.
32 def tile(a, tile_size):
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
138 p = p[0:p.shape[0] - p.shape[0]%tile_size,
139 0:p.shape[1] - p.shape[1]%tile_size]
153 np.mean(tile(p, tile_size), axis=(0, 1)).flatten()
155 np.var(tile(hp, tile_size), axis=(0, 1)).flatten()