answered 2017-09-20 05:21:39 -0600
unfortunately, this is not possible with opencv means.
maybe you can skip cv::imdecode, and use the libpng code directly.