Convert RGB PIL image to ndarray YCbCr.
| 90 | |
| 91 | |
| 92 | class RGB2YCbCr(object): |
| 93 | """Convert RGB PIL image to ndarray YCbCr.""" |
| 94 | def __call__(self, img): |
| 95 | img = np.asarray(img, np.uint8) |
| 96 | img = color.rgb2ycbcr(img) |
| 97 | return img |
| 98 | |
| 99 | |
| 100 | class RGB2YDbDr(object): |
nothing calls this directly
no outgoing calls
no test coverage detected