// Writting of a DICOM file based on a correct dicom header
// and data pixel of another image
int main(int argc, char* argv[])
{
// Writting of a DICOM file based on a correct dicom header
// and data pixel of another image
int main(int argc, char* argv[])
{
std::string nbFrames = f2->GetHeader()->GetEntryByNumber(0x0028, 0x0008);
if(nbFrames != "gdcm::Unfound") {
f1->GetHeader()->ReplaceOrCreateByNumber( nbFrames, 0x0028, 0x0008);
std::string nbFrames = f2->GetHeader()->GetEntryByNumber(0x0028, 0x0008);
if(nbFrames != "gdcm::Unfound") {
f1->GetHeader()->ReplaceOrCreateByNumber( nbFrames, 0x0028, 0x0008);
f2->GetHeader()->GetEntryByNumber(0x0028, 0x0011), 0x0028, 0x0011); // nbCol
// Some other tags should be updated:
f2->GetHeader()->GetEntryByNumber(0x0028, 0x0011), 0x0028, 0x0011); // nbCol
// Some other tags should be updated:
// TODO : Shouldn't we merge those two functions ?
f1->SetImageData( imageData, dataSize);
f1->GetHeader()->SetImageDataSize( dataSize );
// TODO : Shouldn't we merge those two functions ?
f1->SetImageData( imageData, dataSize);
f1->GetHeader()->SetImageDataSize( dataSize );
std::string s0 = f2->GetHeader()->GetEntryByNumber(0x7fe0, 0x0000);
std::string s10 = f2->GetHeader()->GetEntryByNumber(0x7fe0, 0x0010);
std::cout << "lgr 7fe0, 0000 " << s0 << std::endl;
std::string s0 = f2->GetHeader()->GetEntryByNumber(0x7fe0, 0x0000);
std::string s10 = f2->GetHeader()->GetEntryByNumber(0x7fe0, 0x0010);
std::cout << "lgr 7fe0, 0000 " << s0 << std::endl;