1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

How to write a program to transfer a bitmap file onto the DICOM file? (HELP!)

Discussion in 'C' started by beanbean, Oct 15, 2009.

  1. beanbean

    beanbean New Member

    Joined:
    Oct 15, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    I am a student doing final year project, trying to find solutions of writing a program so that i can transfer the bitmap i have designed onto the DICOM file. How should i get started?
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    What's a DICOM file?
    What image format have you used?
     
  3. beanbean

    beanbean New Member

    Joined:
    Oct 15, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    Digital Imaging and Communications in Medicine ( medical images)
    image format - .dcm
     
  4. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    What exactly do you mean by "transfer the bitmap i have designed onto the DICOM file"?
    If the image is already a .dcm file, then what do you need to do?
     
  5. SaswatPadhi

    SaswatPadhi ~ Б0ЯИ Τ0 С0δЭ ~

    Joined:
    May 5, 2009
    Messages:
    1,343
    Likes Received:
    55
    Trophy Points:
    0
    Occupation:
    STUDENT !
    Location:
    Orissa, INDIA
    Home Page:
  6. beanbean

    beanbean New Member

    Joined:
    Oct 15, 2009
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    the bitmap files created using microsoft paint, use visual studio 2005 to open the bitmap file and a blank dicom file beside bitmap file. i will need to write a program to transfer the bitmap to dicom file. after that, save the dicom file and perform mimics operation to obtain STL files.
     
  7. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,012
    Likes Received:
    203
    Trophy Points:
    0
    Occupation:
    Senior Support Engineer
    Location:
    England
    What you'll need to know then is the formats of the bitmap file and the Dicom file. Then you would create a program that reads the bitmap (either in full or one or more bytes at a time), decides what each byte means, then writes out to the Dicom file the same information, but in the new format. You may need to store some data in memory in order to write out the new file correctly - it depends on the file formats and how you decide to perform the conversion.

    Found a couple of possibly useful references (Googled "BMP file format" for the first):
    http://en.wikipedia.org/wiki/BMP_file_format
    http://www.fileformat.info/format/dcm/corion.htm
     

Share This Page