How to use mxnet to load grayscale png file? -


i want use mxnet image api load grayscale png file. image api became 3channel rgb data. how convert 3channel data 1channel data?

you can use imdecode function , set flag 0. https://github.com/apache/incubator-mxnet/blob/master/python/mxnet/image/image.py#l85

this require install opencv , compile mxnet use_opencv=1


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

nginx - phpPgAdmin - log in works but I have to login again after clicking on any links -