How do i view the pixel value of a raw DICOM image of 256x256?PLs help!!
-
I have manage to convert a DICOM image into a raw image..that is to say without its header.Now how can i view the pixel value of this raw image in binary form?
-
I have manage to convert a DICOM image into a raw image..that is to say without its header.Now how can i view the pixel value of this raw image in binary form?
By RAW you mean a byte array ? DICOM is 10 bits per pixel, right ? So what you have is an array of bytes, with 10 bits representing each colour ( or 30 if it's not grey ) ? Christian Graus - Microsoft MVP - C++
-
I have manage to convert a DICOM image into a raw image..that is to say without its header.Now how can i view the pixel value of this raw image in binary form?
By the way, I am not the moron who voted this a 2.0. Christian Graus - Microsoft MVP - C++
-
By RAW you mean a byte array ? DICOM is 10 bits per pixel, right ? So what you have is an array of bytes, with 10 bits representing each colour ( or 30 if it's not grey ) ? Christian Graus - Microsoft MVP - C++
Actually RAW format is still the DICOM image which i open up to view using Adobe Photoshop. The only difference is all the headers has benn remove what i am left with is just the image itself. My problem now is how do i view the pixel values from Photoshop? The image is in the grey.Does MATLAB be of any help?
-
By the way, I am not the moron who voted this a 2.0. Christian Graus - Microsoft MVP - C++
Sorry i don't get what you mean by voted this as 2.0.Anyway i hope you are able to help.Thanks.
-
Actually RAW format is still the DICOM image which i open up to view using Adobe Photoshop. The only difference is all the headers has benn remove what i am left with is just the image itself. My problem now is how do i view the pixel values from Photoshop? The image is in the grey.Does MATLAB be of any help?
So you have a byte *, right ? And it's still a DICOM image, so it's 10 bits per pixel, right ? I assume DICOM does not waste any bits, that the 11th bit is the first bit of the next pixel ? Does it also flow on between rows that way ? Does it store the rows top down, or bottom up ? If you have a byte * and you need to work out how to get at each pixel, then I doubt MATLAB will help much, what you need to do is work out the internal format exactly so you know how to get to the 2 ( or maybe 3 ) bytes you need, and then mask those bytes and shift thier values to get the final result. I am on the edge of doing some work with DICOM, which is why I believe they are 10 bit, but I don't know enough about the format to comment beyond that. Do you have any resources about what a RAW DICOM file actually looks like internally ? Christian Graus - Microsoft MVP - C++
-
Sorry i don't get what you mean by voted this as 2.0.Anyway i hope you are able to help.Thanks.
What if I save the DICOM image as a text file? Will I be able to convert the text file to binary? If so how should I go about writing the program? Can debugging help?Or perhaps using the basic "printf" function to display teh pixels values if I know where the values are store. PLease advise.Thks.