Code: Select all
void test()
{
DcmFileFormat dff;
OFCondition c = dff.loadFile( "us.dcm" );
if( c.bad() )
{
return;
}
DicomImage di( dff.getDataset(), EXS_Unknown );
if( EIS_Normal != di.getStatus() )
{
return;
}
di.writeBMP( "test.bmp" );
}
Code: Select all
0028,0002,Samples Per Pixel=3
0028,0004,Photometric Interpretation=RGB
0028,0006,Planar Configuration=0
0028,0008,Number of Frames=1
0028,0010,Rows=576
0028,0011,Columns=768
0028,0030,Pixel Spacing=
0028,0100,Bits Allocated=8
0028,0101,Bits Stored=8
0028,0102,High Bit=7
0028,0103,Pixel Representation=1
0028,0120,Pixel Padding Value=0
0028,1050,Window Center=127.5
0028,1051,Window Width=255
0028,1052,Rescale Intercept=0
0028,1053,Rescale Slope=1