• 大小: 801KB
    文件类型: .rar
    金币: 2
    下载: 2 次
    发布日期: 2021-06-16
  • 语言: C#
  • 标签: DICOM  

资源简介

可以对读取到的进行缩放,旋转,移动,查看具体图片的信息

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.IO;
using System.Globalization;

// Program to decode a DICOM image.
// Written by Amarnath S Mahesh Reddy S Bangalore India April 2009.

// Inspired heavily by ImageJ

namespace DicomImageViewer
{
    class DicomDecoder
    {
        const uint PIXEL_REPRESENTATION       = 0x00280103;
        const uint TRANSFER_SYNTAX_UID        = 0x00020010;
        const uint SLICE_THICKNESS            = 0x00180050;
        const uint SLICE_SPACING              = 0x00180088;
        const uint SAMPLES_PER_PIXEL          = 0x00280002;
        const uint PHOTOMETRIC_INTERPRETATION = 0x00280004;
        const uint PLANAR_CONFIGURATION       = 0x00280006;
        const uint NUMBER_OF_frameS           = 0x00280008;
        const uint ROWS                       = 0x00280010;
        const uint COLUMNS                    = 0x00280011;
        const uint PIXEL_SPACING              = 0x00280030;
        const uint BITS_ALLOCATED             = 0x00280100;
        const uint WINDOW_CENTER              = 0x00281050;
        const uint WINDOW_WIDTH               = 0x00281051;
        const uint RESCALE_INTERCEPT          = 0x00281052;
        const uint RESCALE_SLOPE              = 0x00281053;
        const uint RED_PALETTE                = 0x00281201;
        const uint GREEN_PALETTE              = 0x00281202;
        const uint BLUE_PALETTE               = 0x00281203;
        const uint ICON_IMAGE_SEQUENCE        = 0x00880200;
        const uint PIXEL_DATA                 = 0x7FE00010;

        const string ITEM                     = “FFFEE000“;
        const string ITEM_DELIMITATION        = “FFFEE00D“;
        const string SEQUENCE_DELIMITATION    = “FFFEE0DD“;

        const int
            AE = 0x4145
            AS = 0x4153
            AT = 0x4154
            CS = 0x4353
            DA = 0x4441
            DS = 0x4453
            DT = 0x4454
            FD = 0x4644
            FL = 0x464C
            IS = 0x4953
            LO = 0x4C4F
            LT = 0x4C54
            PN = 0x504E
            SH = 0x5348
            SL = 0x534C
            SS = 0x5353
            ST = 0x5354
            TM = 0x544D
            UI = 0x5549
            UL = 0x554C
            US = 0x5553
            UT = 0x5554
            OB = 0x4F42
            OW = 0x4F57
            SQ = 0x5351
            UN = 0x554E
            QQ = 0x3F3F;

        DicomDictionary dic;

        String dicomFileName;
        const int ID_OFFSET = 128;  //location of “DICM“
        const String DICM   = “DICM“;

        BinaryReader file;
        int location = 0;
        bool littleEndian = true;

        int elementLength;
        int vr;  // Value Representation
        const int IMPLICIT_VR = 0x2D2D; // ‘--‘ 
        byte[] vrLetters      = new byte[2];
        public List dicomInfo;
        public bool dicmFound; // “DICM“ fo

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    ..A..H.     58880  2018-03-17 22:30  PictureDispose\.vs\PictureDispose_Test\v14\.suo

     文件        189  2018-03-15 20:02  PictureDispose\PictureDispose_Test\App.config

     文件     516096  2006-08-18 11:50  PictureDispose\PictureDispose_Test\bin\Debug\IrisSkin2.dll

     文件     241664  2018-03-17 22:19  PictureDispose\PictureDispose_Test\bin\Debug\PictureDispose_Test.exe

     文件        189  2018-03-15 20:02  PictureDispose\PictureDispose_Test\bin\Debug\PictureDispose_Test.exe.config

     文件      71168  2018-03-17 22:19  PictureDispose\PictureDispose_Test\bin\Debug\PictureDispose_Test.pdb

     文件      22696  2018-03-17 21:49  PictureDispose\PictureDispose_Test\bin\Debug\PictureDispose_Test.vshost.exe

     文件        189  2018-03-15 20:02  PictureDispose\PictureDispose_Test\bin\Debug\PictureDispose_Test.vshost.exe.config

     文件        490  2015-10-30 15:19  PictureDispose\PictureDispose_Test\bin\Debug\PictureDispose_Test.vshost.exe.manifest

     文件    2131456  2018-03-17 22:20  PictureDispose\PictureDispose_Test\bin\Debug\PictureDispose_Test_packed.exe

     文件      24623  2018-03-16 20:55  PictureDispose\PictureDispose_Test\DicomDecoder.cs

     文件      39421  2018-03-16 20:55  PictureDispose\PictureDispose_Test\DicomDictionary.cs

     文件       1306  2018-03-17 11:28  PictureDispose\PictureDispose_Test\DicomTagsForm.cs

     文件       4362  2018-03-17 11:28  PictureDispose\PictureDispose_Test\DicomTagsForm.designer.cs

     文件       5814  2018-03-17 11:28  PictureDispose\PictureDispose_Test\DicomTagsForm.resx

     文件       7733  2018-03-17 22:15  PictureDispose\PictureDispose_Test\DisposedAndSave.cs

     文件      11147  2018-03-17 22:15  PictureDispose\PictureDispose_Test\DisposedAndSave.Designer.cs

     文件     120611  2018-03-17 22:15  PictureDispose\PictureDispose_Test\DisposedAndSave.resx

     文件      14802  2018-03-17 22:06  PictureDispose\PictureDispose_Test\Form1.cs

     文件      10696  2018-03-17 22:06  PictureDispose\PictureDispose_Test\Form1.Designer.cs

     文件     107961  2018-03-17 22:06  PictureDispose\PictureDispose_Test\Form1.resx

     文件       6328  2018-03-17 13:25  PictureDispose\PictureDispose_Test\ImagePanelControl.cs

     文件       3549  2018-03-16 21:02  PictureDispose\PictureDispose_Test\ImagePanelControl.Designer.cs

     文件      17262  2018-03-17 22:19  PictureDispose\PictureDispose_Test\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7398  2018-03-17 17:17  PictureDispose\PictureDispose_Test\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        180  2018-03-17 17:16  PictureDispose\PictureDispose_Test\obj\Debug\DicomImageViewer.DicomTagsForm.resources

     文件       1226  2018-03-17 21:49  PictureDispose\PictureDispose_Test\obj\Debug\PictureDispose_Test.csproj.FileListAbsolute.txt

     文件       1216  2018-03-17 22:19  PictureDispose\PictureDispose_Test\obj\Debug\PictureDispose_Test.csproj.GenerateResource.Cache

     文件      10406  2018-03-17 12:02  PictureDispose\PictureDispose_Test\obj\Debug\PictureDispose_Test.csprojResolveAssemblyReference.cache

     文件      77350  2018-03-17 22:19  PictureDispose\PictureDispose_Test\obj\Debug\PictureDispose_Test.DisposedAndSave.resources

............此处省略30个文件信息

评论

共有 条评论