See: Description
This code is contained in the dcm4che-tool-dcm2jpg module.
Copyright © 2017 dcm4che.org. All rights reserved.