(a)
| 111 | return error[skip:size-skip].mean() |
| 112 | |
| 113 | def luminance(a): |
| 114 | a = np.maximum(0, a)**0.4545454545 |
| 115 | return 0.2126 * a[:,:,0] + 0.7152 * a[:,:,1] + 0.0722 * a[:,:,2] |
| 116 | |
| 117 | def L1(img, ref): |
| 118 | return np.abs(img - ref) |
nothing calls this directly
no outgoing calls
no test coverage detected