本文介绍了在foreach循环中使用dicom数据集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用C#.net Windows应用程序vs2008.

我需要将此代码转换为C#.net

i am using C# .net windows app vs2008.

i need to convert this code for C# .net

path = "D:\FilmPlus_MSAccess\bin\Debug\Images\" & DataGrid_DisplayView.Item(13, i1).Value

       Dim ddirs As New DicomDataSetCollection
       Dim ddir As New DicomDataSet


       Dim Patient As New DicomDataSet
       Dim Study As New DicomDataSet
       Dim series As New DicomDataSet
       Dim instance As New DicomDataSet
       Dim pixelData As New DicomDataSetCollection
       Dim i As Integer
       Dim im As New DicomImage



     For Each Patient In ddir.Children
            For Each Study In Patient.Children
                For Each series In Study.Children
                    For Each instance In series.Children
                        pixelData = instance.Value(&H88, &H200) 'Attributes(&H88, &H200).Value
                        ViewerStudy.Images.Add(pixelData(0))
                    Next
                Next
            Next
        Next           


请帮助并给我建议
nitin


kindly help and give me suggestion
nitin

推荐答案


这篇关于在foreach循环中使用dicom数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-05 10:24