Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How do i view the pixel value of a raw DICOM image of 256x256?PLs help!!

How do i view the pixel value of a raw DICOM image of 256x256?PLs help!!

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
7 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Offline
    U Offline
    User 1990498
    wrote on last edited by
    #1

    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?

    C 2 Replies Last reply
    0
    • U User 1990498

      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?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      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++

      U 1 Reply Last reply
      0
      • U User 1990498

        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?

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        By the way, I am not the moron who voted this a 2.0. Christian Graus - Microsoft MVP - C++

        U 1 Reply Last reply
        0
        • C Christian Graus

          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++

          U Offline
          U Offline
          User 1990498
          wrote on last edited by
          #4

          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?

          C 1 Reply Last reply
          0
          • C Christian Graus

            By the way, I am not the moron who voted this a 2.0. Christian Graus - Microsoft MVP - C++

            U Offline
            U Offline
            User 1990498
            wrote on last edited by
            #5

            Sorry i don't get what you mean by voted this as 2.0.Anyway i hope you are able to help.Thanks.

            U 1 Reply Last reply
            0
            • U User 1990498

              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?

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              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++

              1 Reply Last reply
              0
              • U User 1990498

                Sorry i don't get what you mean by voted this as 2.0.Anyway i hope you are able to help.Thanks.

                U Offline
                U Offline
                User 1990498
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups