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

python Tkinter Capturing keyboard events save as one single string -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

javascript - Z-index in d3.js -