362{
363 if(tagDictionary == 0x00280010 ) {
365 std::printf(
"[0x00280010] Rows -> %i\n",
fRows);
366
367 } else if(tagDictionary == 0x00280011 ) {
369 std::printf(
"[0x00280011] Columns -> %i\n",
fColumns);
370
371 } else if(tagDictionary == 0x00280102 ) {
372 short highBits;
374 std::printf("[0x00280102] High bits -> %i\n",highBits);
375
376 } else if(tagDictionary == 0x00280100 ) {
378 std::printf(
"[0x00280100] Bits allocated -> %i\n",
fBitAllocated);
379
380 } else if(tagDictionary == 0x00280101 ) {
381 short bitStored;
383 std::printf("[0x00280101] Bits stored -> %i\n",bitStored);
384
385 } else if(tagDictionary == 0x00280106 ) {
387 std::printf(
"[0x00280106] Min. pixel value -> %i\n",
fMinPixelValue);
388
389 } else if(tagDictionary == 0x00280107 ) {
391 std::printf(
"[0x00280107] Max. pixel value -> %i\n",
fMaxPixelValue);
392
393 } else if(tagDictionary == 0x00281053) {
395 std::printf(
"[0x00281053] Rescale Slope -> %d\n",
fRescaleSlope);
396
397 } else if(tagDictionary == 0x00281052 ) {
399 std::printf("[0x00281052] Rescale Intercept -> %d\n",
401
402 } else if(tagDictionary == 0x00280103 ) {
403
405 std::printf("[0x00280103] Pixel Representation -> %i\n",
408 std::printf("### PIXEL REPRESENTATION = 1, BITS ARE SIGNED, ");
409 std::printf("DICOM READING SCAN FOR UNSIGNED VALUE, POSSIBLE ");
410 std::printf("ERROR !!!!!! -> \n");
411 }
412
413 } else if(tagDictionary == 0x00080006 ) {
414 std::printf("[0x00080006] Modality -> %s\n", data);
415
416 } else if(tagDictionary == 0x00080070 ) {
417 std::printf("[0x00080070] Manufacturer -> %s\n", data);
418
419 } else if(tagDictionary == 0x00080080 ) {
420 std::printf("[0x00080080] Institution Name -> %s\n", data);
421
422 } else if(tagDictionary == 0x00080081 ) {
423 std::printf("[0x00080081] Institution Address -> %s\n", data);
424
425 } else if(tagDictionary == 0x00081040 ) {
426 std::printf("[0x00081040] Institution Department Name -> %s\n", data);
427
428 } else if(tagDictionary == 0x00081090 ) {
429 std::printf("[0x00081090] Manufacturer's Model Name -> %s\n", data);
430
431 } else if(tagDictionary == 0x00181000 ) {
432 std::printf("[0x00181000] Device Serial Number -> %s\n", data);
433
434 } else if(tagDictionary == 0x00080008 ) {
435 std::printf("[0x00080008] Image Types -> %s\n", data);
436
437 } else if(tagDictionary == 0x00283000 ) {
438 std::printf("[0x00283000] Modality LUT Sequence SQ 1 -> %s\n", data);
439
440 } else if(tagDictionary == 0x00283002 ) {
441 std::printf("[0x00283002] LUT Descriptor US or SS 3 -> %s\n", data);
442
443 } else if(tagDictionary == 0x00283003 ) {
444 std::printf("[0x00283003] LUT Explanation LO 1 -> %s\n", data);
445
446 } else if(tagDictionary == 0x00283004 ) {
447 std::printf("[0x00283004] Modality LUT Type LO 1 -> %s\n", data);
448
449 } else if(tagDictionary == 0x00283006 ) {
450 std::printf("[0x00283006] LUT Data US or SS -> %s\n", data);
451
452 } else if(tagDictionary == 0x00283010 ) {
453 std::printf("[0x00283010] VOI LUT Sequence SQ 1 -> %s\n", data);
454
455 } else if(tagDictionary == 0x00280120 ) {
456 std::printf("[0x00280120] Pixel Padding Value US or SS 1 -> %s\n", data);
457
458 } else if(tagDictionary == 0x00280030 ) {
460 G4int iss = G4int(datas.find('\\'));
462 fPixelSpacingY = atof( datas.substr(iss+1,datas.length()).c_str() );
463
464 } else if(tagDictionary == 0x00200037 ) {
465 std::printf("[0x00200037] Image Orientation (Phantom) -> %s\n", data);
466
467 } else if(tagDictionary == 0x00200032 ) {
468 std::printf("[0x00200032] Image Position (Phantom,mm) -> %s\n", data);
469
470 } else if(tagDictionary == 0x00180050 ) {
472 std::printf(
"[0x00180050] Slice Thickness (mm) -> %f\n",
fSliceThickness);
473
474 } else if(tagDictionary == 0x00201041 ) {
476 std::printf(
"[0x00201041] Slice Location -> %f\n",
fSliceLocation);
477
478 } else if(tagDictionary == 0x00280004 ) {
479
480 std::printf("[0x00280004] Photometric Interpretation -> %s\n", data);
481
482 } else if(tagDictionary == 0x00020010) {
483 if(strcmp(data, "1.2.840.10008.1.2") == 0)
485 else if(strncmp(data, "1.2.840.10008.1.2.2", 19) == 0)
487
488
489 std::printf("[0x00020010] Endian -> %s\n", data);
490 }
491
492
493 else {
494
495 ;
496 }
497
498}