jbohnslav / opencv_transforms

OpenCV implementation of Torchvision's image augmentations
MIT License
375 stars 46 forks source link

saturation numpy implementation #5

Closed CoinCheung closed 2 years ago

CoinCheung commented 5 years ago

I found that maybe we could use pure numpy methods to implement this. I have not checked the hist, but with my eye, I see the result is very similar to that of PIL.ImageEnhance.Color. Hope this would help.