test_illumination_statistics.py 文件源码

python
阅读 55 收藏 0 点赞 0 评论 0

项目:DeepProfiler 作者: jccaicedo 项目源码 文件源码
def test_add_to_mean_with_scaling(illumination_stats):
    numpy.random.seed(8)
    image = numpy.random.randint(256, size=(16, 16, 3), dtype=numpy.uint16)

    illumination_stats.addToMean(image)

    assert illumination_stats.mean_image.shape == (8, 8, 3)
    result_mean = illumination_stats.mean_image
    assert result_mean.sum() > 0
    #numpy.testing.assert_array_equal(result_mean.astype(numpy.uint16), image)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号