Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   How to write a program to transfer a bitmap file onto the DICOM file? (HELP!) (http://www.go4expert.com/forums/write-program-transfer-bitmap-file-t19770/)

beanbean 15Oct2009 14:27

How to write a program to transfer a bitmap file onto the DICOM file? (HELP!)
 
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?

xpi0t0s 15Oct2009 14:47

Re: How to write a program to transfer a bitmap file onto the DICOM file? (HELP!)
 
What's a DICOM file?
What image format have you used?

beanbean 15Oct2009 15:05

Re: How to write a program to transfer a bitmap file onto the DICOM file? (HELP!)
 
Digital Imaging and Communications in Medicine ( medical images)
image format - .dcm

xpi0t0s 15Oct2009 16:26

Re: How to write a program to transfer a bitmap file onto the DICOM file? (HELP!)
 
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?

SaswatPadhi 15Oct2009 18:37

Re: How to write a program to transfer a bitmap file onto the DICOM file? (HELP!)
 
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.

beanbean 16Oct2009 07:19

Re: How to write a program to transfer a bitmap file onto the DICOM file? (HELP!)
 
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.

xpi0t0s 16Oct2009 23:06

Re: How to write a program to transfer a bitmap file onto the DICOM file? (HELP!)
 
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


All times are GMT +5.5. The time now is 04:04.