>2) dicom to mhd format?
I think that it can do in various ways.
DCMTK, well-known great free software, be able to extract DICOM tag
information from DICOM file.
You can get a number of column pixels, for example, in DICOM image
like the following code:
------------------ C++
-------------------------------------------------------------------
#include "dcmtk/dcmimgle/dcmimage.h"
........................
........................
unsigned short extractNumColumn(){
DcmFileFormat file_format;
OFCondition status = file_format.loadFile(PATHTOFILE);
std::shared_ptr<DcmDataset> dataset(file_format.getDataset());
key = DCM_Columns;
unsigned short columns =0;
dataset->findAndGetUint16(key, columns);
return columns;
}
--------------------------------------------------------------------------------------------------
2019年6月25日(火) 14:52 Hiroaki Inomata <
inomat...@gmail.com>: