简体   繁体   English

使用VoxelGrid的EvilDicom问题

[英]EvilDicom problems in using VoxelGrid

I'm trying to implement this example . 我正在尝试实现此示例

DicomFile df;  
VoxelGrid vt ;    
if (openFileDialog1.ShowDialog () == DialogResult.OK)    
{    
    df = new DicomFile (openFileDialog1.FileName);    
    vt = new VoxelGrid (df);    
    pictureBox1.Image = vt.getImage();   
}

The problem is that it does not find the component VoxelGrid in your dll (EvilDicom), there are only a component called Voxel and does not work as the tutorial is asking, is there any version change EvilDicom 0,04 or need to use another component to add the image in my pictureBox ? 问题在于,它在您的dll(EvilDicom)中找不到组件VoxelGrid,只有一个名为Voxel的组件,无法按照本教程的要求工作,是否有任何版本更改EvilDicom 0,04或需要使用其他组件将图像添加到我的pictureBox中?

In the more recent Evil DICOM releases, such as 0.05.7 , there is an ImageMatrix class that can be used to retrieve image bitmap data from a DICOM file. 在最新的Evil DICOM版本(例如0.05.7)中 ,存在一个ImageMatrix类,该类可用于从DICOM文件中检索图像位图数据。

You should be able to change your example to the following to sufficiently upload images to your picture box: 您应该可以将示例更改为以下示例,以将图像充分上传到图片框:

if (openFileDialog1.ShowDialog() == DialogResult.OK)
{
    var imgFile = new ImageMatrix(openFileDialog1.FileName);
    pictureBox1.Image = imgFile.GetImage(0);
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM