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

beanbean's Avatar, Join Date: Oct 2009
Newbie Member
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?
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
What's a DICOM file?
What image format have you used?
0
beanbean's Avatar, Join Date: Oct 2009
Newbie Member
Digital Imaging and Communications in Medicine ( medical images)
image format - .dcm
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
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?
0
SaswatPadhi's Avatar, Join Date: May 2009
~ Б0ЯИ Τ0 С0δЭ ~
This might be useful : http://www.codeproject.com/KB/graphi...px?msg=1719744.

It explains how to convert any image to .dcm format and also how to convert .dcm image to any other format.
0
beanbean's Avatar, Join Date: Oct 2009
Newbie Member
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.
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
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