All problems
Dataset Std Color
Problem
Compute the per-channel color standard deviation of a dataset of RGB images.
Use the population standard deviation over every pixel of every image and return the three values rounded to 4 decimal places.
Test cases
case 1
in: [[[[[0,0,0],[255,255,255]]]]]
expected: [127.5,127.5,127.5]
case 2
in: [[[[[0,10,20]],[[10,20,30]]]]]
expected: [5,5,5]
case 3
in: [[[[[7,7,7]]],[[[7,7,7]]]]]
expected: [0,0,0]
Starter codePython
def dataset_std_color(images):
# Your code here
pass3 test cases · run your code against them in the editor