Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

streaming frames #8

Open
ghost opened this issue May 16, 2019 · 2 comments
Open

streaming frames #8

ghost opened this issue May 16, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented May 16, 2019

I would like to explore the options for building a GUI client as well as annotated tools in golang.

Is there any more info you have about the jpg files ? Are they in some special format ?
https://github.com/suyashkumar/dicom/blob/master/dicomutil/dicomutil.go#L132

@suyashkumar
Copy link
Owner

Awesome!

Yep, so in dicom there are two broad types of image data: Encapsulated images (compressed in some way) and Native images (which are usually stored in the dicom as 16 bit ints). You can see how native pixel data is turned into a jpg here (autoscaling will need to be implemented at some point) and you can see how it's parsed out of the dicom here.

Thing with encapsulated data is that it can be encoded using one of many formats (JPEG-2000, JPEG-LS, MPEG, etc), though usually it's some type of JPG. Check out more here: http://dicom.nema.org/dicom/2013/output/chtml/part05/sect_8.2.html

Right now the dicomutil assumes the data is some sort of jpeg and writes the binary image data out to disk with a .jpg file name as you see here: https://github.com/suyashkumar/dicom/blob/master/dicomutil/dicomutil.go#L132 .

@ghost
Copy link
Author

ghost commented May 17, 2019

Thanks. I dont know much about DICOM. Too many things to keep track of with Medical Stards :)

I have a few usecases in mind:

Animated DICOM. So if i get a Dicom of from an Ultrasound machine then we are talking either a still or animated right ?
I want to be able to play it animated and so suck out the images and then transcode to the Viewers video format.

3D Printing. So if i am making a prosthetic and want a perfect fit then i want to get a DICOM CT scan, suck out the data and turn into a 3D point cloud and then 3d mesh and then put it into a 3D viewer.
But also from the point cloud i can convert it to a mesh and 3 print the implant.

I know these are broad examples. I just wanted to get your feedback on where we need to improve the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant