You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to use the dcm2jpg tool to create a JPG file programmatically rather than via the command-line.
However, currently the only way to do so is via the static main() method. This is because both the writeImage() method and the ReadImage interface are private access. Although the setReadImage() method is public access, we can't actually use it since ReadImage is private. This means calling convert() will fail because the readImage attribute is null. And since writeImage() is also private, we can't get around the problem by calling it directly instead of using convert().
It would great if either the ReadImage interface or the writeImage() method (or both) could be made public access, as this would allow easier programmatic usage of this tool. Ideally I'd prefer the writeImage() method, as I actually need both the file and the BufferedImage object that's written to it, but being able to use the convert method would also work.
The text was updated successfully, but these errors were encountered:
I want to use the dcm2jpg tool to create a JPG file programmatically rather than via the command-line.
However, currently the only way to do so is via the static
main()
method. This is because both thewriteImage()
method and theReadImage
interface are private access. Although thesetReadImage()
method is public access, we can't actually use it sinceReadImage
is private. This means callingconvert()
will fail because thereadImage
attribute is null. And sincewriteImage()
is also private, we can't get around the problem by calling it directly instead of usingconvert()
.It would great if either the
ReadImage
interface or thewriteImage()
method (or both) could be made public access, as this would allow easier programmatic usage of this tool. Ideally I'd prefer thewriteImage()
method, as I actually need both the file and the BufferedImage object that's written to it, but being able to use theconvert
method would also work.The text was updated successfully, but these errors were encountered: