apache / mxnet

Lightweight, Portable, Flexible Distributed/Mobile Deep Learning with Dynamic, Mutation-aware Dataflow Dep Scheduler; for Python, R, Julia, Scala, Go, Javascript and more
https://mxnet.apache.org
Apache License 2.0
20.78k stars 6.79k forks source link

[Feature request] Add a support of 16 bit integer data via recordIO iterator #15421

Open onomatet opened 5 years ago

onomatet commented 5 years ago

Complete information on the motivation for this feature request and further details are given in this post: https://discuss.mxnet.io/t/limited-bit-depth-of-the-recordio-iterator/4245

Shortly: in medical imaging 12-16 bit gray scale images are commonly used. It is possible to pack them into .rec file as 16 bit PNGs. ImageRecordIter converts them into 8 bit format internally causing information loss.

Therefore, it seems natural that ImageRecordIter should support 16 bit data handling by preserving the original data bit-depth or by explicit bit-depth specification. At least it would be extremely helpful for the medical imaging applications.

mxnet-label-bot commented 5 years ago

Hey, this is the MXNet Label Bot. Thank you for submitting the issue! I will try and suggest some labels so that the appropriate MXNet community members can help resolve it. Here are my recommended labels: Feature