Infogosoft / jsdicom

dicom library and viewer in javascript
95 stars 38 forks source link

View Issue of 12 bits Dicom #13

Closed zhang19 closed 12 years ago

zhang19 commented 12 years ago

This project is awesome.I admire the author's great effort on this project. But when i load dicom file of 12 bits uncompressed image file,it seems like losing some bits data.The edge of shape is very sharp with lots of white spots.But is fine with 8 bits dicom file.Is this a bug?How and when can be fixed? You can see it here.http://www.imagesocket.com/photos/guest/2461695

daniel-lundin commented 12 years ago

Yes, something doesn't look quite right there. Probably a bug of some sort. Will have a look at it and try to reproduce it. Thanks for the feedback!

zhang19 commented 12 years ago

You can download the dicom file from here.http://sharesend.com/6oiqp

daniel-lundin commented 12 years ago

That must be a different file, it looks fine to me: http://minus.com/mXOfPHMkD

zhang19 commented 12 years ago

I'm sorry.It seems like i have uploaded a wrong file.Here is the right ones.But they are 16 bits dicom files.Download here:http://min.us/mZTiDYrlD.

daniel-lundin commented 12 years ago

I think I know why it behaves the way it does. The Pixel Representation is in two complement which is not handled correctly. Will close this issue and open a new.