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 -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -