Lines Matching refs:num_channels
537 height, width, num_channels = quad_bayer_img.shape
539 if num_channels != noise_model_constants.NUM_QUAD_BAYER_CHANNELS:
557 def subsample(image, num_channels=4): argument
567 if num_channels not in noise_model_constants.VALID_NUM_CHANNELS:
577 stride = int(numpy.sqrt(num_channels))
582 num_channels,
585 for i in range(num_channels):
722 num_channels = noise_model_constants.NUM_QUAD_BAYER_CHANNELS
724 num_channels = noise_model_constants.NUM_BAYER_CHANNELS
725 mean_image, _ = unpack_rawstats_capture(cap, num_channels)
1055 def unpack_rawstats_capture(cap, num_channels=4): argument
1070 if num_channels not in noise_model_constants.VALID_NUM_CHANNELS:
1079 shape=(2 * h * w * num_channels,), dtype='<f', buffer=cap['data']
1081 analysis_image = img.reshape((2, h, w, num_channels))
1082 mean_image = analysis_image[0, :, :, :].reshape(h, w, num_channels)
1083 var_image = analysis_image[1, :, :, :].reshape(h, w, num_channels)